Skip to content

Commit 274c34e

Browse files
committed
needs testing, but runs
1 parent 9cce43a commit 274c34e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

SU2_CFD/src/fluid/CSU2TCLib.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,7 @@ vector<su2double>& CSU2TCLib::ComputeTemperatures(vector<su2double>& val_rhos, s
20472047
/*--- Check for convergence ---*/
20482048
if ((fabs(Tve2-Tve) < NRtol) && (Tve > Tvemin) && (Tve < Tvemax)) {
20492049
NRconvg = true;
2050+
Tve = Tve2;
20502051
break;
20512052
} else {
20522053
Tve = Tve2;
@@ -2073,7 +2074,7 @@ vector<su2double>& CSU2TCLib::ComputeTemperatures(vector<su2double>& val_rhos, s
20732074
}
20742075

20752076
// If absolutely no convergence, then assign to the TR temperature
2076-
if (!Bconvg) {
2077+
if (!NRconvg && !Bconvg ) {
20772078
Tve = T;
20782079
cout <<"Warning: temperatures did not converge, error= "<< fabs(rhoEve_t-rhoEve)<<endl;
20792080
}

0 commit comments

Comments
 (0)