minor refactor of sphere test

This commit is contained in:
James E McClure 2018-09-06 15:17:09 -04:00
parent 87b32dd0b4
commit 3f6d9b62b8

View File

@ -360,9 +360,9 @@ int main(int argc, char **argv)
nprocx = Dm->nprocx();
nprocy = Dm->nprocy();
nprocz = Dm->nprocz();
nspheres = domain_db->getScalar<int>( "nspheres");
nspheres = domain_db->getScalar<int>( "nspheres");
printf("Set domain \n");
//printf("Set domain \n");
int BoundaryCondition=1;
//Nz += 2;
//Nx = Ny = Nz; // Cubic domain
@ -379,10 +379,6 @@ int main(int argc, char **argv)
}
Dm->CommInit();
if (rank==0) printf("Number of nodes per side = %i \n", Nx);
if (rank==0) printf("Total Number of nodes = %i \n", N);
if (rank==0) printf("********************************************************\n");
//.......................................................................
if (rank == 0) printf("Read input media... \n");
//.......................................................................
@ -410,7 +406,7 @@ int main(int argc, char **argv)
//.......................................................................
// Read in sphere pack
if (rank==1) printf("nspheres =%i \n",nspheres);
//if (rank==1) printf("nspheres =%i \n",nspheres);
//.......................................................................
double *cx,*cy,*cz,*rad;
cx = new double[nspheres];