Skip to content

Commit

Permalink
remove print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed Nov 16, 2023
1 parent 757d000 commit 10cfc6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions api/api_autogen/builder_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,11 @@ void builder_generator::export_variables_json(const std::string &cmod, const std
}
else{
vv = SAM_config_to_defaults[config_name][v.name];
}

// if it's a battery configuration, turn on battery by default
if ((cmod == "battery" && v.name == "en_batt") || (cmod == "battwatts" && v.name == "batt_simple_enable"))
vv->Set(1);
// if it's a battery configuration, turn on battery by default. Hybrid techs don't need this because cmod_hybrid does it
if ((cmod == "battery" && v.name == "en_batt") || (cmod == "battwatts" && v.name == "batt_simple_enable"))
vv->Set(1);
}

// vv can be null in the case of variables not available in UI
if (!vv && v.reqif != "*")
Expand Down
1 change: 0 additions & 1 deletion api/src/SAM_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ SAM_EXPORT int SAM_module_exec(const char* cmod, void* data, int verbosity, SAM_
if(verbosity == 0){
ssc_module_exec_set_print(0);
}
printf("data %lu\n", (void*)data);

if (!ssc_module_exec( cm, data )){
std::string str = std::string(cmod) + " execution error.\n";
Expand Down

0 comments on commit 10cfc6e

Please sign in to comment.