From 97738a3bbbbe78a5e925c9b2d4d4eabd0f49710f Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Thu, 14 Apr 2022 13:27:33 +0200 Subject: [PATCH] The real issue is that we define resource objects as children --- src/model/CoilCoolingDX.cpp | 2 +- src/model/CoilCoolingDXCurveFitOperatingMode.cpp | 4 ++-- src/model/CoilCoolingDXCurveFitPerformance.cpp | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/model/CoilCoolingDX.cpp b/src/model/CoilCoolingDX.cpp index 8d58017d075..7c1a4687e51 100644 --- a/src/model/CoilCoolingDX.cpp +++ b/src/model/CoilCoolingDX.cpp @@ -121,7 +121,7 @@ namespace model { std::vector result; // This is a ResourceObject, so it shouldn't really be a child except for OS App / IG - result.push_back(performanceObject()); + // result.push_back(performanceObject()); std::vector myAFNItems = getObject().getModelObjectSources(AirflowNetworkEquivalentDuct::iddObjectType()); diff --git a/src/model/CoilCoolingDXCurveFitOperatingMode.cpp b/src/model/CoilCoolingDXCurveFitOperatingMode.cpp index a6d485d5faa..b2463939595 100644 --- a/src/model/CoilCoolingDXCurveFitOperatingMode.cpp +++ b/src/model/CoilCoolingDXCurveFitOperatingMode.cpp @@ -85,8 +85,8 @@ namespace model { std::vector CoilCoolingDXCurveFitOperatingMode_Impl::children() const { // These are ResourceObjects, so they shouldn't really be children except for OS App / IG - std::vector result = subsetCastVector(speeds()); - + // std::vector result = subsetCastVector(speeds()); + std::vector result; return result; } diff --git a/src/model/CoilCoolingDXCurveFitPerformance.cpp b/src/model/CoilCoolingDXCurveFitPerformance.cpp index 7ba0f802f65..8d225e88527 100644 --- a/src/model/CoilCoolingDXCurveFitPerformance.cpp +++ b/src/model/CoilCoolingDXCurveFitPerformance.cpp @@ -98,13 +98,13 @@ namespace model { std::vector result; // These are ResourceObjects, so they shouldn't really be children except for OS App / IG - result.push_back(baseOperatingMode()); - if (auto _mode = alternativeOperatingMode1()) { - result.push_back(_mode.get()); - } - if (auto _mode = alternativeOperatingMode2()) { - result.push_back(_mode.get()); - } + // result.push_back(baseOperatingMode()); + // if (auto _mode = alternativeOperatingMode1()) { + // result.push_back(_mode.get()); + // } + // if (auto _mode = alternativeOperatingMode2()) { + // result.push_back(_mode.get()); + // } return result; }