From 1a03c198cb05dba9acd786c88e70359934dd059b Mon Sep 17 00:00:00 2001 From: Diogo Nardelli Siebert Date: Tue, 21 Apr 2026 15:51:32 -0300 Subject: [PATCH] Small bug where the maximum distance was computed using sumReduce instead of maxReduce, leading to the wrong maximum pore size in the sample which was also dependent on the number of tasks used. --- analysis/morphology.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis/morphology.cpp b/analysis/morphology.cpp index 728bd6ed..9667740c 100644 --- a/analysis/morphology.cpp +++ b/analysis/morphology.cpp @@ -508,7 +508,7 @@ double MorphOpen(DoubleArray &SignDist, signed char *id, // total Global is the number of nodes in the pore-space totalGlobal = Dm->Comm.sumReduce(count); - maxdistGlobal = Dm->Comm.sumReduce(maxdist); + maxdistGlobal = Dm->Comm.maxReduce(maxdist); double volume = double(nprocx * nprocy * nprocz) * double(nx - 2) * double(ny - 2) * double(nz - 2); double volume_fraction = totalGlobal / volume;