Skip to content

Commit

Permalink
use process_piecewisefuelusage so that THERM_COMMIT_PWFU can be used …
Browse files Browse the repository at this point in the history
…in function load_multi_fuels_data
  • Loading branch information
qluo0320github committed Jan 4, 2024
1 parent 4805818 commit d518d99
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/load_inputs/load_generators_data.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit d518d99

Please sign in to comment.