From fbec2d2c11e7b774295b16a8f0654fb5b8b9916b Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Thu, 12 Dec 2024 16:03:39 +0100 Subject: [PATCH] Fix #10830 - Call IsCurveInputTypeValid when it's input, not IsCurveOutputTypeValid --- src/EnergyPlus/CurveManager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EnergyPlus/CurveManager.cc b/src/EnergyPlus/CurveManager.cc index 77a0e811884..e4dd36b8bf2 100644 --- a/src/EnergyPlus/CurveManager.cc +++ b/src/EnergyPlus/CurveManager.cc @@ -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(); - if (!IsCurveOutputTypeValid(unitType)) { + if (!IsCurveInputTypeValid(unitType)) { ShowSevereError(state, format("{}: Unit Type [{}] is invalid", contextString, unitType)); } }