From efb774335d290cece4b35a8672107cff36037a83 Mon Sep 17 00:00:00 2001 From: Brian Mirletz Date: Mon, 11 Nov 2024 16:23:45 -0700 Subject: [PATCH] Run adjustment code based on which variables are actually available --- ssc/cmod_battery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/cmod_battery.cpp b/ssc/cmod_battery.cpp index 601bd85dc..1f1425405 100644 --- a/ssc/cmod_battery.cpp +++ b/ssc/cmod_battery.cpp @@ -1175,7 +1175,7 @@ battstor::battstor(var_table& vt, bool setup_model, size_t nrec, double dt_hr, c } std::vector 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);