aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetRegrid/src/regrid.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetRegrid/src/regrid.cc b/Carpet/CarpetRegrid/src/regrid.cc
index 979b96f39..74809b571 100644
--- a/Carpet/CarpetRegrid/src/regrid.cc
+++ b/Carpet/CarpetRegrid/src/regrid.cc
@@ -13,7 +13,7 @@
#include "regrid.hh"
extern "C" {
- static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetRegrid/src/regrid.cc,v 1.45 2004/05/31 19:04:00 schnetter Exp $";
+ static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetRegrid/src/regrid.cc,v 1.46 2004/06/01 09:39:44 cott Exp $";
CCTK_FILEVERSION(Carpet_CarpetRegrid_regrid_cc);
}
@@ -135,7 +135,7 @@ 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) return refinement_levels != oldnumlevels;
+ if (keep_same_grid_structure && refinement_levels == oldnumlevels) return 0;
}