aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/CallFunction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/CallFunction.cc')
-rw-r--r--Carpet/Carpet/src/CallFunction.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/Carpet/Carpet/src/CallFunction.cc b/Carpet/Carpet/src/CallFunction.cc
index 73c34d73c..8cff27927 100644
--- a/Carpet/Carpet/src/CallFunction.cc
+++ b/Carpet/Carpet/src/CallFunction.cc
@@ -362,7 +362,16 @@ namespace Carpet {
{
// The user changed cctk_delta_time during initialisation --
// update our internals and the time hierarchy
- delta_time = cctkGH->cctk_delta_time * timereflevelfact / mglevelfact;
+ bool const is_global =
+ attribute->meta or
+ attribute->meta_early or
+ attribute->meta_late or
+ attribute->global or
+ attribute->global_early or
+ attribute->global_late;
+ delta_time =
+ cctkGH->cctk_delta_time / mglevelfact *
+ (is_global ? 1.0 : timereflevelfact);
for (int ml=0; ml<mglevels; ++ml) {
for (int rl=0; rl<reflevels; ++rl) {
// Update the time delta