allow non-zero immobile labels in Mask

This commit is contained in:
JamesEMcclure 2019-08-21 13:50:30 -04:00
parent bfbc286019
commit 886ca02921

View File

@ -250,9 +250,10 @@ void ScaLBL_ColorModel::AssignComponentLabels(double *phase)
}
}
}
// Set Dm to match Mask
for (int i=0; i<Nx*Ny*Nz; i++) Dm->id[i] = Mask->id[i];
for (int idx=0; idx<NLABELS; idx++) label_count_global[idx]=sumReduce( Dm->Comm, label_count[idx]);
if (rank==0){