From 42f10f1bc7780ddc8199e3207a51c32684e36832 Mon Sep 17 00:00:00 2001 From: schnetter <> Date: Wed, 3 Apr 2002 14:33:00 +0000 Subject: Forgot to add this file. darcs-hash:20020403143351-07bb3-b4bc8e30582548b27e7879592dcbedbeb182e356.gz --- CarpetAttic/CartGrid3D/src/Symmetry.h | 57 +++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 CarpetAttic/CartGrid3D/src/Symmetry.h (limited to 'CarpetAttic') 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_ */ -- cgit v1.2.3