From b27e9f7941e55dd1bca7dc588e00b6f46a46c32c Mon Sep 17 00:00:00 2001 From: Michael Wetter Date: Wed, 29 Nov 2023 08:26:25 -0500 Subject: [PATCH] Corrected wrong use of getInstanceName (#3585) * Corrected wrong use of getInstanceName This integrates IBPSA, issue 1814. The use of this function is not allowed inside other functions, and causes OpenModelica to fail during translation --- .../Validation/InternalResistancesOneUTube.mo | 10 +++++++++- .../InternalResistancesOneUTubeNegative.mo | 10 +++++++++- .../Validation/InternalResistancesTwoUTube.mo | 10 +++++++++- .../InternalResistancesTwoUTubeNegative.mo | 10 +++++++++- .../Functions/internalResistancesOneUTube.mo | 9 ++++++++- .../Functions/internalResistancesTwoUTube.mo | 9 ++++++++- .../Functions/partialInternalResistances.mo | 9 +++++++++ .../BaseClasses/InternalHEXOneUTube.mo | 10 +++++++++- .../BaseClasses/InternalHEXTwoUTube.mo | 10 +++++++++- Buildings/package.mo | 17 +++++++++++------ 10 files changed, 90 insertions(+), 14 deletions(-) diff --git a/Buildings/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/Validation/InternalResistancesOneUTube.mo b/Buildings/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/Validation/InternalResistancesOneUTube.mo index 8abb23979c0..4903667333d 100644 --- a/Buildings/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/Validation/InternalResistancesOneUTube.mo +++ b/Buildings/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/Validation/InternalResistancesOneUTube.mo @@ -57,7 +57,8 @@ initial equation kMed=kMed, muMed=muMed, cpMed=cpMed, - m_flow_nominal=m_flow_nominal); + m_flow_nominal=m_flow_nominal, + instanceName=getInstanceName()); annotation ( __Dymola_Commands(file= @@ -75,6 +76,13 @@ borehole. ", revisions="