aboutsummaryrefslogtreecommitdiff
path: root/src/macro/DXDG_guts.h
diff options
context:
space:
mode:
authorevans <evans@b1d164ef-f17a-46e7-89d4-021c7118ef4e>1999-03-09 21:04:02 +0000
committerevans <evans@b1d164ef-f17a-46e7-89d4-021c7118ef4e>1999-03-09 21:04:02 +0000
commit0a13cbb3d0f5ebf208d962d374a197c66bd13b1b (patch)
tree19582fa856a1193d17170ad971353f58e7be36c9 /src/macro/DXDG_guts.h
parentc58897b8676212b9aee16d6d2f80ca2adeb50c6c (diff)
added the Einstien macros.
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMMacros/trunk@2 b1d164ef-f17a-46e7-89d4-021c7118ef4e
Diffstat (limited to 'src/macro/DXDG_guts.h')
-rw-r--r--src/macro/DXDG_guts.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/macro/DXDG_guts.h b/src/macro/DXDG_guts.h
new file mode 100644
index 0000000..d89610f
--- /dev/null
+++ b/src/macro/DXDG_guts.h
@@ -0,0 +1,53 @@
+/*@@
+ @header DXDG_guts.h
+ @date Jun 98
+ @author Gabrielle Allen
+ @desc
+ Macro to calculate the first derivatives of the
+ physical metric with respect to x
+
+ The macro is defined in terms of standard variables in
+ @seefile DXDG_declare.h
+ @enddesc
+@@*/
+
+#ifndef DXDG_GUTS
+#define DXDG_GUTS
+
+#include "../../packages/CactusEinstein/Einstein/src/macro/DXDCG_guts.h"
+
+#ifdef FCODE
+
+ IF (conformal_state /= CONFORMAL_METRIC) THEN
+ DXDG_PSI4 = 1
+ DXDG_FAC = 0
+ ELSE
+ DXDG_PSI4 = DXDG_PSI**4
+ DXDG_FAC = 4*DXDG_PSI4*DXDG_DXDPSI_O_PSI
+ ENDIF
+
+ DXDG_DXDGXX = DXDCG_DXDCGXX*DXDG_PSI4 + DXDG_FAC*DXDG_GXX
+ DXDG_DXDGXY = DXDCG_DXDCGXY*DXDG_PSI4 + DXDG_FAC*DXDG_GXY
+ DXDG_DXDGXZ = DXDCG_D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