diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-06-28 10:45:29 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 1999-06-28 10:45:29 +0000 |
commit | e6468bd470de6672b8c77c2fc081064b1855d79e (patch) | |
tree | 1a85370bd89b499a2e3387153ce0a79f08fb8887 /src/Startup.c | |
parent | ad6eb67f8ab76a222cbee4af0cafe15d78804d46 (diff) |
Register IOFlexIO recovery routine in thorn IOUtil.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@5 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c index a9d5113..affbcf6 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -16,6 +16,7 @@ #include "flesh.h" #include "GHExtensions.h" #include "declare_parameters.h" +#include "CactusBase/IOUtil/src/ioGH.h" /* prototypes of functions to be registered */ int IOFlexIO_Output2DGH (cGH *GH); @@ -29,6 +30,7 @@ int IOFlexIO_Output3DVarAs (cGH *GH, const char *var, const char *alias); void *IOFlexIO_SetupGH (tFleshConfig *config, int convergence_level, cGH *GH); int IOFlexIO_InitGH (cGH *GH); int IOFlexIO_rfrTraverseGH (cGH *GH, int rfrpoint); +int IOFlexIO_RecoverGH (cGH *GH, const char *basename, int called_from); @@ -75,4 +77,8 @@ void IOFlexIO_Startup (void) CCTK_RegisterIOMethodTimeToOutput (IOMethod, IOFlexIO_TimeFor3D); CCTK_RegisterIOMethodTriggerOutput (IOMethod, IOFlexIO_TriggerOutput3D); } + + /* Register the IOFlexIO recovery routine to thorn IOUtil */ + if (IOUtil_RegisterRecover ("IOFlexIO recovery", IOFlexIO_RecoverGH) < 0) + CCTK_WARN (1, "Failed to register IOFlexIO recovery routine"); } |