diff options
author | evans <evans@b1d164ef-f17a-46e7-89d4-021c7118ef4e> | 1999-03-09 21:04:02 +0000 |
---|---|---|
committer | evans <evans@b1d164ef-f17a-46e7-89d4-021c7118ef4e> | 1999-03-09 21:04:02 +0000 |
commit | 0a13cbb3d0f5ebf208d962d374a197c66bd13b1b (patch) | |
tree | 19582fa856a1193d17170ad971353f58e7be36c9 /src/macro/DZDB_guts.h | |
parent | c58897b8676212b9aee16d6d2f80ca2adeb50c6c (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/DZDB_guts.h')
-rw-r--r-- | src/macro/DZDB_guts.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/macro/DZDB_guts.h b/src/macro/DZDB_guts.h new file mode 100644 index 0000000..757ae1a --- /dev/null +++ b/src/macro/DZDB_guts.h @@ -0,0 +1,39 @@ +/*@@ + @header DZDB_guts.h + @date Jun 98 + @author Gabrielle Allen + @desc + + Macro to calculate the first derivatives of the + shift with respect to z + + The macro is defined in terms of standard variables in + @seefile DZDB_declare.h + @enddesc +@@*/ + +#ifndef DZDB_GUTS +#define DZDB_GUTS + +#ifdef FCODE + + DZDB_OO2DZ = 1D0/(2D0*DZDB_DZ) + + DZDB_DZDBX = DZDB_OO2DZ*(DZDB_BX_KP - DZDB_BX_KM) + DZDB_DZDBY = DZDB_OO2DZ*(DZDB_BY_KP - DZDB_BY_KM) + DZDB_DZDBZ = DZDB_OO2DZ*(DZDB_BZ_KP - DZDB_BZ_KM) + +#endif + +#ifdef CCODE + + DZDB_OO2DZ = 1/(2*GH->dz0); + + DZDB_DZDBX = DZDB_OO2DZ*(DZDB_BX_KP - DZDB_BX_KM); + DZDB_DZDBY = DZDB_OO2DZ*(DZDB_BY_KP - DZDB_BY_KM); + DZDB_DZDBZ = DZDB_OO2DZ*(DZDB_BZ_KP - DZDB_BZ_KM); + +#endif + +#endif + |