diff options
author | schnetter <> | 2003-05-13 10:14:00 +0000 |
---|---|---|
committer | schnetter <> | 2003-05-13 10:14:00 +0000 |
commit | c5e68615d13e2d12779c9d0347fbcc0eebaf4f5e (patch) | |
tree | 94c5bdf91c09dd001992a445229b07e113c690cb /Carpet/CarpetSlab | |
parent | 1f8ed8eea75ce7f304d0178968b9461662ef7a32 (diff) |
Handle empty grids.
Handle empty grids.
Fix global and level mode handling of the interpolator.
Allow local mode calls for the interpolator, reduction operator, and
hyperslabber, assuming that people know what they are doing.
darcs-hash:20030513101400-07bb3-42af7544c2ea98dbef5a7ad6d5112bea2dcc404f.gz
Diffstat (limited to 'Carpet/CarpetSlab')
-rw-r--r-- | Carpet/CarpetSlab/src/slab.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Carpet/CarpetSlab/src/slab.cc b/Carpet/CarpetSlab/src/slab.cc index 8f1091a8d..440f27f42 100644 --- a/Carpet/CarpetSlab/src/slab.cc +++ b/Carpet/CarpetSlab/src/slab.cc @@ -1,4 +1,4 @@ -// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetSlab/src/slab.cc,v 1.5 2003/05/12 16:25:11 schnetter Exp $ +// $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetSlab/src/slab.cc,v 1.6 2003/05/13 12:14:00 schnetter Exp $ #include <assert.h> #include <stdlib.h> @@ -21,7 +21,7 @@ #include "slab.hh" extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetSlab/src/slab.cc,v 1.5 2003/05/12 16:25:11 schnetter Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetSlab/src/slab.cc,v 1.6 2003/05/13 12:14:00 schnetter Exp $"; CCTK_FILEVERSION(Carpet_CarpetSlab_slab_cc); } @@ -53,7 +53,9 @@ namespace CarpetSlab { // Save global state int saved_component = component; - component = -1; + if (component!=-1) { + set_component (cgh, -1); + } // Check Cactus grid hierarchy assert (cgh); @@ -235,7 +237,9 @@ namespace CarpetSlab { } // if components>0 // Restore global state - component = saved_component; + if (saved_component!=-1) { + set_component (cgh, saved_component); + } // Success return hdata; |