never rescale unsteady cases

This commit is contained in:
James McClure 2021-11-07 07:55:15 -05:00
parent 8e29cc4a17
commit ce57491bce

View File

@ -745,6 +745,8 @@ double ScaLBL_ColorModel::Run(int returntime){
if (CURRENT_TIMESTEP >= MAX_STEADY_TIMESTEPS)
isSteady = true;
if (BC != 0 ) isSteady = false; // Never rescale unsteady simulation cases
if (isSteady && (Ca > maxCa || Ca < minCa) && SET_CAPILLARY_NUMBER ){
/* re-run the point if the actual Ca is too far from the target Ca */
isSteady = false;