From 418c85a3318c700cbe6b20b0b7eeb82985601740 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 3 Jul 2012 21:33:52 -0400 Subject: 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. --- CarpetDev/CarpetIOF5/src/output.cc | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'CarpetDev') diff --git a/CarpetDev/CarpetIOF5/src/output.cc b/CarpetDev/CarpetIOF5/src/output.cc index c0e8436dd..aad6174f2 100644 --- a/CarpetDev/CarpetIOF5/src/output.cc +++ b/CarpetDev/CarpetIOF5/src/output.cc @@ -104,7 +104,8 @@ namespace CarpetIOF5 { struct component_indices_t: map_indices_t { // elements >=dim remain undefined - ivect lbnd, lssh, lghosts, ughosts; + ivect ash; + ivect lbnd, lsh, lghosts, ughosts; ivect imin, imax, ioff, ilen; rvect clower, cupper; @@ -117,8 +118,9 @@ namespace CarpetIOF5 { if (gindex == -1) { // grid function for (int d=0; d<(::dim); ++d) { + ash[d] = cctk_ash[d]; lbnd[d] = cctk_lbnd[d]; - lssh[d] = CCTK_LSSH(0,d); + lsh[d] = cctk_lsh[d]; lghosts[d] = cctk_bbox[2*d ] ? 0 : cctk_nghostzones[d]; ughosts[d] = cctk_bbox[2*d+1] ? 0 : cctk_nghostzones[d]; } @@ -128,25 +130,23 @@ namespace CarpetIOF5 { int const ierr = CCTK_GroupDynamicData(cctkGH, gindex, &dyndata); assert(not ierr); for (int d=0; d