diff options
author | schnetter <schnetter@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2008-02-29 14:35:44 +0000 |
---|---|---|
committer | schnetter <schnetter@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2008-02-29 14:35:44 +0000 |
commit | d5056c847b895a281f2f256cf9f758cbb247d488 (patch) | |
tree | 184a9ca1980d04e19424e1bda72b436c27ca9dfb | |
parent | a81609a55fd3689cc621649324d499a843ca209b (diff) |
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
-rw-r--r-- | src/CheckpointRecovery.c | 18 |
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 */ |