diff --git a/common/Domain.cpp b/common/Domain.cpp index 2b825f37..e56965c3 100644 --- a/common/Domain.cpp +++ b/common/Domain.cpp @@ -232,7 +232,7 @@ void Domain::Decomp(std::shared_ptr domain_db ) // Reading the domain information file //....................................................................... int rank_offset = 0; - int RANK = 0; + int RANK = rank(); int nprocs, nprocx, nprocy, nprocz, nx, ny, nz; int64_t global_Nx,global_Ny,global_Nz; int64_t i,j,k,n; @@ -518,10 +518,6 @@ void Domain::Decomp(std::shared_ptr domain_db ) idx = ReadValues.size(); } } - //if (loc_id[n]==char(SOLID)) loc_id[n] = 0; - //else if (loc_id[n]==char(NWP)) loc_id[n] = 1; - //else loc_id[n] = 2; - } } } @@ -530,13 +526,13 @@ void Domain::Decomp(std::shared_ptr domain_db ) for (j=0;j domain_db ) } } } + for (int idx=0; idx