Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarruscag authored Oct 25, 2024
1 parent d5acb01 commit 3ff2cc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Common/src/CConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1781,8 +1781,12 @@ void CConfig::SetConfig_Options() {
* Parameters in square brackets are optional, parameter "starting iteration" only valid with parameter "acceptable linear residual".
* Factor down generally <1.0, factor up generally > 1.0 to cause the CFL to increase when the under-relaxation parameter is 1.0
* and to decrease when the under-relaxation parameter is less than 0.1. Factor is multiplicative. \ingroup Config*/
default_cfl_adapt[0] = 0.1; default_cfl_adapt[1] = 2.0; default_cfl_adapt[2] = 10.0; default_cfl_adapt[3] = 1e10;
default_cfl_adapt[4] = 0.001; default_cfl_adapt[5] = 0.0;
default_cfl_adapt[0] = 0.1;
default_cfl_adapt[1] = 1.2;
default_cfl_adapt[2] = 10.0;
default_cfl_adapt[3] = 100.0;
default_cfl_adapt[4] = 0.001;
default_cfl_adapt[5] = 0.0;
addDoubleListOption("CFL_ADAPT_PARAM", nCFL_AdaptParam, CFL_AdaptParam);
/* DESCRIPTION: Reduction factor of the CFL coefficient in the adjoint problem */
addDoubleOption("CFL_REDUCTION_ADJFLOW", CFLRedCoeff_AdjFlow, 0.8);
Expand Down
4 changes: 2 additions & 2 deletions config_template.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1390,8 +1390,8 @@ CFL_ADAPT= NO
%
% Parameters of the adaptive CFL number (factor-down, factor-up, CFL min value,
% CFL max value, acceptable linear solver convergence, starting iteration)
% After the starting iteration has passed, local CFL increases by factor-up until max if the solution rate of change is not limited,
% and acceptable linear convergence is achieved. It is reduced if rate is limited, or if there
% After the starting iteration has passed, local CFL increases by factor-up until max if the solution rate of
% change is not limited, and acceptable linear convergence is achieved. It is reduced if rate is limited, or if there
% is not enough linear convergence, or if the nonlinear residuals are stagnant and oscillatory.
% It is reset back to min when linear solvers diverge, or if nonlinear residuals increase too much.
CFL_ADAPT_PARAM= ( 0.1, 2.0, 10.0, 1e10, 0.001, 0)
Expand Down

0 comments on commit 3ff2cc2

Please sign in to comment.