aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/helpers.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-09-25 12:15:04 -0400
committerErik Schnetter <schnetter@gmail.com>2013-09-25 12:15:04 -0400
commitbc08df460473e83129b972eed6472bc99b14de5e (patch)
treee28e26b27352c2f2cb9c2e0c0ee79024c73593f5 /Carpet/Carpet/src/helpers.cc
parentd37f25ab50b6155026196665c502864e9696dd5b (diff)
Carpet: Introduce parameter max_time_levels
This parameter defines the maximum number of time levels that a variable can have when being used for time prolongation. This allows using more time levels than prolongation_order_time+1.
Diffstat (limited to 'Carpet/Carpet/src/helpers.cc')
-rw-r--r--Carpet/Carpet/src/helpers.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/helpers.cc b/Carpet/Carpet/src/helpers.cc
index a34fd974c..a13b8bc9e 100644
--- a/Carpet/Carpet/src/helpers.cc
+++ b/Carpet/Carpet/src/helpers.cc
@@ -156,8 +156,8 @@ namespace Carpet {
assert (rl == 0);
assert (c == CCTK_MyProc (NULL));
}
- int const maxtimelevels = CCTK_MaxTimeLevelsGI (groupindex);
- assert (tl >= 0 and tl < maxtimelevels);
+ int const maxtls = CCTK_MaxTimeLevelsGI (groupindex);
+ assert (tl >= 0 and tl < maxtls);
int const activetimelevels =
groupdata.AT(groupindex).activetimelevels.AT(mglevel).AT(rl);