adjustment to erodelabel in morph open

This commit is contained in:
James E McClure 2019-04-27 10:50:24 -04:00
parent d93fe1f176
commit 5dba2fe702

View File

@ -450,6 +450,8 @@ double MorphDrain(DoubleArray &SignDist, signed char *id, std::shared_ptr<Domain
//}
MPI_Barrier(Dm->Comm);
if (ErodeLabel == 1) VoidFraction = 1-VoidFraction;
while (void_fraction_new > VoidFraction && Rcrit_new > 0.5)
{
void_fraction_diff_old = void_fraction_diff_new;
@ -641,7 +643,7 @@ double MorphDrain(DoubleArray &SignDist, signed char *id, std::shared_ptr<Domain
for (int j=1; j<ny-1; j++){
for (int i=1; i<nx-1; i++){
n=k*nx*ny+j*nx+i;
if (id[n] > 1){
if (id[n] == ErodeLabel){
count+=1.0;
}
}