Skip to content

Commit

Permalink
Update error check for timeseries adjustment to check for three hour
Browse files Browse the repository at this point in the history
data
  • Loading branch information
mjprilliman committed Oct 21, 2024
1 parent 5d1b5c6 commit a6ce97a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssc/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down

0 comments on commit a6ce97a

Please sign in to comment.