aboutsummaryrefslogtreecommitdiff
path: root/src/Startup.c
diff options
context:
space:
mode:
authorallen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52>1999-06-28 10:40:15 +0000
committerallen <allen@c78560ca-4b45-4335-b268-5f3340f3cb52>1999-06-28 10:40:15 +0000
commit09e5814b0e042501002ff362e58096079dff26a2 (patch)
tree3bfeba942343ad790f54fa6cb65a84fdffdc1914 /src/Startup.c
parent0c16d8529f3489f94dcfa00d188b09d6c805b5e7 (diff)
Symmetry registration and boundary condition is moved from Einstein to
here. Reworked the grid routines to allow grid points to be on the axes depending on the parameter no_origin (defaults to not on the origin). Added more parameter checking git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CartGrid3D/trunk@30 c78560ca-4b45-4335-b268-5f3340f3cb52
Diffstat (limited to 'src/Startup.c')
-rw-r--r--src/Startup.c61
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()
{