aboutsummaryrefslogtreecommitdiff
path: root/src/CheckpointRecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/CheckpointRecovery.c')
-rw-r--r--src/CheckpointRecovery.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c
index 3055940..e1d7cb1 100644
--- a/src/CheckpointRecovery.c
+++ b/src/CheckpointRecovery.c
@@ -396,8 +396,12 @@ int IOUtil_RecoverVarsFromDatafiles (cGH *GH,
if (CCTK_NumVars () > 0)
{
myGH->do_inVars = calloc (CCTK_NumVars (), sizeof (CCTK_INT));
- CCTK_TraverseString (in_vars, SetInputFlag, myGH->do_inVars,
- CCTK_GROUP_OR_VAR);
+ if (CCTK_TraverseString (in_vars, SetInputFlag, myGH->do_inVars,
+ CCTK_GROUP_OR_VAR) < 0)
+ {
+ CCTK_WARN (myGH->stop_on_parse_errors ? 0 : 1,
+ "error while parsing parameter 'IO::filereader_ID_vars'");
+ }
}
else
{
@@ -488,10 +492,14 @@ void CCTK_FCALL CCTK_FNAME (IOUtil_RecoverVarsFromDatafiles)
@@*/
void IOUtil_RecoverIDFromDatafiles (cGH *GH)
{
+ ioGH *myGH;
DECLARE_CCTK_PARAMETERS
+ myGH = CCTK_GHExtension (GH, "IO");
+ myGH->stop_on_parse_errors = strict_io_parameter_check;
IOUtil_RecoverVarsFromDatafiles (GH, filereader_ID_files, filereader_ID_vars);
+ myGH->stop_on_parse_errors = 0;
}