aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 5a50fce..8a66e7d 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -162,7 +162,6 @@ void IOUtil_UpdateParFile (CCTK_ARGUMENTS)
@returntype CCTK_INT
@returndesc 1 or 0 for truncate or not
- -1 in case of an error (wrong value for GH parameter)
@endreturndesc
@@*/
CCTK_INT IOUtil_TruncateOutputFiles (const CCTK_POINTER_TO_CONST GH)
@@ -174,7 +173,8 @@ CCTK_INT IOUtil_TruncateOutputFiles (const CCTK_POINTER_TO_CONST GH)
myGH = CCTK_GHExtension (GH, "IO");
if (! myGH)
{
- return (-1);
+ CCTK_WARN (CCTK_WARN_ABORT,
+ "IOUtil_TruncateOutputFiles called before being fully initialized. Please make sure to only call me after the STARTUP bin has finished and the driver called CCTKi_InitGHExtensions.");
}
return (myGH->recovered ? truncate_files_after_recovering : truncate_files);