Skip to content

Commit

Permalink
Merge pull request #443 from NREL/sam_358_time_series_nm_exception
Browse files Browse the repository at this point in the history
SAM 358: add exception for time series and net metering
  • Loading branch information
brtietz authored Jul 30, 2020
2 parents e6837c6 + 38ef819 commit e828a86
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ssc/cmod_utilityrate5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,11 @@ class cm_utilityrate5 : public compute_module
bool two_meter = (metering_option == 4 );
bool timestep_reconciliation = (metering_option == 2 || metering_option == 3 || metering_option == 4);

bool time_series_rates = as_boolean("ur_en_ts_sell_rate") || as_boolean("ur_en_ts_buy_rate");
if (time_series_rates && !timestep_reconciliation)
{
throw exec_error("utilityrate5", "Time series rates are not compatible with net metering. Please disable time series rates or change to net billing / buy all - sell all");
}

idx = 0;
for (i=0;i<nyears;i++)
Expand Down

0 comments on commit e828a86

Please sign in to comment.