diff options
Diffstat (limited to 'src/extrap.cc')
-rw-r--r-- | src/extrap.cc | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/extrap.cc b/src/extrap.cc index 8d91472..ac6e86e 100644 --- a/src/extrap.cc +++ b/src/extrap.cc @@ -119,13 +119,10 @@ void newrad_extrap_loop (cGH const* restrict const cctkGH, // one of the faces is a boundary bool have_bnd = false; - // all boundary faces are physical boundaries - bool all_physbnd = true; // at least one boundary face is a physical boundary bool any_physbnd = false; - // all boundary faces are either physical boundaries or - // ghost zones - bool all_physbnd_or_ghostbnd = true; + // all boundary faces are not inter-processor boundaries + bool all_not_ipbnd = true; int bmin[3], bmax[3]; for (int d=0; d<3; ++d) { @@ -134,10 +131,8 @@ void newrad_extrap_loop (cGH const* restrict const cctkGH, bmin[d] = 0; bmax[d] = imin[d]; have_bnd = true; - all_physbnd = all_physbnd and is_physbnd[2*d+0]; any_physbnd = any_physbnd or is_physbnd[2*d+0]; - all_physbnd_or_ghostbnd = all_physbnd_or_ghostbnd and - (is_physbnd[2*d+0] or is_ipbnd[2*d+0]); + all_not_ipbnd = all_not_ipbnd and not is_ipbnd[2*d+0]; break; case 0: bmin[d] = imin[d]; @@ -147,16 +142,14 @@ void newrad_extrap_loop (cGH const* restrict const cctkGH, bmin[d] = imax[d]; bmax[d] = cctkGH->cctk_lsh[d]; have_bnd = true; - all_physbnd = all_physbnd and is_physbnd[2*d+1]; any_physbnd = any_physbnd or is_physbnd[2*d+1]; - all_physbnd_or_ghostbnd = all_physbnd_or_ghostbnd and - (is_physbnd[2*d+1] or not is_ipbnd[2*d+1]); + all_not_ipbnd = all_not_ipbnd and not is_ipbnd[2*d+1]; break; } } assert (have_bnd); // must be true since nnz>0 - if (have_bnd and any_physbnd and all_physbnd_or_ghostbnd) { + if (have_bnd and any_physbnd and all_not_ipbnd) { extrap_kernel (cctkGH, bmin, bmax, dir, var); } |