diff options
author | eschnett <eschnett@16f5cafb-89ad-4b9f-9d0b-9d7a0a37d03b> | 2012-07-04 01:29:43 +0000 |
---|---|---|
committer | eschnett <eschnett@16f5cafb-89ad-4b9f-9d0b-9d7a0a37d03b> | 2012-07-04 01:29:43 +0000 |
commit | 1a5727e7cea2b4ac2477f55a00537c4c33235862 (patch) | |
tree | 827b83478c7965aeb3997e247fe7486334512e5e | |
parent | 060fa55655f11191e45d8dea599aa8e0b07ffcec (diff) |
Introduce cctk_ash, retire cctk_lssh
Introduce cctk_ash, describing the process-local array shape that has
been allocated. This may be larger than cctk_lsh, the process-local
shape that should be used.
Retire cctk_lssh and related infrastructure to handle staggered grid
functions.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinEvolve/NewRad/trunk@16 16f5cafb-89ad-4b9f-9d0b-9d7a0a37d03b
-rw-r--r-- | src/extrap.cc | 4 | ||||
-rw-r--r-- | src/newrad.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/extrap.cc b/src/extrap.cc index a6582f9..306cb14 100644 --- a/src/extrap.cc +++ b/src/extrap.cc @@ -94,7 +94,7 @@ void extrap_loop (cGH const* restrict const cctkGH, { int imin[3], imax[3], is_symbnd[6], is_physbnd[6], is_ipbnd[6]; GenericFD_GetBoundaryInfo - (cctkGH, cctkGH->cctk_lsh, cctkGH->cctk_lssh, cctkGH->cctk_bbox, + (cctkGH, cctkGH->cctk_ash, cctkGH->cctk_lsh, cctkGH->cctk_bbox, cctkGH->cctk_nghostzones, imin, imax, is_symbnd, is_physbnd, is_ipbnd); @@ -142,7 +142,7 @@ void extrap_loop (cGH const* restrict const cctkGH, break; case +1: bmin[d] = imax[d]; - bmax[d] = cctkGH->cctk_lssh[CCTK_LSSH_IDX(0,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]; diff --git a/src/newrad.cc b/src/newrad.cc index 498bc88..a0a270b 100644 --- a/src/newrad.cc +++ b/src/newrad.cc @@ -282,7 +282,7 @@ void newrad_loop (cGH const* restrict const cctkGH, { int imin[3], imax[3], is_symbnd[6], is_physbnd[6], is_ipbnd[6]; GenericFD_GetBoundaryInfo - (cctkGH, cctkGH->cctk_lsh, cctkGH->cctk_lssh, cctkGH->cctk_bbox, + (cctkGH, cctkGH->cctk_ash, cctkGH->cctk_lsh, cctkGH->cctk_bbox, cctkGH->cctk_nghostzones, imin, imax, is_symbnd, is_physbnd, is_ipbnd); @@ -330,7 +330,7 @@ void newrad_loop (cGH const* restrict const cctkGH, break; case +1: bmin[d] = imax[d]; - bmax[d] = cctkGH->cctk_lssh[CCTK_LSSH_IDX(0,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]; |