Skip to content

Commit

Permalink
Run adjustment code based on which variables are actually available
Browse files Browse the repository at this point in the history
  • Loading branch information
brtietz committed Nov 11, 2024
1 parent 2ac26d8 commit efb7743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssc/cmod_battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ battstor::battstor(var_table& vt, bool setup_model, size_t nrec, double dt_hr, c
}

std::vector<double> adj_losses(1, 0.0);
if (vt.is_assigned("batt_adjust")) {
if (vt.is_assigned("batt_adjust_costant") || vt.is_assigned("batt_adjust_periods") || vt.is_assigned("batt_adjust_timeindex")) {
adj_losses.clear();
adjustment_factors haf(&vt, "batt_adjust");
haf.setup(nrec);
Expand Down

0 comments on commit efb7743

Please sign in to comment.