From ce57491bce577fdf2ff8c7c27c5cb0000b266842 Mon Sep 17 00:00:00 2001 From: James McClure Date: Sun, 7 Nov 2021 07:55:15 -0500 Subject: [PATCH] never rescale unsteady cases --- models/ColorModel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/ColorModel.cpp b/models/ColorModel.cpp index 8f924aa2..7b5024f3 100644 --- a/models/ColorModel.cpp +++ b/models/ColorModel.cpp @@ -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;