Skip to content

Commit

Permalink
Fix #10830 - Call IsCurveInputTypeValid when it's input, not IsCurveO…
Browse files Browse the repository at this point in the history
…utputTypeValid
  • Loading branch information
jmarrec committed Dec 12, 2024
1 parent 9521548 commit fbec2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnergyPlus/CurveManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,7 @@ namespace Curve {
// TODO: Actually use this to define output variable units
if (indVarInstance.count("unit_type")) {
std::string unitType = indVarInstance.at("unit_type").get<std::string>();
if (!IsCurveOutputTypeValid(unitType)) {
if (!IsCurveInputTypeValid(unitType)) {
ShowSevereError(state, format("{}: Unit Type [{}] is invalid", contextString, unitType));
}
}
Expand Down

0 comments on commit fbec2d2

Please sign in to comment.