diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-04-19 13:51:40 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-04-19 13:51:40 +0000 |
commit | 1330b0998a43c3b4b033c9f44511f9336d333ca9 (patch) | |
tree | d284d1cec7c71232a527b4b85f87d3078ce88d95 /src/RecoverGH.c | |
parent | ddba92ffd7126f79a427adec85e435b327697cb4 (diff) |
Scheduled parameter recovery routine returns 1 for success, -1 for failure.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@110 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/RecoverGH.c')
-rw-r--r-- | src/RecoverGH.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/RecoverGH.c b/src/RecoverGH.c index f712dc2..fca11cf 100644 --- a/src/RecoverGH.c +++ b/src/RecoverGH.c @@ -237,6 +237,11 @@ int IOFlexIO_RecoverParameters (void) nCPfiles = scandir (recovery_dir, &CPfilelist, IOFlexIOi_CPfileSelect, IOFlexIOi_CPfileCompare); + if (nCPfiles <= 0) + CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING, + "No IEEEIO checkpoint files with basename '%s' found in " + "recovery directory '%s'", recover_file, recovery_dir); + for (i = 0; i < nCPfiles; i++) { if (retval < 0) retval = IOFlexIO_Recover (dummyGH, CPfilelist [i]->d_name, @@ -591,8 +596,8 @@ static int IOFlexIOi_RecoverParameters (fileinfo_t *file) free (parameters); } - /* Return 0 for success otherwise negative */ - return (parameterSize > 0 ? 0 : -1); + /* Return positive value for success otherwise negative */ + return (parameterSize > 0 ? 1 : -1); } |