aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2000-04-19 13:33:37 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2000-04-19 13:33:37 +0000
commit4fc4361727b9eb1ebae53baaca3dc2394aeccb8a (patch)
treeedba4a49117597c2fa28f680ad76807c005afc6e /src
parent0b8ecc25a57b9078322d604411dad8b93731e0ee (diff)
Print a warning at recovery if no recovery routines were registered
and stop Cactus afterwards. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@61 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'src')
-rw-r--r--src/CheckpointRecovery.c3
-rw-r--r--src/ioGH.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c
index 2e9afb5..1e3e9d5 100644
--- a/src/CheckpointRecovery.c
+++ b/src/CheckpointRecovery.c
@@ -240,6 +240,9 @@ int IOUtil_RecoverFromFile (cGH *GH, const char *basename, int called_from)
}
}
+ if (num_functions <= 0)
+ CCTK_WARN (1, "No recovery routines were registered");
+
return retval;
}
diff --git a/src/ioGH.h b/src/ioGH.h
index b6743eb..0f9f3e2 100644
--- a/src/ioGH.h
+++ b/src/ioGH.h
@@ -49,7 +49,10 @@ typedef struct IOGH {
int out_single; /* if true output 3D data in single precision */
/* for recovery */
- int recovered; /* flag indicated restart after successful recovery */
+ int recovered; /* flag indicating restart after successful recovery */
+
+ /* for data file reader */
+ char *do_inVars; /* flags indicating to read in variable [i] */
} ioGH;