From ba66da2d0fd731113e7add4a797a3abb63678dab Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sat, 7 Mar 2015 15:37:04 -0500 Subject: [PATCH] small changes to lbpm_BlobAnalysis --- tests/lbpm_BlobAnalysis.cpp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/lbpm_BlobAnalysis.cpp b/tests/lbpm_BlobAnalysis.cpp index 2e6422f0..6d474be9 100644 --- a/tests/lbpm_BlobAnalysis.cpp +++ b/tests/lbpm_BlobAnalysis.cpp @@ -52,7 +52,11 @@ int main(int argc, char **argv) int Nx,Ny,Nz,N,nspheres; double Lx,Ly,Lz; - int BC,nblobs; + int BC; // type of boundary condition applied: 0-periodic, 1-pressure/velocity + int nblobs_global; // number of blobs in the global system + + int *CubeList; + if (rank==0){ //....................................................................... @@ -161,9 +165,15 @@ int main(int argc, char **argv) Averages.Vel_y.data[n]=vy; Averages.Vel_z.data[n]=vz; } - Averages.Phase(); - Averages.LocalBlobID(); + // Count the number of cubes for each blob + for (k=0;k