aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CheckpointRecovery.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c
index fb9872a..5d79672 100644
--- a/src/CheckpointRecovery.c
+++ b/src/CheckpointRecovery.c
@@ -596,9 +596,21 @@ int IOUtil_RecoverParameters (int (*recover_fn) (cGH *GH,
dir = opendir (recover_dir);
if (! dir)
{
- CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
- "Recovery directory '%s' doesn't exist", recover_dir);
- return (CCTK_Equals (recover, "autoprobe") ? 0 : -2);
+ /* The recovery directory does not exist */
+ if (CCTK_Equals (recover, "autoprobe"))
+ {
+ /* This is harmless when "autoprobe" is used */
+ CCTK_VInfo (CCTK_THORNSTRING,
+ "Recovery directory '%s' doesn't exist", recover_dir);
+ return 0;
+ }
+ else
+ {
+ /* This is an error when "auto" is used */
+ CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
+ "Recovery directory '%s' doesn't exist", recover_dir);
+ return -2;
+ }
}
/* get the list of potential recovery files */