aboutsummaryrefslogtreecommitdiff
path: root/CarpetAttic
diff options
context:
space:
mode:
authorschnetter <>2002-04-03 14:33:00 +0000
committerschnetter <>2002-04-03 14:33:00 +0000
commit42f10f1bc7780ddc8199e3207a51c32684e36832 (patch)
tree032bde60289a6d468a5e3d4a3a571c0421d35eeb /CarpetAttic
parent0595b414b78936d85408cd902690b54a380faa28 (diff)
Forgot to add this file.
darcs-hash:20020403143351-07bb3-b4bc8e30582548b27e7879592dcbedbeb182e356.gz
Diffstat (limited to 'CarpetAttic')
-rw-r--r--CarpetAttic/CartGrid3D/src/Symmetry.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/CarpetAttic/CartGrid3D/src/Symmetry.h b/CarpetAttic/CartGrid3D/src/Symmetry.h
new file mode 100644
index 000000000..ba1bfeb73
--- /dev/null
+++ b/CarpetAttic/CartGrid3D/src/Symmetry.h
@@ -0,0 +1,57 @@
+/*@@
+ @header Symmetry.h
+ @date Sun 7th Mar 1999
+ @author Gerd Lanfermann
+ @desc
+ The extensions to the GH structure for 3D grid symmetry Treatment
+ We'll have six int array for every GF, which holds a flag for which symmetry or
+ (physical) bnd-condition to apply at the grid faces.
+
+ * These tables are set by SetSymmetry(GF,int,int,int)
+ during initialization.
+ * Default values ?
+ * The information is used during evolution by Einstein_DoBound(GF),
+ Einstein_DoSym(GF)
+ @enddesc
+ @history
+ @endhistory
+ @version $Header: /home/eschnett/C/carpet/Carpet/CarpetAttic/CartGrid3D/src/Attic/Symmetry.h,v 1.1 2002/04/03 16:33:51 schnetter Exp $
+ @@*/
+
+#ifndef _SYMMETRY_H_
+#define _SYMMETRY_H_
+
+#define GFSYM_UNSET -42
+#define GFSYM_NOSYM -41
+
+typedef struct Symmetry
+{
+
+ /* Symmetry[0..GF-1][0..dim-1] */
+ /* in each direction [0,..dim-1], this will hold the symmetry
+ operation across that plane, iff the grid layout requires this.
+ this compares to the {sx,sy,sz} of Cactus3.2 */
+ int **GFSym;
+
+} SymmetryGHex;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+int SetCartSymVI(cGH *GH, int *sym, int vi);
+int SetCartSymGI(cGH *GH, int *sym, int vi);
+int SetCartSymVN(cGH *GH, int *sym, const char *vn);
+int SetCartSymGN(cGH *GH, int *sym, const char *vn);
+
+int CartSymVI(cGH *GH, int vi);
+int CartSymGI(cGH *GH, int gi);
+int CartSymVN(cGH *GH, const char *vn);
+int CartSymGN(cGH *GH, const char *gn);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _SYMMETRY_H_ */