Skip to content

Commit

Permalink
time series buy and sell rates won't work with net metering, so add a…
Browse files Browse the repository at this point in the history
…n exception for that
  • Loading branch information
brtietz committed Jul 30, 2020
1 parent e6837c6 commit 38ef819
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 38ef819

Please sign in to comment.