Skip to content

Commit

Permalink
Improve batt temp timestep message for NREL/SAM#1691
Browse files Browse the repository at this point in the history
  • Loading branch information
cpaulgilman committed Feb 27, 2024
1 parent e617b98 commit 5d25694
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 @@ -1111,7 +1111,7 @@ battstor::battstor(var_table& vt, bool setup_model, size_t nrec, double dt_hr, c
}

if (batt_vars->T_room.size() != nrec) {
throw exec_error("battery", "Length of battery environment temperature batt_room_temperature_celsius must equal number of weather file and/or electric load data records.");
throw exec_error("battery", util::format("Length of battery environment temperature batt_room_temperature_celsius must equal number of weather file and/or electric load data records: %d records or %d-minute time steps.", nrec, 60/(nrec/8760)));
}

if (batt_vars->batt_life_model == lifetime_params::NMC) {
Expand Down

0 comments on commit 5d25694

Please sign in to comment.