aboutsummaryrefslogtreecommitdiff
path: root/src/CheckpointRecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/CheckpointRecovery.c')
-rw-r--r--src/CheckpointRecovery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c
index 93bad2a..f9aee40 100644
--- a/src/CheckpointRecovery.c
+++ b/src/CheckpointRecovery.c
@@ -413,6 +413,11 @@ int IOUtil_RecoverVarsFromDatafiles (cGH *GH,
myGH = CCTK_GHExtension (GH, "IO");
+ if (myGH == NULL)
+ {
+ CCTK_WARN (0, "invalid cctkGH pointer passed into "
+ "IOUtil_RecoverVarsFromDatafiles()");
+ }
if (CCTK_NumVars () > 0)
{