From d518d990d5aa0dd0365b3fb1e647bc0cf856d3df Mon Sep 17 00:00:00 2001 From: ql0320 Date: Thu, 4 Jan 2024 10:47:06 -0500 Subject: [PATCH] use process_piecewisefuelusage so that THERM_COMMIT_PWFU can be used in function load_multi_fuels_data --- src/load_inputs/load_generators_data.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/load_inputs/load_generators_data.jl b/src/load_inputs/load_generators_data.jl index 433ad28dfb..1c3743dcd7 100644 --- a/src/load_inputs/load_generators_data.jl +++ b/src/load_inputs/load_generators_data.jl @@ -292,7 +292,10 @@ function load_multi_fuels_data!(inputs_gen::Dict, setup::Dict, path::AbstractStr end end # do not allow the multi-fuel option when piece-wise heat rates are used - THERM_COMMIT_PWFU = intersect(gen_in[gen_in.THERM.==1,:R_ID], gen_in[gen_in.HAS_PWFU,:R_ID]) + if setup["UCommit"] > 0 + process_piecewisefuelusage!(inputs_gen, scale_factor) + end + THERM_COMMIT_PWFU = inputs_gen["THERM_COMMIT_PWFU"] # segemnt for piecewise fuel usage if !isempty(THERM_COMMIT_PWFU) error("Multi-fuel option is not available when piece-wise heat rates are used. Please remove multi fuels to avoid this error.")