aboutsummaryrefslogtreecommitdiff
path: root/src/macro/NABA_guts.h
blob: ad446384b3dcb636c77a60b091ace22455da88f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*@@
  @header   NABA_guts.h
  @date     Jul 98
  @author   Gabrielle Allen
  @desc
  Macro to calculate the nabla operator acting on the lapse

  That is alpha_i^i

  @enddesc
@@*/

#ifndef NABA_GUTS
#define NABA_GUTS

#include "../../packages/CactusEinstein/Einstein/src/macro/UPPERMET_guts.h"
#include "../../packages/CactusEinstein/Einstein/src/macro/CDCDA_guts.h"

#ifdef FCODE 

      NABA_NABA = UPPERMET_UXX*CDCDA_CDXXDA+UPPERMET_UYY*CDCDA_CDYYDA
     & +UPPERMET_UZZ*CDCDA_CDZZDA+2*(UPPERMET_UXY*CDCDA_CDXYDA+UPPERMET_UXZ*CDCDA_CDXZDA
     & +UPPERMET_UYZ*CDCDA_CDYZDA)

#endif

#ifdef CCODE

      NABA_NABA = UPPERMET_UXX*CDCDA_CDXXDA+UPPERMET_UYY*CDCDA_CDYYDA
      +UPPERMET_UZZ*CDCDA_CDZZDA+2*(UPPERMET_UXY*CDCDA_CDXYDA+UPPERMET_UXZ*CDCDA_CDXZDA
      +UPPERMET_UYZ*CDCDA_CDYZDA);

#endif

#endif