Skip to content

Commit

Permalink
Update total_drilling_cost output for ATB script
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanzou committed Jan 13, 2025
1 parent ff0eea6 commit 6708d19
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions api/include/SAM_GeothermalCosts.h
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,6 @@ extern "C"

SAM_EXPORT double SAM_GeothermalCosts_Outputs_conf_total_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_Outputs_drilling_total_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_Outputs_expl_total_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_Outputs_inj_total_cost_nget(SAM_table ptr, SAM_error *err);
Expand All @@ -605,6 +603,8 @@ extern "C"

SAM_EXPORT double SAM_GeothermalCosts_Outputs_stim_total_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_Outputs_total_drilling_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_Outputs_total_gathering_cost_nget(SAM_table ptr, SAM_error *err);

SAM_EXPORT double SAM_GeothermalCosts_Outputs_total_pump_cost_nget(SAM_table ptr, SAM_error *err);
Expand Down
18 changes: 9 additions & 9 deletions api/modules/SAM_GeothermalCosts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,15 +857,6 @@ SAM_EXPORT double SAM_GeothermalCosts_Outputs_conf_total_cost_nget(SAM_table ptr
return result;
}

SAM_EXPORT double SAM_GeothermalCosts_Outputs_drilling_total_cost_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
if (!ssc_data_get_number(ptr, "drilling_total_cost", &result))
make_access_error("SAM_GeothermalCosts", "drilling_total_cost");
});
return result;
}

SAM_EXPORT double SAM_GeothermalCosts_Outputs_expl_total_cost_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
Expand Down Expand Up @@ -902,6 +893,15 @@ SAM_EXPORT double SAM_GeothermalCosts_Outputs_stim_total_cost_nget(SAM_table ptr
return result;
}

SAM_EXPORT double SAM_GeothermalCosts_Outputs_total_drilling_cost_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
if (!ssc_data_get_number(ptr, "total_drilling_cost", &result))
make_access_error("SAM_GeothermalCosts", "total_drilling_cost");
});
return result;
}

SAM_EXPORT double SAM_GeothermalCosts_Outputs_total_gathering_cost_nget(SAM_table ptr, SAM_error *err){
double result;
translateExceptions(err, [&]{
Expand Down

0 comments on commit 6708d19

Please sign in to comment.