From 38ef819bd58d3a6390cb81dfefd40cc37faa6f0e Mon Sep 17 00:00:00 2001 From: Brian Mirletz Date: Thu, 30 Jul 2020 09:52:41 -0600 Subject: [PATCH] time series buy and sell rates won't work with net metering, so add an exception for that --- ssc/cmod_utilityrate5.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ssc/cmod_utilityrate5.cpp b/ssc/cmod_utilityrate5.cpp index a643b7dee..cff20d9eb 100644 --- a/ssc/cmod_utilityrate5.cpp +++ b/ssc/cmod_utilityrate5.cpp @@ -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