diff --git a/tests/lbpm_morphopen_pp.cpp b/tests/lbpm_morphopen_pp.cpp index 840051aa..dafc8960 100644 --- a/tests/lbpm_morphopen_pp.cpp +++ b/tests/lbpm_morphopen_pp.cpp @@ -126,7 +126,52 @@ int main(int argc, char **argv) MPI_Barrier(comm); // Run the morphological opening - MorphOpen(SignDist, id, Dm, SW); + MorphOpen(SignDist, id, Dm, SW, 0.05); + + // calculate distance to non-wetting fluid + if (domain_db->keyExists( "HistoryLabels" )){ + if (rank==0) printf("Relabel solid components that touch fluid 1 \n"); + auto LabelList = domain_db->getVector( "ComponentLabels" ); + auto HistoryLabels = domain_db->getVector( "HistoryLabels" ); + size_t NLABELS=LabelList.size(); + for (int k=0;k