From 0914bc88c7aea61eedf470a903c8fa252bdc97dd Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 1 Feb 2005 22:58:00 +0000 Subject: global: Change the way in which the grid hierarchy is stored Change the way in which the grid hierarchy is stored. The new hierarchy is map mglevel reflevel component timelevel i.e., mglevel moved from the bottom to almost the top. This is because mglevel used to be a true multigrid level, but is now meant to be a convergence level. Do not allocate all storage all the time. Allow storage to be switched on an off per refinement level (and for a single mglevel, which prompted the change above). Handle storage management with CCTK_{In,De}creaseGroupStorage instead of CCTK_{En,Dis}ableGroupStorage. darcs-hash:20050201225827-891bb-eae3b6bd092ae8d6b5e49be84c6f09f0e882933e.gz --- Carpet/CarpetLib/src/th.cc | 54 ++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'Carpet/CarpetLib/src/th.cc') diff --git a/Carpet/CarpetLib/src/th.cc b/Carpet/CarpetLib/src/th.cc index 18559ae75..77415fffc 100644 --- a/Carpet/CarpetLib/src/th.cc +++ b/Carpet/CarpetLib/src/th.cc @@ -25,29 +25,29 @@ th::~th () { } // Modifiers -void th::recompose () { - times.resize(h.reflevels()); - deltas.resize(h.reflevels()); - for (int rl=0; rl