diff options
author | allen <allen@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 1999-09-21 11:27:32 +0000 |
---|---|---|
committer | allen <allen@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 1999-09-21 11:27:32 +0000 |
commit | 1940d71782b4cc3519972ebf4504bbe4486cf7d0 (patch) | |
tree | bc11dc4e95891c19d3e88c0b15bb4ebf068d1d45 /src/Startup.c | |
parent | ac667e93729515249ec4d81961d1c83e2a0e217d (diff) |
This commit was generated by cvs2svn to compensate for changes in r2, which
included commits to RCS files with non-trunk default branches.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@3 b589c3ab-70e8-4b4d-a09f-cba2dd200880
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c new file mode 100644 index 0000000..bf23e32 --- /dev/null +++ b/src/Startup.c @@ -0,0 +1,80 @@ + /*@@ + @file Startup.c + @date Friday 18th September 1999 + @author Gabrielle Allen + @desc + Startup routines for IOBasic. + @enddesc + @@*/ + + +#include <stdio.h> +#include <string.h> + +#include "cctk_Flesh.h" +#include "cctk_GHExtensions.h" +#include "cctk_IOMethods.h" +#include "cctk_parameters.h" + +/* prototypes of functions to be registered */ +int IOBasic_OutputGH (cGH *GH); +int IOBasic_TriggerOutput (cGH *GH, int); +int IOBasic_TimeForOutput (cGH *GH, int); +int IOBasic_OutputVarAs (cGH *GH, const char *var, const char *alias); +void *IOBasic_SetupGH (tFleshConfig *config, int convergence_level, cGH *GH); +int IOBasic_InitGH (cGH *GH); +int IOBasic_rfrTraverseGH (cGH *GH, int rfrpoint); + +int IOBasic_OutputInfoGH (cGH *GH); +int IOBasic_TriggerOutputInfo (cGH *GH, int); +int IOBasic_TimeForInfo (cGH *GH, int); + + + /*@@ + @routine IOBasic_Startup + @date Friday 18th September 1999 + @author Gabrielle Allen + @desc + The startup registration routine for Basic IO. + Registers the GH extensions needed for IO and + the registerable routines used for each method of IO. + IO does not overload any functions. + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ +void IOBasic_Startup (void) +{ + DECLARE_CCTK_PARAMETERS + int IOMethod; + int IO_GHExtension; + + IO_GHExtension = CCTK_RegisterGHExtension ("IOBasic"); + CCTK_RegisterGHExtensionSetupGH (IO_GHExtension, IOBasic_SetupGH); + CCTK_RegisterGHExtensionInitGH (IO_GHExtension, IOBasic_InitGH); + CCTK_RegisterGHExtensionrfrTraverseGH (IO_GHExtension, IOBasic_rfrTraverseGH); + + /* Register the IOBasic routines as output methods */ + IOMethod = CCTK_RegisterIOMethod ("Scalar"); + CCTK_RegisterIOMethodOutputGH (IOMethod, IOBasic_OutputGH); + CCTK_RegisterIOMethodOutputVarAs (IOMethod, IOBasic_OutputVarAs); + CCTK_RegisterIOMethodTimeToOutput (IOMethod, IOBasic_TimeForOutput); + CCTK_RegisterIOMethodTriggerOutput (IOMethod, IOBasic_TriggerOutput); + + IOMethod = CCTK_RegisterIOMethod ("Info"); + CCTK_RegisterIOMethodOutputGH (IOMethod, IOBasic_OutputInfoGH); + CCTK_RegisterIOMethodTimeToOutput (IOMethod, IOBasic_TimeForInfo); + CCTK_RegisterIOMethodTriggerOutput (IOMethod, IOBasic_TriggerOutputInfo); + +} + + + + + + + |