Skip to content

Commit c51b0b0

Browse files
authored
Merge pull request #2031 from ibpsa/issue2030_assignXValue
added missing value assignment
2 parents a811d9a + 09e9325 commit c51b0b0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

IBPSA/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/internalResistancesOneUTube.mo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ algorithm
4848
// instabilities in the calculations. Otherwise, calculations follow the
4949
// method of Bauer et al. (2011).
5050
if (RDelta[1,2] < 0) then
51+
x := 0;
5152
//Thermal resistance between the grout zone and borehole wall
5253
Rgb := Rg;
5354

@@ -121,6 +122,12 @@ International Journal of Energy Research, 35:312&ndash;320, 2011.</p>
121122
</html>", revisions="<html>
122123
<ul>
123124
<li>
125+
July 9, 2025, by Jianjun Hu:<br/>
126+
Added missing value assignment.<br/>
127+
This is for
128+
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/2030\">IBPSA, #2030</a>.
129+
</li>
130+
<li>
124131
November 22, 2023, by Michael Wetter:<br/>
125132
Corrected use of <code>getInstanceName()</code> which was called inside a function which
126133
is not allowed.<br/>

IBPSA/Fluid/Geothermal/Borefields/BaseClasses/Boreholes/BaseClasses/Functions/internalResistancesTwoUTube.mo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ algorithm
5555
// instabilities in the calculations. Otherwise, calculations follow the
5656
// method of Bauer et al. (2011).
5757
if (RDelta[1,2] < 0) or (RDelta[1,3] < 0) then
58+
x := 0;
5859
//Thermal resistance between the grout zone and borehole wall
5960
Rgb := Rg;
6061

@@ -129,6 +130,12 @@ International Journal of Energy Research, 35:312&ndash;320, 2011.</p>
129130
</html>", revisions="<html>
130131
<ul>
131132
<li>
133+
July 9, 2025, by Jianjun Hu:<br/>
134+
Added missing value assignment.<br/>
135+
This is for
136+
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/2030\">IBPSA, #2030</a>.
137+
</li>
138+
<li>
132139
November 22, 2023, by Michael Wetter:<br/>
133140
Corrected use of <code>getInstanceName()</code> which was called inside a function which
134141
is not allowed.<br/>

0 commit comments

Comments
 (0)