From d5056c847b895a281f2f256cf9f758cbb247d488 Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 29 Feb 2008 14:35:44 +0000 Subject: Change level 1 warning about non-existing directory to info message when "autoprobe" is used git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@258 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a --- src/CheckpointRecovery.c | 18 +++++++++++++++--- 1 file 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 */ -- cgit v1.2.3