aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authoreschnett <>2001-03-14 11:57:00 +0000
committereschnett <>2001-03-14 11:57:00 +0000
commit7e8f0395026218db67a039fdc7de81a39cf7a934 (patch)
treec8fd5529268c5d751b072e8e6fd3d8ddabbac0ea /Carpet
parent6e8afc35965e0d2a7e897746890f3fcee561077e (diff)
Fixed bug: Did access uninitialised time hierarchies.
darcs-hash:20010314115738-f6438-74b1a624dc05d8f464452d0dcf577b6c28253707.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/Carpet/src/carpet.cc18
1 files changed, 13 insertions, 5 deletions
diff --git a/Carpet/Carpet/src/carpet.cc b/Carpet/Carpet/src/carpet.cc
index e1fee926c..1a65ea17f 100644
--- a/Carpet/Carpet/src/carpet.cc
+++ b/Carpet/Carpet/src/carpet.cc
@@ -1,4 +1,4 @@
-// $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Attic/carpet.cc,v 1.10 2001/03/14 11:00:17 eschnett Exp $
+// $Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Attic/carpet.cc,v 1.11 2001/03/14 12:57:38 eschnett Exp $
/* It is assumed that the number of components of all arrays is equal
to the number of components of the grid functions, and that their
@@ -32,7 +32,7 @@
#include "carpet.hh"
-static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Attic/carpet.cc,v 1.10 2001/03/14 11:00:17 eschnett Exp $";
+static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/Carpet/src/Attic/carpet.cc,v 1.11 2001/03/14 12:57:38 eschnett Exp $";
@@ -426,9 +426,17 @@ namespace Carpet {
// Advance level times
tt->advance_time (reflevel, mglevel);
- for (int array=0; array<(int)arrdata.size(); ++array) {
- if (arrdata[array].tt) {
- arrdata[array].tt->advance_time (reflevel, mglevel);
+ for (int group=0; group<CCTK_NumGroups(); ++group) {
+ switch (CCTK_GroupTypeI(group)) {
+ case CCTK_SCALAR:
+ break;
+ case CCTK_ARRAY:
+ arrdata[group].tt->advance_time (reflevel, mglevel);
+ break;
+ case CCTK_GF:
+ break;
+ default:
+ abort();
}
}