From 5b3c2c416ff5e308293453028fb444d0aefe8770 Mon Sep 17 00:00:00 2001 From: James McClure Date: Wed, 19 Mar 2014 20:04:00 -0400 Subject: [PATCH] Corrected sauter mean diameter --- tests/lb2_Color_wia_mpi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lb2_Color_wia_mpi.cpp b/tests/lb2_Color_wia_mpi.cpp index 8de66270..db417b43 100644 --- a/tests/lb2_Color_wia_mpi.cpp +++ b/tests/lb2_Color_wia_mpi.cpp @@ -412,7 +412,8 @@ int main(int argc, char **argv) totVol += 1.3333333333333*3.14159265359*rad[i]*rad[i]*rad[i]; totArea += 4.0*3.14159265359*rad[i]*rad[i]; } - D = totVol / totArea; + D = 6.0* totVol / totArea; + printf("Sauter Mean Diameter (computed from sphere packing) %f /n = ",D); } MPI_Bcast(&D,1,MPI_DOUBLE,0,MPI_COMM_WORLD);