aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbzink <>2004-05-12 08:13:00 +0000
committerbzink <>2004-05-12 08:13:00 +0000
commit964d6f41ff2a4b23aea0879bf9ae91177cd4bdb0 (patch)
treec887ce6866208d6a30fb2d3cf29b47f94852b39b
parent02151eddf45b4dd6fb747cccb12fbd20bcbab55c (diff)
Included steering of regrid_every after recovery. This is for convenience
and can be taken out when Carpet does this automatically. -- bzink darcs-hash:20040512081321-5b8bb-acfd2001e95cf51f48b4c0c901a57ae6d15eb76f.gz
-rw-r--r--Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc b/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc
index 3ce2efc4c..7429da933 100644
--- a/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc
+++ b/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc
@@ -18,7 +18,7 @@
#include "cctk_Version.h"
extern "C" {
- static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc,v 1.23 2004/04/20 14:49:58 bzink Exp $";
+ static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOHDF5/src/iohdf5chckpt_recover.cc,v 1.24 2004/05/12 10:13:21 bzink Exp $";
CCTK_FILEVERSION(Carpet_CarpetIOHDF5_iohdf5chckpt_recover_cc);
}
@@ -235,6 +235,16 @@ namespace CarpetIOHDF5 {
CCTK_VInfo (CCTK_THORNSTRING,
"Restarting simulation at iteration %d (physical time %g)",
cctkGH->cctk_iteration, (double) cctkGH->cctk_time);
+
+ // Set regrid_every to recompose the grid hierarchy
+ ostringstream regrid_every;
+ regrid_every << cctkGH->cctk_iteration;
+ int error = CCTK_ParameterSet("regrid_every","CarpetRegrid",
+ regrid_every.str().c_str());
+ if(error) {
+ CCTK_VInfo(CCTK_THORNSTRING,"Setting CarpetRegrid::regrid_every didn't work.");
+ }
+
} // called_from == CP_RECOVER_DATA
if (myproc == 0 && reflevel==maxreflevels) {