fix flow reversal

This commit is contained in:
James E McClure 2019-03-27 06:38:39 -04:00
parent 6b16660e2d
commit 5078343655

View File

@ -783,7 +783,7 @@ double ScaLBL_ColorModel::MorphInit(const double beta, const double target_delta
} }
} }
if (volume_connected < 0.02*volume_initial){ if (volume_connected < 0.02*volume_initial && target_delta_volume < 0.0){
// if connected volume is less than 2% just delete the whole thing // if connected volume is less than 2% just delete the whole thing
if (rank==0) printf("Connected region has shrunk to less than 2 %% of total fluid volume \n"); if (rank==0) printf("Connected region has shrunk to less than 2 %% of total fluid volume \n");
REVERSE_FLOW_DIRECTION = true; REVERSE_FLOW_DIRECTION = true;