aboutsummaryrefslogtreecommitdiff
path: root/src/RecoverGH.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/RecoverGH.c')
-rw-r--r--src/RecoverGH.c9
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);
}