From a6ce97a1359580591b42ab4ae43a0e5a465f2cb0 Mon Sep 17 00:00:00 2001 From: Matt Prilliman <54449384+mjprilliman@users.noreply.github.com> Date: Mon, 21 Oct 2024 09:42:25 -0500 Subject: [PATCH] Update error check for timeseries adjustment to check for three hour data --- ssc/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/common.cpp b/ssc/common.cpp index 62ef5eec8..8ee22a47a 100644 --- a/ssc/common.cpp +++ b/ssc/common.cpp @@ -1110,7 +1110,7 @@ bool adjustment_factors::setup(int nsteps, int analysis_period) //nsteps is set m_factors[nsteps * a + i] *= (1.0 - p[a*nsteps + i]/100.0); //convert from percentages to factors } } - else if ((n % 8760 == 0) && n != (size_t)(nsteps * analysis_period)) // give a helpful error for timestep mismatch + else if ((n % 8760 == 0 || n % 2920 == 0) && n != (size_t)(nsteps * analysis_period)) // give a helpful error for timestep mismatch { m_error = util::format("Availability losses must be the same timestep as the weather file, if they are not daily/weekly/monthly."); }