Skip to content

Commit

Permalink
Update SU2_CFD/src/solvers/CSolver.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Nijso <nijso@hotmail.com>
  • Loading branch information
Lisa-Bachmann and bigfooted authored Oct 11, 2024
1 parent 5ea000f commit 8034791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SU2_CFD/src/solvers/CSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1768,9 +1768,9 @@ void CSolver::AdaptCFLNumber(CGeometry **geometry,
unsigned long iter = config->GetMultizone_Problem() ? config->GetOuterIter() : config->GetInnerIter();

/* only change CFL number when larger than starting iteration */
reduceCFL = linRes > 1.2*linTol && (iter > startingIter);
reduceCFL = (linRes > 1.2*linTol) && (iter >= startingIter);

canIncrease = (linRes < linTol) && (iter > startingIter);
canIncrease = (linRes < linTol) && (iter >= startingIter);

if ((iMesh == MESH_0) && (Res_Count > 0)) {
Old_Func = New_Func;
Expand Down

0 comments on commit 8034791

Please sign in to comment.