aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid/src/regrid.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetRegrid/src/regrid.cc')
-rw-r--r--Carpet/CarpetRegrid/src/regrid.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetRegrid/src/regrid.cc b/Carpet/CarpetRegrid/src/regrid.cc
index f3e3231c9..5b46f8843 100644
--- a/Carpet/CarpetRegrid/src/regrid.cc
+++ b/Carpet/CarpetRegrid/src/regrid.cc
@@ -131,7 +131,9 @@ namespace CarpetRegrid {
// Return if this is not during initial data generation, and if no
// change in the grid structure is desired
if (cctkGH->cctk_iteration != 0) {
- if (keep_same_grid_structure and refinement_levels == oldnumlevels) return 0;
+ if (keep_same_grid_structure and refinement_levels == reflevels) {
+ return 0;
+ }
}
} else {