From 27c8e2b3a914bcd8f78d141c2db2b92d9bd853f2 Mon Sep 17 00:00:00 2001 From: Brian Mirletz Date: Tue, 5 Nov 2024 13:06:25 -0700 Subject: [PATCH] Fix haf for custom generation profile --- ssc/cmod_custom_generation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssc/cmod_custom_generation.cpp b/ssc/cmod_custom_generation.cpp index f4615e708..38e1cde68 100644 --- a/ssc/cmod_custom_generation.cpp +++ b/ssc/cmod_custom_generation.cpp @@ -118,7 +118,7 @@ class cm_custom_generation : public compute_module sys_degradation.reserve(nyears); double derate = (1 - (double)as_number("derate") / 100); - adjustment_factors haf(this, "adjust"); + adjustment_factors haf(this->get_var_table(), "adjust"); if (!haf.setup(nrec_load, nyears)) throw exec_error("custom_generation", "failed to setup adjustment factors: " + haf.error());