From 86e8188ede985a5f1d7125fe10a6f9e69ced1cfc Mon Sep 17 00:00:00 2001 From: Filip Jorissen Date: Mon, 23 May 2022 22:16:06 +0200 Subject: [PATCH] fixed missing each for #1273 --- .../Interfaces/BaseClasses/Structure.mo | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/IDEAS/Templates/Interfaces/BaseClasses/Structure.mo b/IDEAS/Templates/Interfaces/BaseClasses/Structure.mo index 2b3307d15..fbd27bd03 100644 --- a/IDEAS/Templates/Interfaces/BaseClasses/Structure.mo +++ b/IDEAS/Templates/Interfaces/BaseClasses/Structure.mo @@ -47,12 +47,18 @@ partial model Structure "Partial model for building structure models" "Construction nodes for heat gains by embedded layers" annotation ( Placement(transformation(extent={{140,50},{160,70}}), iconTransformation( extent={{140,50},{160,70}}))); - Modelica.Blocks.Interfaces.RealOutput[nZones] TSensor(final quantity="ThermodynamicTemperature",unit="K",displayUnit="degC", min=0) + Modelica.Blocks.Interfaces.RealOutput[nZones] TSensor( + each final quantity="ThermodynamicTemperature", + each unit="K", + each displayUnit="degC", + each min=0) "Sensor temperature of the zones" annotation (Placement(transformation(extent={{146,-70},{166,-50}}))); - Modelica.Fluid.Interfaces.FluidPort_b[nZones] port_b(redeclare package Medium = Medium) if useFluPor + Modelica.Fluid.Interfaces.FluidPort_b[nZones] port_b( + redeclare each package Medium = Medium) if useFluPor annotation (Placement(transformation(extent={{-30,90},{-10,110}}))); - Modelica.Fluid.Interfaces.FluidPort_a[nZones] port_a(redeclare package Medium = Medium) if useFluPor + Modelica.Fluid.Interfaces.FluidPort_a[nZones] port_a( + redeclare each package Medium = Medium) if useFluPor annotation (Placement(transformation(extent={{10,90},{30,110}}))); annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-150,-100}, @@ -77,6 +83,10 @@ partial model Structure "Partial model for building structure models" Documentation(revisions="