From 4e821054e2dba7f195fc4c1b56c60d58cde54c76 Mon Sep 17 00:00:00 2001 From: Michael Wetter Date: Thu, 23 Nov 2023 00:54:29 -0800 Subject: [PATCH] Corrected wrong use of getInstanceName (#3584) 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 +++++++++- .../Validation/InternalResistancesOneUTubeNegative.mo | 10 +++++++++- .../Validation/InternalResistancesTwoUTube.mo | 10 +++++++++- .../Validation/InternalResistancesTwoUTubeNegative.mo | 10 +++++++++- .../Functions/internalResistancesOneUTube.mo | 9 ++++++++- .../Functions/internalResistancesTwoUTube.mo | 9 ++++++++- .../Functions/partialInternalResistances.mo | 9 +++++++++ .../Boreholes/BaseClasses/InternalHEXOneUTube.mo | 10 +++++++++- .../Boreholes/BaseClasses/InternalHEXTwoUTube.mo | 10 +++++++++- 9 files changed, 79 insertions(+), 8 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="