Skip to content

Commit 4116853

Browse files
committed
API updates based on updates from Dayo 8/6/2025
1 parent bada1b0 commit 4116853

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

api/include/SAM_GeothermalCosts.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ extern "C"
143143
*/
144144
SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_conf_num_wells_nset(SAM_table ptr, double number, SAM_error *err);
145145

146+
/**
147+
* Set geotherm.cost.expl_lump_sum: Exploration cost lump sum
148+
* options: None
149+
* constraints: None
150+
* required if: calc_drill_costs=1
151+
*/
152+
SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_lump_sum_nset(SAM_table ptr, double number, SAM_error *err);
153+
146154
/**
147155
* Set geotherm.cost.expl_multiplier: Exploration cost multiplier
148156
* options: None
@@ -520,6 +528,8 @@ extern "C"
520528

521529
SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_conf_num_wells_nget(SAM_table ptr, SAM_error *err);
522530

531+
SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_lump_sum_nget(SAM_table ptr, SAM_error *err);
532+
523533
SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_multiplier_nget(SAM_table ptr, SAM_error *err);
524534

525535
SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_non_drill_nget(SAM_table ptr, SAM_error *err);

api/modules/SAM_GeothermalCosts.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_conf_num_wells_nset(
9898
});
9999
}
100100

101+
SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_lump_sum_nset(SAM_table ptr, double number, SAM_error *err){
102+
translateExceptions(err, [&]{
103+
ssc_data_set_number(ptr, "geotherm.cost.expl_lump_sum", number);
104+
});
105+
}
106+
101107
SAM_EXPORT void SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_multiplier_nset(SAM_table ptr, double number, SAM_error *err){
102108
translateExceptions(err, [&]{
103109
ssc_data_set_number(ptr, "geotherm.cost.expl_multiplier", number);
@@ -482,6 +488,15 @@ SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_conf_num_wells_nge
482488
return result;
483489
}
484490

491+
SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_lump_sum_nget(SAM_table ptr, SAM_error *err){
492+
double result;
493+
translateExceptions(err, [&]{
494+
if (!ssc_data_get_number(ptr, "geotherm.cost.expl_lump_sum", &result))
495+
make_access_error("SAM_GeothermalCosts", "geotherm.cost.expl_lump_sum");
496+
});
497+
return result;
498+
}
499+
485500
SAM_EXPORT double SAM_GeothermalCosts_GeoHourly_geotherm_cost_expl_multiplier_nget(SAM_table ptr, SAM_error *err){
486501
double result;
487502
translateExceptions(err, [&]{

0 commit comments

Comments
 (0)