From b23af91d98397fd1d4175a4a9a78376710cc22b3 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Tue, 6 Aug 2019 13:34:22 -0400 Subject: [PATCH] refactor Domain for decomp parallel --- common/Domain.cpp | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) 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