Skip to content

Commit c2e6445

Browse files
committed
Initialization fix
1 parent 6ba0643 commit c2e6445

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

SU2_CFD/src/fluid/CSU2TCLib.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,7 @@ vector<su2double>& CSU2TCLib::ComputeTemperatures(vector<su2double>& val_rhos, s
20082008
su2double Tve_o = 50.0; su2double Tve2 = 8E4;
20092009

20102010
/* Determine if the temperature lies within the acceptable range */
2011+
if (Tve_old < 1) Tve_old = T; //For first fluid iteration
20112012
if (T < Tmin) T = Tmin; else if (T > Tmax) T = Tmax;
20122013
if (Tve_old<Tvemin) Tve_old = Tvemin; else if (Tve_old>Tvemax) Tve_old = Tvemax;
20132014

0 commit comments

Comments
 (0)