Skip to content

Commit ba3e1e8

Browse files
authored
Update Common/src/wall_model.cpp
1 parent 40c5ef2 commit ba3e1e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/src/wall_model.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ void CWallModel1DEQ::WallShearStressAndHeatFlux(const su2double tExchange, const
307307
SU2_MPI::Error("Y+ greater than one: Increase the number of points or growth ratio.", CURRENT_FUNCTION);
308308

309309
/* Define a norm */
310-
bool tau_converged = abs(1.0 - tauWall / fmax(tauWall_prev, EPS)) < tol;
311-
bool q_converged = abs(1.0 - qWall / fmax(qWall_prev, EPS)) < tol;
310+
bool tau_converged = abs(tauWall - tauWall_prev) < fmax(tol * abs(tauWall), EPS);
311+
bool q_converged = abs(qWall - qWall_prev) < fmax(tol * abs(qWall), EPS);
312312

313313
if (tau_converged && q_converged) {
314314
converged = true;

0 commit comments

Comments
 (0)