aboutsummaryrefslogtreecommitdiff
path: root/src/petsc_flat_solver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/petsc_flat_solver.c')
-rw-r--r--src/petsc_flat_solver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/petsc_flat_solver.c b/src/petsc_flat_solver.c
index 10e3ecc..74e0216 100644
--- a/src/petsc_flat_solver.c
+++ b/src/petsc_flat_solver.c
@@ -29,6 +29,14 @@ CCTK_FILEVERSION(CactusElliptic_EllPETSc_petsc_flat_solver_c)
#define ELLCONV_RELATIVE 1
#define ELLCONV_EITHER 2
+/* direction macros */
+#define XDP 1
+#define XDM 0
+#define YDP 3
+#define YDM 2
+#define ZDP 5
+#define ZDM 4
+
/* A convenient macros for the stencil molecule*/
#define a(i,j,k) a[i+1 + 3*(j+1 + 3*(k+1))]