diff --git a/common/Domain.cpp b/common/Domain.cpp index 4ff357fe..4f0d3a02 100644 --- a/common/Domain.cpp +++ b/common/Domain.cpp @@ -359,6 +359,34 @@ void Domain::Decomp(std::string Filename) } } printf("Read segmented data from %s \n",Filename.c_str()); + + // relabel the data + std::vector LabelCount(ReadValues.size(),0); + for (int k = 0; k 0){ // use checkerboard pattern @@ -488,7 +516,6 @@ void Domain::Decomp(std::string Filename) char *loc_id; loc_id = new char [(nx+2)*(ny+2)*(nz+2)]; - std::vector LabelCount(ReadValues.size(),0); // Set up the sub-domains if (RANK==0){ printf("Distributing subdomains across %i processors \n",nprocs); @@ -521,24 +548,6 @@ void Domain::Decomp(std::string Filename) } } } - // relabel the data - for (k=0;k LabelCount(ReadValues.size(),0); + for (int k = 0; k 0){ // use checkerboard pattern printf("Checkerboard pattern at x inlet for %i layers \n",inlet_count_x); @@ -289,7 +317,6 @@ int main(int argc, char **argv) char *loc_id; loc_id = new char [(nx+2)*(ny+2)*(nz+2)]; - std::vector LabelCount(ReadValues.size(),0); // Set up the sub-domains if (rank==0){ printf("Distributing subdomains across %i processors \n",nprocs); @@ -322,28 +349,6 @@ int main(int argc, char **argv) } } } - // relabel the data - for (k=0;k