From 1142df785b9deeb6dc3935e37de9d0487ec5ed9c Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sat, 6 Aug 2016 14:35:19 -0400 Subject: [PATCH] Added pore size quartiles to lbpm_morph_pp --- tests/lbpm_morph_pp.cpp | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/tests/lbpm_morph_pp.cpp b/tests/lbpm_morph_pp.cpp index 7e79fba4..27a098a1 100644 --- a/tests/lbpm_morph_pp.cpp +++ b/tests/lbpm_morph_pp.cpp @@ -167,7 +167,7 @@ int main(int argc, char **argv) // Generate a histogram of pore size distribution // Get all local pore sizes (local maxima) if (rank==0) printf("Generating a histogram of pore sizes \n"); - int NumBins=25; + int NumBins=100; int *BinCounts; BinCounts = new int [NumBins]; int *GlobalHistogram; @@ -213,13 +213,17 @@ int main(int argc, char **argv) MinPoreSize=GlobalValue; MPI_Allreduce(&MaxPoreSize,&GlobalValue,1,MPI_DOUBLE,MPI_MAX,comm); MaxPoreSize=GlobalValue; + //if (rank==0) printf(" MaxPoreSize %f\n", MaxPoreSize); + //if (rank==0) printf(" MinPoreSize %f\n", MinPoreSize); // Generate histogram counts if (rank==0) printf(" generating local bin counts... \n"); BinWidth=(MaxPoreSize-MinPoreSize)/double(NumBins); for (int idx=0; idx