diff options
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c index 8b25f4d..9baebfd 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -1,6 +1,67 @@ + /*@@ + @file Startup.c + @date Mon Mar 15 15:48:42 1999 + @author Gerd Lanfermann + @desc + Startup file to register the GHextension and coordinates + @enddesc + @@*/ #include "cctk.h" +#include "flesh.h" #include "Coord.h" +#include "GHExtensions.h" + +void *Symmetry_AllocGHex(tFleshConfig *, int, cGH *); +int Symmetry_InitGHex(cGH *GH); + + + /*@@ + @routine SymmetryStartup + @date Mon Mar 15 15:49:16 1999 + @author Gerd Lanfermann + @desc + Routine registers the Setup and Initialation routines for the + GHExtension, which holds the symmetry BCs. + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ + +/* Store the handle in a global variable for the moment. */ +int Symmetry_handle; + +int SymmetryStartup(void) { + + /* we name the GHextension "Symmetry" and get an + integer identifying the GHex */ + Symmetry_handle = CCTK_RegisterGHExtension("Symmetry"); + + /* Register the allocation and init routine */ + CCTK_RegisterGHExtensionSetupGH(Symmetry_handle,Symmetry_AllocGHex); + CCTK_RegisterGHExtensionInitGH(Symmetry_handle,Symmetry_InitGHex); + return 0; +} + + + /*@@ + @routine RegisterCartGrid3DCoords + @date + @author Gabrielle Allen + @desc + Routine registers the coordinates provided by CartGrid3D + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ int RegisterCartGrid3DCoords() { |