From 8127c52416751ddb66cc495be480b267388c1b5a Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 5 Jun 2005 21:59:00 +0000 Subject: CarpetRegrid: Allow to steer regridding from other thorns For keep_same_grid_structure, regrid also when the parameter refinement_levels is different from the variable Carpet::reflevels. This allows the parameter to be steered from other thorns. darcs-hash:20050605215946-891bb-0611bb737445c7957bf30a28459d64c3b6a16405.gz --- Carpet/CarpetRegrid/src/regrid.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetRegrid') 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 { -- cgit v1.2.3