Merge branch 'master' of github.com:JamesEMcClure/LBPM-WIA
This commit is contained in:
commit
13b4d48199
@ -656,10 +656,17 @@ void ScaLBL_ColorModel::Run(){
|
|||||||
if (fabs(morph_delta) < 0.05 ) morph_delta = 0.05*(morph_delta)/fabs(morph_delta); // set minimum
|
if (fabs(morph_delta) < 0.05 ) morph_delta = 0.05*(morph_delta)/fabs(morph_delta); // set minimum
|
||||||
if (rank==0) printf(" Adjust morph delta: %f \n", morph_delta);
|
if (rank==0) printf(" Adjust morph delta: %f \n", morph_delta);
|
||||||
}
|
}
|
||||||
//MORPH_ADAPT = false;
|
if (morph_delta < 0.f){
|
||||||
if (volB/(volA + volB) > TARGET_SATURATION){
|
if (volB/(volA + volB) > TARGET_SATURATION){
|
||||||
MORPH_ADAPT = false;
|
MORPH_ADAPT = false;
|
||||||
TARGET_SATURATION = target_saturation[target_saturation_index++];
|
TARGET_SATURATION = target_saturation[target_saturation_index++];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if (volB/(volA + volB) < TARGET_SATURATION){
|
||||||
|
MORPH_ADAPT = false;
|
||||||
|
TARGET_SATURATION = target_saturation[target_saturation_index++];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
MPI_Barrier(comm);
|
MPI_Barrier(comm);
|
||||||
morph_timesteps = 0;
|
morph_timesteps = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user