diff options
-rw-r--r-- | src/CheckpointRecovery.c | 5 |
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) { |