aboutsummaryrefslogtreecommitdiff
path: root/ML_BSSN
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-03-18 20:28:16 -0700
committerErik Schnetter <schnetter@cct.lsu.edu>2010-03-18 20:28:16 -0700
commitcb546d85228985472ddc13d1633d4f0eb689f872 (patch)
tree33db751f5f14ea2c3b7bfb8248762d73fa4db0c4 /ML_BSSN
parent33479637cddfa24c0150cb691ee0bc1695f42866 (diff)
Use Ian's version of Kranc, which is found at
<git@github.com:ianhinder/Kranc.git>.
Diffstat (limited to 'ML_BSSN')
-rw-r--r--ML_BSSN/param.ccl12
-rw-r--r--ML_BSSN/schedule.ccl5
-rw-r--r--ML_BSSN/src/ML_BSSN_Minkowski.c89
-rw-r--r--ML_BSSN/src/ML_BSSN_RHS.c1633
-rw-r--r--ML_BSSN/src/ML_BSSN_RHS1.c539
-rw-r--r--ML_BSSN/src/ML_BSSN_RHS2.c844
-rw-r--r--ML_BSSN/src/ML_BSSN_RHSRadiativeBoundary.c240
-rw-r--r--ML_BSSN/src/ML_BSSN_RHSStaticBoundary.c89
-rw-r--r--ML_BSSN/src/ML_BSSN_boundary.c89
-rw-r--r--ML_BSSN/src/ML_BSSN_constraints.c1245
-rw-r--r--ML_BSSN/src/ML_BSSN_constraints_boundary.c53
-rw-r--r--ML_BSSN/src/ML_BSSN_convertFromADMBase.c157
-rw-r--r--ML_BSSN/src/ML_BSSN_convertFromADMBaseGamma.c249
-rw-r--r--ML_BSSN/src/ML_BSSN_convertToADMBase.c129
-rw-r--r--ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShift.c86
-rw-r--r--ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c59
-rw-r--r--ML_BSSN/src/ML_BSSN_convertToADMBaseFakeDtLapseShift.c59
-rw-r--r--ML_BSSN/src/ML_BSSN_enforce.c108
-rw-r--r--ML_BSSN/src/ML_BSSN_enforce2.c164
-rw-r--r--ML_BSSN/src/make.code.defn2
20 files changed, 2788 insertions, 3063 deletions
diff --git a/ML_BSSN/param.ccl b/ML_BSSN/param.ccl
index d13eea4..f628d53 100644
--- a/ML_BSSN/param.ccl
+++ b/ML_BSSN/param.ccl
@@ -243,12 +243,6 @@ CCTK_INT ML_BSSN_enforce_calc_every "ML_BSSN_enforce_calc_every"
} 1
restricted:
-CCTK_INT ML_BSSN_enforce2_calc_every "ML_BSSN_enforce2_calc_every"
-{
- *:* :: ""
-} 1
-
-restricted:
CCTK_INT ML_BSSN_boundary_calc_every "ML_BSSN_boundary_calc_every"
{
*:* :: ""
@@ -345,12 +339,6 @@ CCTK_INT ML_BSSN_enforce_calc_offset "ML_BSSN_enforce_calc_offset"
} 0
restricted:
-CCTK_INT ML_BSSN_enforce2_calc_offset "ML_BSSN_enforce2_calc_offset"
-{
- *:* :: ""
-} 0
-
-restricted:
CCTK_INT ML_BSSN_boundary_calc_offset "ML_BSSN_boundary_calc_offset"
{
*:* :: ""
diff --git a/ML_BSSN/schedule.ccl b/ML_BSSN/schedule.ccl
index f7a8179..7b52f97 100644
--- a/ML_BSSN/schedule.ccl
+++ b/ML_BSSN/schedule.ccl
@@ -403,11 +403,6 @@ schedule ML_BSSN_enforce IN MoL_PostStep BEFORE ML_BSSN_SelectBoundConds
LANG: C
} "ML_BSSN_enforce"
-schedule ML_BSSN_enforce2 IN MoL_PostStep AFTER ML_BSSN_enforce BEFORE ML_BSSN_SelectBoundConds
-{
- LANG: C
-} "ML_BSSN_enforce2"
-
if (CCTK_EQUALS(my_boundary_condition, "Minkowski"))
{
diff --git a/ML_BSSN/src/ML_BSSN_Minkowski.c b/ML_BSSN/src/ML_BSSN_Minkowski.c
index 29622aa..a1fc136 100644
--- a/ML_BSSN/src/ML_BSSN_Minkowski.c
+++ b/ML_BSSN/src/ML_BSSN_Minkowski.c
@@ -28,20 +28,6 @@ void ML_BSSN_Minkowski_Body(cGH const * restrict const cctkGH, int const dir, in
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_Minkowski_Body");
@@ -94,86 +80,65 @@ void ML_BSSN_Minkowski_Body(cGH const * restrict const cctkGH, int const dir, in
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At12L = INITVALUE, At13L = INITVALUE, At22L = INITVALUE, At23L = INITVALUE, At33L = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B2L = INITVALUE, B3L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL phiL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt2L = INITVALUE, Xt3L = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- /* Assign local copies of subblock grid functions */
-
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const phiL = IfThen(conformalMethod,1,0);
+ CCTK_REAL phiL = IfThen(conformalMethod,1,0);
- CCTK_REAL const gt11L = 1;
+ CCTK_REAL gt11L = 1;
- CCTK_REAL const gt12L = 0;
+ CCTK_REAL gt12L = 0;
- CCTK_REAL const gt13L = 0;
+ CCTK_REAL gt13L = 0;
- CCTK_REAL const gt22L = 1;
+ CCTK_REAL gt22L = 1;
- CCTK_REAL const gt23L = 0;
+ CCTK_REAL gt23L = 0;
- CCTK_REAL const gt33L = 1;
+ CCTK_REAL gt33L = 1;
- CCTK_REAL const trKL = 0;
+ CCTK_REAL trKL = 0;
- CCTK_REAL const At11L = 0;
+ CCTK_REAL At11L = 0;
- CCTK_REAL const At12L = 0;
+ CCTK_REAL At12L = 0;
- CCTK_REAL const At13L = 0;
+ CCTK_REAL At13L = 0;
- CCTK_REAL const At22L = 0;
+ CCTK_REAL At22L = 0;
- CCTK_REAL const At23L = 0;
+ CCTK_REAL At23L = 0;
- CCTK_REAL const At33L = 0;
+ CCTK_REAL At33L = 0;
- CCTK_REAL const Xt1L = 0;
+ CCTK_REAL Xt1L = 0;
- CCTK_REAL const Xt2L = 0;
+ CCTK_REAL Xt2L = 0;
- CCTK_REAL const Xt3L = 0;
+ CCTK_REAL Xt3L = 0;
- CCTK_REAL const alphaL = 1;
+ CCTK_REAL alphaL = 1;
- CCTK_REAL const AL = 0;
+ CCTK_REAL AL = 0;
- CCTK_REAL const beta1L = 0;
+ CCTK_REAL beta1L = 0;
- CCTK_REAL const beta2L = 0;
+ CCTK_REAL beta2L = 0;
- CCTK_REAL const beta3L = 0;
+ CCTK_REAL beta3L = 0;
- CCTK_REAL const B1L = 0;
+ CCTK_REAL B1L = 0;
- CCTK_REAL const B2L = 0;
+ CCTK_REAL B2L = 0;
- CCTK_REAL const B3L = 0;
+ CCTK_REAL B3L = 0;
/* Copy local copies back to grid functions */
@@ -202,8 +167,6 @@ void ML_BSSN_Minkowski_Body(cGH const * restrict const cctkGH, int const dir, in
Xt1[index] = Xt1L;
Xt2[index] = Xt2L;
Xt3[index] = Xt3L;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_Minkowski);
}
diff --git a/ML_BSSN/src/ML_BSSN_RHS.c b/ML_BSSN/src/ML_BSSN_RHS.c
index 70d492b..4c51665 100644
--- a/ML_BSSN/src/ML_BSSN_RHS.c
+++ b/ML_BSSN/src/ML_BSSN_RHS.c
@@ -28,20 +28,6 @@ void ML_BSSN_RHS_Body(cGH const * restrict const cctkGH, int const dir, int cons
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_RHS_Body");
@@ -94,75 +80,7 @@ void ML_BSSN_RHS_Body(cGH const * restrict const cctkGH, int const dir, int cons
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL Atm11 = INITVALUE, Atm12 = INITVALUE, Atm13 = INITVALUE, Atm21 = INITVALUE, Atm22 = INITVALUE, Atm23 = INITVALUE;
- // CCTK_REAL Atm31 = INITVALUE, Atm32 = INITVALUE, Atm33 = INITVALUE;
- // CCTK_REAL Ats11 = INITVALUE, Ats12 = INITVALUE, Ats13 = INITVALUE, Ats22 = INITVALUE, Ats23 = INITVALUE, Ats33 = INITVALUE;
- // CCTK_REAL Atu11 = INITVALUE, Atu21 = INITVALUE, Atu22 = INITVALUE, Atu31 = INITVALUE, Atu32 = INITVALUE, Atu33 = INITVALUE;
- // CCTK_REAL cdphi1 = INITVALUE, cdphi2 = INITVALUE, cdphi211 = INITVALUE, cdphi212 = INITVALUE, cdphi213 = INITVALUE, cdphi222 = INITVALUE;
- // CCTK_REAL cdphi223 = INITVALUE, cdphi233 = INITVALUE, cdphi3 = INITVALUE;
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL dir1 = INITVALUE, dir2 = INITVALUE, dir3 = INITVALUE;
- // CCTK_REAL e4phi = INITVALUE;
- // CCTK_REAL em4phi = INITVALUE;
- // CCTK_REAL eta = INITVALUE;
- // CCTK_REAL fac1 = INITVALUE, fac2 = INITVALUE;
- // CCTK_REAL g11 = INITVALUE;
- // CCTK_REAL G111 = INITVALUE, G112 = INITVALUE, G113 = INITVALUE;
- // CCTK_REAL g12 = INITVALUE;
- // CCTK_REAL G122 = INITVALUE, G123 = INITVALUE;
- // CCTK_REAL g13 = INITVALUE;
- // CCTK_REAL G133 = INITVALUE, G211 = INITVALUE, G212 = INITVALUE, G213 = INITVALUE;
- // CCTK_REAL g22 = INITVALUE;
- // CCTK_REAL G222 = INITVALUE, G223 = INITVALUE;
- // CCTK_REAL g23 = INITVALUE;
- // CCTK_REAL G233 = INITVALUE, G311 = INITVALUE, G312 = INITVALUE, G313 = INITVALUE, G322 = INITVALUE, G323 = INITVALUE;
- // CCTK_REAL g33 = INITVALUE;
- // CCTK_REAL G333 = INITVALUE;
- // CCTK_REAL Gt111 = INITVALUE, Gt112 = INITVALUE, Gt113 = INITVALUE, Gt122 = INITVALUE, Gt123 = INITVALUE, Gt133 = INITVALUE;
- // CCTK_REAL Gt211 = INITVALUE, Gt212 = INITVALUE, Gt213 = INITVALUE, Gt222 = INITVALUE, Gt223 = INITVALUE, Gt233 = INITVALUE;
- // CCTK_REAL Gt311 = INITVALUE, Gt312 = INITVALUE, Gt313 = INITVALUE, Gt322 = INITVALUE, Gt323 = INITVALUE, Gt333 = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
- // CCTK_REAL gu11 = INITVALUE, gu21 = INITVALUE, gu22 = INITVALUE, gu31 = INITVALUE, gu32 = INITVALUE, gu33 = INITVALUE;
- // CCTK_REAL R11 = INITVALUE, R12 = INITVALUE, R13 = INITVALUE, R22 = INITVALUE, R23 = INITVALUE, R33 = INITVALUE;
- // CCTK_REAL rho = INITVALUE;
- // CCTK_REAL Rphi11 = INITVALUE, Rphi12 = INITVALUE, Rphi13 = INITVALUE, Rphi22 = INITVALUE, Rphi23 = INITVALUE, Rphi33 = INITVALUE;
- // CCTK_REAL Rt11 = INITVALUE, Rt12 = INITVALUE, Rt13 = INITVALUE, Rt22 = INITVALUE, Rt23 = INITVALUE, Rt33 = INITVALUE;
- // CCTK_REAL S1 = INITVALUE, S2 = INITVALUE, S3 = INITVALUE;
- // CCTK_REAL trAts = INITVALUE;
- // CCTK_REAL trS = INITVALUE;
- // CCTK_REAL Xtn1 = INITVALUE, Xtn2 = INITVALUE, Xtn3 = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE, alpharhsL = INITVALUE;
- // CCTK_REAL ArhsL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At11rhsL = INITVALUE, At12L = INITVALUE, At12rhsL = INITVALUE, At13L = INITVALUE, At13rhsL = INITVALUE;
- // CCTK_REAL At22L = INITVALUE, At22rhsL = INITVALUE, At23L = INITVALUE, At23rhsL = INITVALUE, At33L = INITVALUE, At33rhsL = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B1rhsL = INITVALUE, B2L = INITVALUE, B2rhsL = INITVALUE, B3L = INITVALUE, B3rhsL = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta1rhsL = INITVALUE, beta2L = INITVALUE, beta2rhsL = INITVALUE, beta3L = INITVALUE, beta3rhsL = INITVALUE;
- // CCTK_REAL eTttL = INITVALUE;
- // CCTK_REAL eTtxL = INITVALUE;
- // CCTK_REAL eTtyL = INITVALUE;
- // CCTK_REAL eTtzL = INITVALUE;
- // CCTK_REAL eTxxL = INITVALUE;
- // CCTK_REAL eTxyL = INITVALUE;
- // CCTK_REAL eTxzL = INITVALUE;
- // CCTK_REAL eTyyL = INITVALUE;
- // CCTK_REAL eTyzL = INITVALUE;
- // CCTK_REAL eTzzL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt11rhsL = INITVALUE, gt12L = INITVALUE, gt12rhsL = INITVALUE, gt13L = INITVALUE, gt13rhsL = INITVALUE;
- // CCTK_REAL gt22L = INITVALUE, gt22rhsL = INITVALUE, gt23L = INITVALUE, gt23rhsL = INITVALUE, gt33L = INITVALUE, gt33rhsL = INITVALUE;
- // CCTK_REAL phiL = INITVALUE, phirhsL = INITVALUE;
- // CCTK_REAL rL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE, trKrhsL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt1rhsL = INITVALUE, Xt2L = INITVALUE, Xt2rhsL = INITVALUE, Xt3L = INITVALUE, Xt3rhsL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
// CCTK_REAL PDstandardNth1alpha = INITVALUE;
// CCTK_REAL PDstandardNth2alpha = INITVALUE;
@@ -277,48 +195,50 @@ void ML_BSSN_RHS_Body(cGH const * restrict const cctkGH, int const dir, int cons
// CCTK_REAL PDstandardNth3Xt3 = INITVALUE;
/* Assign local copies of grid functions */
- CCTK_REAL const AL = A[index];
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const B1L = B1[index];
- CCTK_REAL const B2L = B2[index];
- CCTK_REAL const B3L = B3[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const eTttL = (*stress_energy_state) ? (eTtt[index]) : 0.0;
- CCTK_REAL const eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
- CCTK_REAL const eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
- CCTK_REAL const eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
- CCTK_REAL const eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
- CCTK_REAL const eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
- CCTK_REAL const eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
- CCTK_REAL const eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
- CCTK_REAL const eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
- CCTK_REAL const eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
- CCTK_REAL const phiL = phi[index];
- CCTK_REAL const rL = r[index];
- CCTK_REAL const trKL = trK[index];
- CCTK_REAL const Xt1L = Xt1[index];
- CCTK_REAL const Xt2L = Xt2[index];
- CCTK_REAL const Xt3L = Xt3[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL AL = A[index];
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL B1L = B1[index];
+ CCTK_REAL B2L = B2[index];
+ CCTK_REAL B3L = B3[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL eTttL = (*stress_energy_state) ? (eTtt[index]) : 0.0;
+ CCTK_REAL eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
+ CCTK_REAL eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
+ CCTK_REAL eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
+ CCTK_REAL eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
+ CCTK_REAL eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
+ CCTK_REAL eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
+ CCTK_REAL eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
+ CCTK_REAL eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
+ CCTK_REAL eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL rL = r[index];
+ CCTK_REAL trKL = trK[index];
+ CCTK_REAL trKrhsL = trKrhs[index];
+ CCTK_REAL Xt1L = Xt1[index];
+ CCTK_REAL Xt1rhsL = Xt1rhs[index];
+ CCTK_REAL Xt2L = Xt2[index];
+ CCTK_REAL Xt2rhsL = Xt2rhs[index];
+ CCTK_REAL Xt3L = Xt3[index];
+ CCTK_REAL Xt3rhsL = Xt3rhs[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
+ /* Precompute derivatives */
CCTK_REAL const PDstandardNth1alpha = PDstandardNth1(alpha, i, j, k);
CCTK_REAL const PDstandardNth2alpha = PDstandardNth2(alpha, i, j, k);
CCTK_REAL const PDstandardNth3alpha = PDstandardNth3(alpha, i, j, k);
@@ -431,686 +351,945 @@ void ML_BSSN_RHS_Body(cGH const * restrict const cctkGH, int const dir, int cons
CCTK_REAL const PDstandardNth2Xt3 = PDstandardNth2(Xt3, i, j, k);
CCTK_REAL const PDstandardNth3Xt3 = PDstandardNth3(Xt3, i, j, k);
- /* Precompute derivatives (old style) */
-
/* Calculate temporaries and grid functions */
- int const dir1 = Sign(beta1L);
-
- int const dir2 = Sign(beta2L);
-
- int const dir3 = Sign(beta3L);
-
- CCTK_REAL const detgt = 1;
-
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
-
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
-
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
-
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
+ int dir1 = Sign(beta1L);
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
+ int dir2 = Sign(beta2L);
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
+ int dir3 = Sign(beta3L);
- CCTK_REAL const Gt111 = khalf*(gtu11*PDstandardNth1gt11 + 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
- gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
+ CCTK_REAL detgt = 1;
- CCTK_REAL const Gt211 = khalf*(gtu21*PDstandardNth1gt11 + 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
- gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
- CCTK_REAL const Gt311 = khalf*(gtu31*PDstandardNth1gt11 + 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
- gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
- CCTK_REAL const Gt112 = khalf*(gtu21*PDstandardNth1gt22 + gtu11*PDstandardNth2gt11 +
- gtu31*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
-
- CCTK_REAL const Gt212 = khalf*(gtu22*PDstandardNth1gt22 + gtu21*PDstandardNth2gt11 +
- gtu32*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
-
- CCTK_REAL const Gt312 = khalf*(gtu32*PDstandardNth1gt22 + gtu31*PDstandardNth2gt11 +
- gtu33*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
-
- CCTK_REAL const Gt113 = khalf*(gtu31*PDstandardNth1gt33 + gtu11*PDstandardNth3gt11 +
- gtu21*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
-
- CCTK_REAL const Gt213 = khalf*(gtu32*PDstandardNth1gt33 + gtu21*PDstandardNth3gt11 +
- gtu22*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
-
- CCTK_REAL const Gt313 = khalf*(gtu33*PDstandardNth1gt33 + gtu31*PDstandardNth3gt11 +
- gtu32*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
-
- CCTK_REAL const Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
- gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
-
- CCTK_REAL const Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
- gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
-
- CCTK_REAL const Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
- gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
-
- CCTK_REAL const Gt123 = khalf*(gtu31*PDstandardNth2gt33 + gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu21*PDstandardNth3gt22);
-
- CCTK_REAL const Gt223 = khalf*(gtu32*PDstandardNth2gt33 + gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu22*PDstandardNth3gt22);
-
- CCTK_REAL const Gt323 = khalf*(gtu33*PDstandardNth2gt33 + gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu32*PDstandardNth3gt22);
-
- CCTK_REAL const Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) - gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
- 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
-
- CCTK_REAL const Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) - gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
- 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
-
- CCTK_REAL const Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) - gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
- 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
-
- CCTK_REAL const Xtn1 = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 + Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
-
- CCTK_REAL const Xtn2 = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 + Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
-
- CCTK_REAL const Xtn3 = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 + Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
-
- CCTK_REAL const Rt11 = -(gtu11*khalf*PDstandardNth11gt11) + gtu21*
- (2*Gt211*Gt212*gt22L + 4*Gt112*gt13L*Gt311 + 2*Gt113*gt11L*Gt312 + 2*gt13L*Gt312*Gt313 + 2*gt13L*Gt211*Gt322 +
- 2*gt13L*Gt311*Gt323 + 2*Gt311*Gt312*gt33L - PDstandardNth12gt11) - gtu31*PDstandardNth13gt11 +
- gt11L*PDstandardNth1Xt1 + gt12L*(4*Gt111*Gt212*gtu21 + 2*Gt211*Gt222*gtu21 + 2*Gt212*Gt222*gtu22 +
- 4*Gt113*Gt211*gtu31 + 4*Gt113*Gt212*gtu32 + 4*Gt113*Gt213*gtu33 + PDstandardNth1Xt2) +
- gt13L*(4*Gt111*Gt312*gtu21 + 2*Gt212*Gt312*gtu21 + 4*Gt112*Gt312*gtu22 + 4*Gt113*Gt311*gtu31 +
- 4*Gt113*Gt312*gtu32 + 4*Gt113*Gt313*gtu33 + PDstandardNth1Xt3) - gtu22*khalf*PDstandardNth22gt11 -
- gtu32*PDstandardNth23gt11 - gtu33*khalf*PDstandardNth33gt11 +
- Gt111*(6*Gt113*gt11L*gtu31 + 4*gt12L*Gt213*gtu31 + gt11L*Xtn1) +
- Gt211*(2*Gt112*gt11L*gtu11 + 4*Gt111*gt12L*gtu11 + 2*gt11L*Gt122*gtu21 + 2*gt11L*Gt123*gtu31 + gt12L*Xtn1) +
- Gt311*(4*Gt111*gt13L*gtu11 + 2*gt12L*Gt213*gtu11 + 2*gt13L*Gt313*gtu11 + 2*gt11L*Gt123*gtu21 +
- 2*gt11L*Gt133*gtu31 + gt13L*Xtn1) + gt12L*Gt212*Xtn2 + gt13L*Gt312*Xtn2 +
- Gt112*(6*Gt111*gt11L*gtu21 + 4*gt12L*Gt211*gtu21 + 4*gt12L*Gt212*gtu22 + 2*gt11L*Gt213*gtu31 +
- 6*Gt113*gt11L*gtu32 + gt11L*Xtn2) + Gt113*gt11L*Xtn3 +
- Gt213*(2*gt11L*Gt122*gtu32 + 4*Gt112*gt12L*gtu32 + 2*gt11L*Gt123*gtu33 + gt12L*Xtn3) +
- Gt313*(4*Gt111*gt13L*gtu31 + 2*gt12L*Gt213*gtu31 + 2*gt11L*Gt123*gtu32 + 4*Gt112*gt13L*gtu32 +
- 2*gt12L*Gt223*gtu32 + 2*gt11L*Gt133*gtu33 + gt13L*Xtn3) + 3*gt11L*gtu11*SQR(Gt111) + 3*gt11L*gtu22*SQR(Gt112) +
- 3*gt11L*gtu33*SQR(Gt113) + gt22L*gtu11*SQR(Gt211) + gt22L*gtu22*SQR(Gt212) +
- 2*(gt12L*Gt211*Gt212*gtu11 + Gt113*gt11L*Gt311*gtu11 + Gt211*gt23L*Gt311*gtu11 + gt13L*Gt211*Gt312*gtu11 +
- Gt112*gt11L*Gt212*gtu21 + gt12L*Gt223*Gt311*gtu21 + Gt212*gt23L*Gt311*gtu21 + gt12L*Gt213*Gt312*gtu21 +
- Gt211*gt23L*Gt312*gtu21 + gt11L*Gt122*Gt212*gtu22 + gt11L*Gt123*Gt312*gtu22 + gt12L*Gt223*Gt312*gtu22 +
- Gt212*gt23L*Gt312*gtu22 + gt13L*Gt212*Gt322*gtu22 + gt13L*Gt312*Gt323*gtu22 + gt12L*Gt212*Gt213*gtu31 +
- gt12L*Gt211*Gt223*gtu31 + Gt211*Gt213*gt22L*gtu31 + gt12L*Gt233*Gt311*gtu31 + Gt213*gt23L*Gt311*gtu31 +
- gt13L*Gt213*Gt312*gtu31 + Gt113*gt11L*Gt313*gtu31 + Gt211*gt23L*Gt313*gtu31 + gt13L*Gt211*Gt323*gtu31 +
- gt13L*Gt311*Gt333*gtu31 + Gt311*Gt313*gt33L*gtu31 + gt11L*Gt123*Gt212*gtu32 + gt12L*Gt213*Gt222*gtu32 +
- gt12L*Gt212*Gt223*gtu32 + Gt212*Gt213*gt22L*gtu32 + gt11L*Gt133*Gt312*gtu32 + gt12L*Gt233*Gt312*gtu32 +
- Gt213*gt23L*Gt312*gtu32 + Gt212*gt23L*Gt313*gtu32 + gt13L*Gt213*Gt322*gtu32 + gt13L*Gt212*Gt323*gtu32 +
- gt13L*Gt313*Gt323*gtu32 + gt13L*Gt312*Gt333*gtu32 + Gt312*Gt313*gt33L*gtu32 + gt12L*Gt213*Gt223*gtu33 +
- gt12L*Gt233*Gt313*gtu33 + Gt213*gt23L*Gt313*gtu33 + gt13L*Gt213*Gt323*gtu33 + gt13L*Gt313*Gt333*gtu33 +
- gt12L*gtu21*SQR(Gt212)) + gt22L*gtu33*SQR(Gt213) + gt33L*gtu11*SQR(Gt311) + gt33L*gtu22*SQR(Gt312) +
- 2*gt13L*gtu31*SQR(Gt313) + gt33L*gtu33*SQR(Gt313);
-
- CCTK_REAL const Rt12 = khalf*(-(gtu11*PDstandardNth11gt12) - 2*gtu21*PDstandardNth12gt12 - 2*gtu31*PDstandardNth13gt12 +
- gt12L*PDstandardNth1Xt1 + gt22L*PDstandardNth1Xt2 + gt23L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt12 -
- 2*gtu32*PDstandardNth23gt12 + gt11L*PDstandardNth2Xt1 + gt12L*PDstandardNth2Xt2 + gt13L*PDstandardNth2Xt3 -
- gtu33*PDstandardNth33gt12 + (Gt111*gt12L + Gt211*gt22L + gt23L*Gt311)*Xtn1 +
- (Gt112*gt11L + gt12L*Gt212 + gt13L*Gt312)*Xtn1 + (Gt112*gt12L + Gt212*gt22L + gt23L*Gt312)*Xtn2 +
- (gt11L*Gt122 + gt12L*Gt222 + gt13L*Gt322)*Xtn2 + (Gt113*gt12L + Gt213*gt22L + gt23L*Gt313)*Xtn3 +
- (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xtn3 +
- 2*gtu21*(Gt112*gt11L*Gt222 + Gt112*Gt211*gt22L + Gt211*Gt222*gt22L + 2*Gt122*gt13L*Gt311 + Gt112*gt23L*Gt311 +
- Gt222*gt23L*Gt311 + gt13L*Gt222*Gt312 + Gt213*gt22L*Gt312 + Gt212*gt23L*Gt312 + gt23L*Gt312*Gt313 +
- Gt113*gt11L*Gt322 + Gt211*gt23L*Gt322 + gt13L*Gt313*Gt322 +
- Gt111*(2*gt11L*Gt122 + Gt112*gt12L + gt12L*Gt222 + gt13L*Gt322) +
- gt12L*(2*Gt122*Gt211 + Gt112*Gt212 + Gt212*Gt222 + Gt113*Gt312 + Gt213*Gt322) + Gt311*Gt322*gt33L +
- gt22L*SQR(Gt212)) + 2*((Gt123*gt12L*Gt211 + Gt113*gt12L*Gt212 + 2*Gt112*gt12L*Gt213 + gt12L*Gt212*Gt223 +
- Gt212*Gt213*gt22L + Gt211*Gt223*gt22L + gt12L*Gt133*Gt311 + gt22L*Gt233*Gt311 + Gt113*gt13L*Gt312 +
- gt12L*Gt233*Gt312 + Gt213*gt23L*Gt312 + gt11L*(2*Gt112*Gt113 + Gt123*Gt212 + Gt133*Gt312) +
- 2*Gt112*gt13L*Gt313 + Gt212*gt23L*Gt313 + Gt111*(Gt113*gt12L + Gt213*gt22L + gt23L*Gt313) +
- gt13L*Gt212*Gt323 + Gt211*gt23L*Gt323 + gt23L*Gt311*Gt333 + gt13L*Gt312*Gt333 + Gt312*Gt313*gt33L)*gtu31 +
- (Gt123*gt12L*Gt212 + 2*Gt122*gt12L*Gt213 + Gt113*gt12L*Gt222 + gt12L*Gt222*Gt223 + Gt213*Gt222*gt22L +
- Gt212*Gt223*gt22L + gt12L*Gt133*Gt312 + gt22L*Gt233*Gt312 + 2*Gt122*gt13L*Gt313 + Gt222*gt23L*Gt313 +
- Gt112*(Gt113*gt12L + Gt213*gt22L + gt23L*Gt313) + Gt113*gt13L*Gt322 + gt12L*Gt233*Gt322 +
- Gt213*gt23L*Gt322 + gt11L*(2*Gt113*Gt122 + Gt123*Gt222 + Gt133*Gt322) + gt13L*Gt222*Gt323 +
- Gt212*gt23L*Gt323 + gt23L*Gt312*Gt333 + gt13L*Gt322*Gt333 + Gt313*Gt322*gt33L)*gtu32 +
- gtu11*(3*Gt112*gt12L*Gt211 + 2*Gt211*Gt212*gt22L + Gt113*gt12L*Gt311 + 2*Gt112*gt13L*Gt311 +
- Gt213*gt22L*Gt311 + Gt212*gt23L*Gt311 + gt13L*Gt212*Gt312 + gt12L*Gt213*Gt312 + 2*Gt211*gt23L*Gt312 +
- gt11L*(2*Gt111*Gt112 + Gt112*Gt212 + Gt113*Gt312) +
- Gt111*(gt12L*Gt212 + Gt211*gt22L + gt23L*Gt311 + gt13L*Gt312) + gt23L*Gt311*Gt313 + gt13L*Gt312*Gt313 +
- Gt311*Gt312*gt33L + gt12L*SQR(Gt111) + gt12L*SQR(Gt212))) +
- 2*gtu22*(gt11L*Gt122*Gt222 + 2*Gt212*Gt222*gt22L + 2*Gt122*gt13L*Gt312 + Gt223*gt22L*Gt312 + Gt222*gt23L*Gt312 +
- gt11L*Gt123*Gt322 + gt13L*Gt222*Gt322 + 2*Gt212*gt23L*Gt322 +
- Gt112*(2*gt11L*Gt122 + gt12L*Gt222 + Gt212*gt22L + gt23L*Gt312 + gt13L*Gt322) + gt23L*Gt312*Gt323 +
- gt13L*Gt322*Gt323 + Gt312*Gt322*gt33L + gt12L*SQR(Gt112) +
- gt12L*(3*Gt122*Gt212 + Gt123*Gt312 + Gt223*Gt322 + SQR(Gt222))) +
- 2*gtu33*(gt11L*Gt123*Gt223 + 2*Gt213*Gt223*gt22L + 2*Gt123*gt13L*Gt313 + gt22L*Gt233*Gt313 + Gt223*gt23L*Gt313 +
- gt11L*Gt133*Gt323 + gt13L*Gt223*Gt323 + 2*Gt213*gt23L*Gt323 +
- Gt113*(2*gt11L*Gt123 + gt12L*Gt223 + Gt213*gt22L + gt23L*Gt313 + gt13L*Gt323) + gt23L*Gt313*Gt333 +
- gt13L*Gt323*Gt333 + Gt313*Gt323*gt33L + gt12L*SQR(Gt113) +
- gt12L*(3*Gt123*Gt213 + Gt133*Gt313 + Gt233*Gt323 + SQR(Gt223))) +
- 2*gtu21*(Gt122*gt12L*Gt211 + 3*Gt112*gt12L*Gt212 + gt12L*Gt212*Gt222 + Gt211*Gt222*gt22L + Gt123*gt12L*Gt311 +
- Gt223*gt22L*Gt311 + 3*Gt112*gt13L*Gt312 + gt12L*Gt223*Gt312 + 2*Gt212*gt23L*Gt312 +
- Gt111*(Gt112*gt12L + Gt212*gt22L + gt23L*Gt312) + gt13L*Gt212*Gt322 + Gt211*gt23L*Gt322 + gt23L*Gt311*Gt323 +
- gt13L*Gt312*Gt323 + gt11L*(Gt122*Gt212 + Gt123*Gt312 + 2*SQR(Gt112)) + gt22L*SQR(Gt212) + gt33L*SQR(Gt312)) +
- 2*gtu31*(Gt112*gt11L*Gt223 + Gt113*Gt211*gt22L + Gt212*Gt213*gt22L + Gt211*Gt223*gt22L + 2*Gt123*gt13L*Gt311 +
- Gt113*gt23L*Gt311 + Gt223*gt23L*Gt311 + gt13L*Gt223*Gt312 + Gt213*gt23L*Gt312 + Gt213*gt22L*Gt313 +
- Gt113*gt11L*Gt323 + Gt211*gt23L*Gt323 + gt13L*Gt313*Gt323 +
- Gt111*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 + gt13L*Gt323) +
- gt12L*(2*Gt123*Gt211 + Gt112*Gt213 + Gt212*Gt223 + Gt113*Gt313 + Gt213*Gt323) + Gt311*Gt323*gt33L +
- gt23L*SQR(Gt313)) + 2*gtu32*(gt11L*Gt122*Gt223 + Gt113*Gt212*gt22L + Gt213*Gt222*gt22L + Gt212*Gt223*gt22L +
- 2*Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 + Gt223*gt23L*Gt312 + Gt223*gt22L*Gt313 + gt13L*Gt223*Gt322 +
- Gt213*gt23L*Gt322 + gt11L*Gt123*Gt323 + Gt212*gt23L*Gt323 + gt23L*Gt313*Gt323 +
- Gt112*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 + gt13L*Gt323) +
- gt12L*(Gt122*Gt213 + Gt123*(2*Gt212 + Gt313) + Gt223*(Gt222 + Gt323)) + Gt312*Gt323*gt33L + gt13L*SQR(Gt323)));
-
- CCTK_REAL const Rt13 = khalf*(-(gtu11*PDstandardNth11gt13) - 2*gtu21*PDstandardNth12gt13 - 2*gtu31*PDstandardNth13gt13 +
- gt13L*PDstandardNth1Xt1 + gt23L*PDstandardNth1Xt2 + gt33L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt13 -
- 2*gtu32*PDstandardNth23gt13 - gtu33*PDstandardNth33gt13 + gt11L*PDstandardNth3Xt1 + gt12L*PDstandardNth3Xt2 +
- gt13L*PDstandardNth3Xt3 + (Gt113*gt11L + gt12L*Gt213 + gt13L*Gt313)*Xtn1 +
- (Gt111*gt13L + Gt211*gt23L + Gt311*gt33L)*Xtn1 + (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xtn2 +
- (Gt112*gt13L + Gt212*gt23L + Gt312*gt33L)*Xtn2 + (gt11L*Gt133 + gt12L*Gt233 + gt13L*Gt333)*Xtn3 +
- (Gt113*gt13L + Gt213*gt23L + Gt313*gt33L)*Xtn3 +
- 2*((Gt122*gt13L*Gt211 + 2*Gt113*gt12L*Gt212 + Gt112*gt12L*Gt213 + gt12L*Gt213*Gt222 + Gt212*Gt213*gt22L +
- Gt211*Gt222*gt23L + Gt123*gt13L*Gt311 + Gt223*gt23L*Gt311 + 2*Gt113*gt13L*Gt312 + Gt213*gt23L*Gt312 +
- Gt112*gt13L*Gt313 + gt12L*Gt223*Gt313 + Gt212*gt23L*Gt313 +
- gt11L*(2*Gt112*Gt113 + Gt122*Gt213 + Gt123*Gt313) + gt13L*Gt213*Gt322 + gt13L*Gt313*Gt323 +
- Gt312*Gt313*gt33L + Gt211*Gt322*gt33L + Gt311*Gt323*gt33L + Gt111*(Gt112*gt13L + Gt212*gt23L + Gt312*gt33L))
- *gtu21 + (Gt122*gt13L*Gt213 + gt11L*Gt122*Gt233 + Gt212*gt22L*Gt233 + Gt113*Gt212*gt23L +
- Gt213*Gt222*gt23L + 2*Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + Gt123*gt13L*Gt313 + Gt223*gt23L*Gt313 +
- gt13L*Gt233*Gt322 + gt11L*Gt123*Gt333 + Gt212*gt23L*Gt333 + gt13L*Gt323*Gt333 +
- Gt112*(2*gt11L*Gt133 + Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) +
- gt12L*(2*Gt133*Gt212 + Gt222*Gt233 + Gt223*Gt333) + Gt113*Gt312*gt33L + Gt213*Gt322*gt33L +
- Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu32 +
- gtu21*(2*Gt123*gt12L*Gt211 + Gt112*gt13L*Gt212 + gt12L*Gt212*Gt223 + Gt211*Gt223*gt22L + Gt112*Gt211*gt23L +
- 2*Gt123*gt13L*Gt311 + Gt223*gt23L*Gt311 + Gt113*gt13L*Gt312 + gt13L*Gt223*Gt312 + Gt213*gt23L*Gt312 +
- gt12L*Gt213*Gt323 + Gt211*gt23L*Gt323 + gt13L*Gt313*Gt323 +
- gt11L*(2*Gt111*Gt123 + Gt112*Gt223 + Gt113*Gt323) + Gt111*(Gt112*gt13L + gt12L*Gt223 + gt13L*Gt323) +
- Gt112*Gt311*gt33L + Gt212*Gt312*gt33L + Gt312*Gt313*gt33L + Gt311*Gt323*gt33L + gt23L*SQR(Gt212))) +
- 2*gtu32*(Gt123*gt13L*Gt212 + 2*Gt123*gt12L*Gt213 + Gt113*gt12L*Gt223 + Gt213*Gt223*gt22L + Gt212*Gt223*gt23L +
- Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + 2*Gt123*gt13L*Gt313 + Gt223*gt23L*Gt313 + Gt113*gt13L*Gt323 +
- gt13L*Gt223*Gt323 + gt12L*Gt233*Gt323 + Gt213*gt23L*Gt323 +
- gt11L*(2*Gt113*Gt123 + Gt123*Gt223 + Gt133*Gt323) + gt13L*Gt323*Gt333 + Gt212*Gt323*gt33L +
- Gt313*Gt323*gt33L + Gt312*Gt333*gt33L + Gt112*(Gt113*gt13L + Gt213*gt23L + Gt313*gt33L) + gt12L*SQR(Gt223)) +
- 2*gtu11*(2*Gt113*gt12L*Gt211 + Gt112*gt13L*Gt211 + gt12L*Gt212*Gt213 + Gt211*Gt213*gt22L + Gt211*Gt212*gt23L +
- 3*Gt113*gt13L*Gt311 + 2*Gt213*gt23L*Gt311 + gt13L*Gt213*Gt312 + gt12L*Gt213*Gt313 + Gt211*gt23L*Gt313 +
- gt11L*(2*Gt111*Gt113 + Gt112*Gt213 + Gt113*Gt313) + Gt211*Gt312*gt33L + 2*Gt311*Gt313*gt33L +
- Gt111*(gt12L*Gt213 + Gt211*gt23L + gt13L*Gt313 + Gt311*gt33L) + gt13L*SQR(Gt111) + gt13L*SQR(Gt313)) +
- 2*gtu31*(Gt112*gt13L*Gt213 + Gt112*gt11L*Gt233 + Gt211*gt22L*Gt233 + Gt113*Gt211*gt23L + Gt212*Gt213*gt23L +
- 2*Gt133*gt13L*Gt311 + Gt233*gt23L*Gt311 + gt13L*Gt233*Gt312 + Gt113*gt13L*Gt313 + Gt213*gt23L*Gt313 +
- Gt113*gt11L*Gt333 + Gt211*gt23L*Gt333 + gt13L*Gt313*Gt333 +
- Gt111*(2*gt11L*Gt133 + Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) +
- gt12L*(2*Gt133*Gt211 + Gt212*Gt233 + Gt213*Gt333) + Gt113*Gt311*gt33L + Gt213*Gt312*gt33L +
- Gt311*Gt333*gt33L + gt33L*SQR(Gt313)) +
- 2*gtu31*(Gt123*gt13L*Gt211 + 3*Gt113*gt12L*Gt213 + gt12L*Gt213*Gt223 + Gt211*Gt223*gt23L + Gt133*gt13L*Gt311 +
- Gt233*gt23L*Gt311 + 3*Gt113*gt13L*Gt313 + gt12L*Gt233*Gt313 + 2*Gt213*gt23L*Gt313 + gt13L*Gt213*Gt323 +
- gt13L*Gt313*Gt333 + Gt211*Gt323*gt33L + Gt311*Gt333*gt33L + Gt111*(Gt113*gt13L + Gt213*gt23L + Gt313*gt33L) +
- gt11L*(Gt123*Gt213 + Gt133*Gt313 + 2*SQR(Gt113)) + gt22L*SQR(Gt213) + gt33L*SQR(Gt313)) +
- 2*gtu22*(2*Gt123*gt12L*Gt212 + Gt122*gt13L*Gt212 + gt12L*Gt222*Gt223 + Gt212*Gt223*gt22L + Gt212*Gt222*gt23L +
- 3*Gt123*gt13L*Gt312 + 2*Gt223*gt23L*Gt312 + gt13L*Gt223*Gt322 + gt12L*Gt223*Gt323 + Gt212*gt23L*Gt323 +
- gt11L*(2*Gt112*Gt123 + Gt122*Gt223 + Gt123*Gt323) + Gt212*Gt322*gt33L + 2*Gt312*Gt323*gt33L +
- Gt112*(gt12L*Gt223 + Gt212*gt23L + gt13L*Gt323 + Gt312*gt33L) + gt13L*SQR(Gt112) + gt13L*SQR(Gt323)) +
- 2*gtu33*(2*gt12L*Gt133*Gt213 + Gt123*gt13L*Gt213 + gt11L*Gt123*Gt233 + gt12L*Gt223*Gt233 + Gt213*gt22L*Gt233 +
- Gt213*Gt223*gt23L + 3*Gt133*gt13L*Gt313 + 2*Gt233*gt23L*Gt313 + gt13L*Gt233*Gt323 + gt11L*Gt133*Gt333 +
- gt12L*Gt233*Gt333 + Gt213*gt23L*Gt333 + Gt213*Gt323*gt33L + 2*Gt313*Gt333*gt33L +
- Gt113*(2*gt11L*Gt133 + gt12L*Gt233 + Gt213*gt23L + gt13L*Gt333 + Gt313*gt33L) + gt13L*SQR(Gt113) +
- gt13L*SQR(Gt333)));
-
- CCTK_REAL const Rt22 = 4*(Gt122*gt12L*Gt212*gtu21 + Gt112*gt12L*Gt222*gtu21 + Gt122*gt12L*Gt222*gtu22 + Gt123*gt12L*Gt212*gtu31 +
- Gt123*gt12L*Gt222*gtu32 + Gt123*gt12L*Gt223*gtu33) - gtu11*khalf*PDstandardNth11gt22 +
- gtu21*(6*Gt212*Gt222*gt22L + 2*Gt122*gt23L*Gt311 + 2*Gt122*gt13L*Gt312 + 4*Gt222*gt23L*Gt312 +
- 2*Gt113*gt12L*Gt322 + 2*gt23L*Gt312*Gt323 + 2*Gt312*Gt322*gt33L - PDstandardNth12gt22) +
- gtu31*(6*Gt212*Gt223*gt22L + 2*Gt123*gt13L*Gt312 + 2*Gt112*gt23L*Gt313 + 2*Gt113*gt12L*Gt323 +
- 2*gt23L*Gt312*Gt333 + 2*Gt312*Gt323*gt33L - PDstandardNth13gt22) - gtu22*khalf*PDstandardNth22gt22 +
- gtu32*(4*Gt122*gt12L*Gt223 + 2*Gt123*Gt212*gt22L + 2*gt12L*Gt133*Gt322 + 4*Gt223*gt23L*Gt322 +
- 2*Gt123*gt12L*Gt323 + 4*Gt222*gt23L*Gt323 + 2*gt23L*Gt322*Gt333 + 2*Gt322*Gt323*gt33L - PDstandardNth23gt22) +
- gt12L*(2*Gt111*Gt123*gtu31 + 4*Gt112*Gt223*gtu31 + 2*Gt113*Gt122*gtu32 + 2*Gt113*Gt123*gtu33 + PDstandardNth2Xt1) +
- gt22L*(2*Gt122*Gt213*gtu32 + 6*Gt222*Gt223*gtu32 + 2*Gt123*Gt213*gtu33 + PDstandardNth2Xt2) +
- gt23L*(4*Gt212*Gt322*gtu21 + 2*Gt313*Gt322*gtu21 + 4*Gt222*Gt322*gtu22 + 2*Gt123*Gt311*gtu31 +
- 4*Gt212*Gt323*gtu31 + 2*Gt313*Gt323*gtu31 + 2*Gt122*Gt313*gtu32 + 2*Gt123*Gt313*gtu33 + 4*Gt223*Gt323*gtu33 +
- 2*Gt323*Gt333*gtu33 + PDstandardNth2Xt3) - gtu33*khalf*PDstandardNth33gt22 + Gt212*gt22L*Xtn1 +
- Gt112*(2*Gt111*gt12L*gtu11 + 4*gt12L*Gt212*gtu11 + 2*gt11L*Gt122*gtu21 + 2*Gt122*gt12L*gtu22 +
- 2*gt11L*Gt123*gtu31 + 2*Gt123*gt12L*gtu32 + gt12L*Xtn1) +
- Gt312*(2*Gt213*gt22L*gtu11 + 4*Gt212*gt23L*gtu11 + 2*gt23L*Gt313*gtu11 + 2*Gt123*gt12L*gtu21 +
- 2*Gt122*gt23L*gtu22 + 2*gt12L*Gt133*gtu31 + 2*gt22L*Gt233*gtu31 + 4*Gt223*gt23L*gtu31 + 2*Gt123*gt23L*gtu32 +
- gt23L*Xtn1) + Gt122*gt12L*Xtn2 + Gt222*gt22L*Xtn2 + gt23L*Gt322*Xtn2 + Gt123*gt12L*Xtn3 + Gt223*gt22L*Xtn3 +
- gt23L*Gt323*Xtn3 + gt11L*gtu11*SQR(Gt112) + 2*
- (Gt112*Gt211*gt22L*gtu11 + Gt112*gt23L*Gt311*gtu11 + Gt113*gt12L*Gt312*gtu11 + Gt112*gt13L*Gt312*gtu11 +
- Gt111*Gt122*gt12L*gtu21 + Gt122*Gt211*gt22L*gtu21 + Gt112*Gt212*gt22L*gtu21 + Gt223*gt22L*Gt312*gtu21 +
- Gt112*gt23L*Gt312*gtu21 + Gt112*gt13L*Gt322*gtu21 + Gt213*gt22L*Gt322*gtu21 + Gt122*Gt212*gt22L*gtu22 +
- Gt123*gt12L*Gt322*gtu22 + Gt122*gt13L*Gt322*gtu22 + Gt223*gt22L*Gt322*gtu22 + gt23L*Gt322*Gt323*gtu22 +
- Gt112*Gt113*gt12L*gtu31 + Gt123*Gt211*gt22L*gtu31 + Gt112*Gt213*gt22L*gtu31 + Gt112*gt13L*Gt323*gtu31 +
- Gt213*gt22L*Gt323*gtu31 + gt11L*Gt122*Gt123*gtu32 + Gt123*gt13L*Gt322*gtu32 + gt22L*Gt233*Gt322*gtu32 +
- Gt122*gt13L*Gt323*gtu32 + Gt223*gt22L*Gt323*gtu32 + gt12L*Gt133*Gt323*gtu33 + Gt123*gt13L*Gt323*gtu33 +
- gt22L*Gt233*Gt323*gtu33 + gt12L*gtu21*SQR(Gt112)) + gt11L*gtu22*SQR(Gt122) + gt11L*gtu33*SQR(Gt123) +
- 3*gt22L*gtu11*SQR(Gt212) + 3*gt22L*gtu22*SQR(Gt222) + 3*gt22L*gtu33*SQR(Gt223) + gt33L*gtu11*SQR(Gt312) +
- gt33L*gtu22*SQR(Gt322) + 2*gt23L*gtu32*SQR(Gt323) + gt33L*gtu33*SQR(Gt323);
-
- CCTK_REAL const Rt23 = khalf*(-(gtu11*PDstandardNth11gt23) - 2*gtu21*PDstandardNth12gt23 - 2*gtu31*PDstandardNth13gt23 -
- gtu22*PDstandardNth22gt23 - 2*gtu32*PDstandardNth23gt23 + gt13L*PDstandardNth2Xt1 + gt23L*PDstandardNth2Xt2 +
- gt33L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt23 + gt12L*PDstandardNth3Xt1 + gt22L*PDstandardNth3Xt2 +
- gt23L*PDstandardNth3Xt3 + (Gt113*gt12L + Gt213*gt22L + gt23L*Gt313)*Xtn1 +
- (Gt112*gt13L + Gt212*gt23L + Gt312*gt33L)*Xtn1 + (Gt123*gt12L + Gt223*gt22L + gt23L*Gt323)*Xtn2 +
- (Gt122*gt13L + Gt222*gt23L + Gt322*gt33L)*Xtn2 + (gt12L*Gt133 + gt22L*Gt233 + gt23L*Gt333)*Xtn3 +
- (Gt123*gt13L + Gt223*gt23L + Gt323*gt33L)*Xtn3 +
- 2*((Gt112*gt11L*Gt123 + Gt111*Gt123*gt12L + Gt111*Gt122*gt13L + Gt123*gt12L*Gt212 + Gt112*gt13L*Gt222 +
- 2*Gt112*gt12L*Gt223 + Gt123*Gt211*gt22L + 2*Gt212*Gt223*gt22L + Gt122*Gt211*gt23L + Gt212*Gt222*gt23L +
- Gt123*gt23L*Gt311 + Gt123*gt13L*Gt312 + 2*Gt223*gt23L*Gt312 + Gt113*gt13L*Gt322 + Gt213*gt23L*Gt322 +
- Gt113*gt12L*Gt323 + Gt112*gt13L*Gt323 + Gt213*gt22L*Gt323 + Gt212*gt23L*Gt323 + gt23L*Gt313*Gt323 +
- Gt122*Gt311*gt33L + Gt222*Gt312*gt33L + Gt313*Gt322*gt33L + Gt312*Gt323*gt33L)*gtu21 +
- (Gt112*gt11L*Gt133 + Gt111*gt12L*Gt133 + Gt111*Gt123*gt13L + gt12L*Gt133*Gt212 + Gt112*gt13L*Gt223 +
- Gt133*Gt211*gt22L + 2*Gt112*gt12L*Gt233 + 2*Gt212*gt22L*Gt233 + Gt123*Gt211*gt23L + Gt212*Gt223*gt23L +
- Gt133*gt23L*Gt311 + Gt133*gt13L*Gt312 + 2*Gt233*gt23L*Gt312 + Gt113*gt13L*Gt323 + Gt213*gt23L*Gt323 +
- Gt113*gt12L*Gt333 + Gt112*gt13L*Gt333 + Gt213*gt22L*Gt333 + Gt212*gt23L*Gt333 + gt23L*Gt313*Gt333 +
- Gt123*Gt311*gt33L + Gt223*Gt312*gt33L + Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu31 +
- gtu21*(Gt113*gt11L*Gt122 + Gt122*gt13L*Gt212 + 2*Gt122*gt12L*Gt213 + Gt113*gt12L*Gt222 + Gt113*Gt212*gt22L +
- 2*Gt213*Gt222*gt22L + Gt212*Gt222*gt23L + Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 + Gt223*gt23L*Gt312 +
- Gt123*gt12L*Gt313 + Gt122*gt13L*Gt313 + Gt223*gt22L*Gt313 + Gt222*gt23L*Gt313 + Gt113*gt13L*Gt322 +
- 2*Gt213*gt23L*Gt322 + gt23L*Gt313*Gt323 + Gt212*Gt322*gt33L + Gt313*Gt322*gt33L + Gt312*Gt323*gt33L +
- Gt112*(Gt113*gt12L + Gt212*gt23L + Gt312*gt33L) + gt13L*SQR(Gt112))) +
- 2*gtu31*(2*Gt213*Gt223*gt22L + Gt112*Gt213*gt23L + Gt212*Gt223*gt23L + Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 +
- gt12L*Gt133*Gt313 + gt22L*Gt233*Gt313 + Gt223*gt23L*Gt313 + Gt123*(2*gt12L*Gt213 + gt13L*(Gt212 + Gt313)) +
- 2*Gt213*gt23L*Gt323 + Gt113*(gt11L*Gt123 + Gt112*gt13L + gt12L*Gt223 + Gt213*gt22L + gt23L*Gt313 +
- gt13L*Gt323) + gt23L*Gt313*Gt333 + Gt112*Gt313*gt33L + Gt212*Gt323*gt33L + Gt313*Gt323*gt33L +
- Gt312*Gt333*gt33L + gt12L*SQR(Gt113)) +
- 2*gtu11*(Gt112*Gt113*gt11L + Gt111*Gt113*gt12L + Gt111*Gt112*gt13L + Gt113*gt12L*Gt212 + Gt112*gt13L*Gt212 +
- 2*Gt112*gt12L*Gt213 + Gt113*Gt211*gt22L + 2*Gt212*Gt213*gt22L + Gt112*Gt211*gt23L + Gt113*gt23L*Gt311 +
- 2*Gt113*gt13L*Gt312 + 3*Gt213*gt23L*Gt312 + Gt113*gt12L*Gt313 + Gt112*gt13L*Gt313 + Gt213*gt22L*Gt313 +
- Gt212*gt23L*Gt313 + Gt112*Gt311*gt33L + Gt212*Gt312*gt33L + 2*Gt312*Gt313*gt33L + gt23L*SQR(Gt212) +
- gt23L*SQR(Gt313)) + 2*gtu22*(gt11L*Gt122*Gt123 + Gt112*Gt123*gt12L + Gt112*Gt122*gt13L + Gt123*gt12L*Gt222 +
- Gt122*gt13L*Gt222 + 2*Gt122*gt12L*Gt223 + Gt123*Gt212*gt22L + 2*Gt222*Gt223*gt22L + Gt122*Gt212*gt23L +
- Gt123*gt23L*Gt312 + 2*Gt123*gt13L*Gt322 + 3*Gt223*gt23L*Gt322 + Gt123*gt12L*Gt323 + Gt122*gt13L*Gt323 +
- Gt223*gt22L*Gt323 + Gt222*gt23L*Gt323 + Gt122*Gt312*gt33L + Gt222*Gt322*gt33L + 2*Gt322*Gt323*gt33L +
- gt23L*SQR(Gt222) + gt23L*SQR(Gt323)) + 2*gtu32*
- (gt11L*Gt122*Gt133 + Gt112*gt12L*Gt133 + Gt112*Gt123*gt13L + gt12L*Gt133*Gt222 + Gt122*gt13L*Gt223 +
- Gt133*Gt212*gt22L + 2*Gt122*gt12L*Gt233 + 2*Gt222*gt22L*Gt233 + Gt123*Gt212*gt23L + Gt222*Gt223*gt23L +
- Gt133*gt23L*Gt312 + Gt133*gt13L*Gt322 + 2*Gt233*gt23L*Gt322 + Gt123*gt13L*Gt323 + Gt223*gt23L*Gt323 +
- Gt123*gt12L*Gt333 + Gt122*gt13L*Gt333 + Gt223*gt22L*Gt333 + Gt222*gt23L*Gt333 + gt23L*Gt323*Gt333 +
- Gt123*Gt312*gt33L + Gt223*Gt322*gt33L + Gt322*Gt333*gt33L + gt33L*SQR(Gt323)) +
- 2*gtu32*(Gt113*Gt123*gt12L + Gt113*Gt122*gt13L + Gt123*gt13L*Gt222 + 3*Gt123*gt12L*Gt223 + Gt123*Gt213*gt22L +
- Gt122*Gt213*gt23L + Gt222*Gt223*gt23L + Gt123*gt23L*Gt313 + Gt133*gt13L*Gt322 + Gt233*gt23L*Gt322 +
- gt12L*Gt133*Gt323 + 2*Gt123*gt13L*Gt323 + gt22L*Gt233*Gt323 + 3*Gt223*gt23L*Gt323 + gt23L*Gt323*Gt333 +
- Gt122*Gt313*gt33L + Gt222*Gt323*gt33L + Gt322*Gt333*gt33L + gt11L*SQR(Gt123) + 2*gt22L*SQR(Gt223) +
- gt33L*SQR(Gt323)) + 2*gtu33*(gt11L*Gt123*Gt133 + Gt113*gt12L*Gt133 + Gt113*Gt123*gt13L + gt12L*Gt133*Gt223 +
- Gt123*gt13L*Gt223 + Gt133*Gt213*gt22L + 2*Gt123*gt12L*Gt233 + 2*Gt223*gt22L*Gt233 + Gt123*Gt213*gt23L +
- Gt133*gt23L*Gt313 + 2*Gt133*gt13L*Gt323 + 3*Gt233*gt23L*Gt323 + gt12L*Gt133*Gt333 + Gt123*gt13L*Gt333 +
- gt22L*Gt233*Gt333 + Gt223*gt23L*Gt333 + Gt123*Gt313*gt33L + Gt223*Gt323*gt33L + 2*Gt323*Gt333*gt33L +
- gt23L*SQR(Gt223) + gt23L*SQR(Gt333)));
-
- CCTK_REAL const Rt33 = 4*(Gt123*gt13L*Gt323*gtu22 + Gt223*gt23L*Gt323*gtu22 + Gt133*gt13L*Gt313*gtu31 + Gt233*gt23L*Gt313*gtu31 +
- Gt113*gt13L*Gt333*gtu31 + Gt133*gt13L*Gt323*gtu32 + Gt233*gt23L*Gt323*gtu32 + Gt123*gt13L*Gt333*gtu32 +
- Gt133*gt13L*Gt333*gtu33) + gtu21*(2*Gt212*Gt223*gt23L + 4*Gt123*gt13L*Gt313 + 4*Gt223*gt23L*Gt313 +
- 4*Gt113*gt13L*Gt323 + 4*Gt213*gt23L*Gt323 + 2*Gt123*Gt311*gt33L - PDstandardNth12gt33) +
- gtu31*(4*Gt213*gt23L*Gt333 + 2*Gt233*Gt312*gt33L + 6*Gt313*Gt333*gt33L - PDstandardNth13gt33) -
- gtu22*khalf*PDstandardNth22gt33 + gtu32*(4*Gt223*gt23L*Gt333 + 2*Gt123*Gt313*gt33L + 6*Gt323*Gt333*gt33L -
- PDstandardNth23gt33) - gtu33*khalf*PDstandardNth33gt33 + gt13L*PDstandardNth3Xt1 + gt23L*PDstandardNth3Xt2 +
- gt33L*(2*Gt213*Gt322*gtu21 + 6*Gt313*Gt323*gtu21 + 2*Gt123*Gt312*gtu22 + 2*Gt133*Gt311*gtu31 +
- 2*Gt133*Gt312*gtu32 + 2*Gt133*Gt313*gtu33 + PDstandardNth3Xt3) + Gt113*gt13L*Xtn1 + Gt213*gt23L*Xtn1 +
- Gt313*gt33L*Xtn1 + Gt123*gt13L*Xtn2 + Gt223*gt23L*Xtn2 + Gt323*gt33L*Xtn2 + Gt133*gt13L*Xtn3 + Gt333*gt33L*Xtn3 +
- Gt233*(4*gt23L*Gt333*gtu33 + 2*Gt323*gt33L*gtu33 + gt23L*Xtn3) +
- gtu11*(2*Gt212*Gt213*gt23L + 4*Gt113*gt13L*Gt313 + 4*Gt213*gt23L*Gt313 + 2*Gt113*Gt311*gt33L +
- 2*Gt213*Gt312*gt33L - khalf*PDstandardNth11gt33 + gt11L*SQR(Gt113)) +
- 2*(Gt111*Gt113*gt13L*gtu11 + Gt113*gt12L*Gt213*gtu11 + Gt112*gt13L*Gt213*gtu11 + Gt113*Gt211*gt23L*gtu11 +
- Gt113*gt11L*Gt123*gtu21 + Gt112*Gt113*gt13L*gtu21 + Gt111*Gt123*gt13L*gtu21 + Gt123*gt12L*Gt213*gtu21 +
- Gt122*gt13L*Gt213*gtu21 + Gt113*gt12L*Gt223*gtu21 + Gt112*gt13L*Gt223*gtu21 + Gt213*Gt223*gt22L*gtu21 +
- Gt123*Gt211*gt23L*gtu21 + Gt113*Gt212*gt23L*gtu21 + Gt213*Gt222*gt23L*gtu21 + Gt113*Gt312*gt33L*gtu21 +
- Gt223*Gt312*gt33L*gtu21 + Gt112*Gt123*gt13L*gtu22 + Gt123*gt12L*Gt223*gtu22 + Gt122*gt13L*Gt223*gtu22 +
- Gt123*Gt212*gt23L*gtu22 + Gt222*Gt223*gt23L*gtu22 + Gt223*Gt322*gt33L*gtu22 + Gt113*gt11L*Gt133*gtu31 +
- Gt111*Gt133*gt13L*gtu31 + gt12L*Gt133*Gt213*gtu31 + Gt123*gt13L*Gt213*gtu31 + Gt113*gt12L*Gt233*gtu31 +
- Gt112*gt13L*Gt233*gtu31 + Gt213*gt22L*Gt233*gtu31 + Gt133*Gt211*gt23L*gtu31 + Gt113*Gt213*gt23L*gtu31 +
- Gt213*Gt223*gt23L*gtu31 + Gt212*Gt233*gt23L*gtu31 + Gt113*Gt313*gt33L*gtu31 + Gt213*Gt323*gt33L*gtu31 +
- gt11L*Gt123*Gt133*gtu32 + Gt113*Gt123*gt13L*gtu32 + Gt112*Gt133*gt13L*gtu32 + gt12L*Gt133*Gt223*gtu32 +
- Gt123*gt13L*Gt223*gtu32 + Gt123*gt12L*Gt233*gtu32 + Gt122*gt13L*Gt233*gtu32 + Gt223*gt22L*Gt233*gtu32 +
- Gt133*Gt212*gt23L*gtu32 + Gt123*Gt213*gt23L*gtu32 + Gt222*Gt233*gt23L*gtu32 + Gt233*Gt322*gt33L*gtu32 +
- Gt223*Gt323*gt33L*gtu32 + Gt113*Gt133*gt13L*gtu33 + gt12L*Gt133*Gt233*gtu33 + Gt123*gt13L*Gt233*gtu33 +
- Gt133*Gt213*gt23L*gtu33 + Gt223*Gt233*gt23L*gtu33 + gt13L*gtu31*SQR(Gt113)) + gt11L*gtu22*SQR(Gt123) +
- gt11L*gtu33*SQR(Gt133) + gt22L*gtu11*SQR(Gt213) + gt22L*gtu22*SQR(Gt223) + 2*gt23L*gtu32*SQR(Gt223) +
- gt22L*gtu33*SQR(Gt233) + 3*gt33L*gtu11*SQR(Gt313) + 3*gt33L*gtu22*SQR(Gt323) + 3*gt33L*gtu33*SQR(Gt333);
-
- CCTK_REAL const fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
-
- CCTK_REAL const cdphi1 = fac1*PDstandardNth1phi;
-
- CCTK_REAL const cdphi2 = fac1*PDstandardNth2phi;
-
- CCTK_REAL const cdphi3 = fac1*PDstandardNth3phi;
-
- CCTK_REAL const fac2 = IfThen(conformalMethod,khalf*pow(phiL,-2),0);
-
- CCTK_REAL const cdphi211 = -(fac1*(-PDstandardNth11phi + Gt111*PDstandardNth1phi + Gt211*PDstandardNth2phi +
- Gt311*PDstandardNth3phi)) + fac2*SQR(PDstandardNth1phi);
-
- CCTK_REAL const cdphi212 = fac2*PDstandardNth1phi*PDstandardNth2phi -
- fac1*(-PDstandardNth12phi + Gt112*PDstandardNth1phi + Gt212*PDstandardNth2phi + Gt312*PDstandardNth3phi);
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
- CCTK_REAL const cdphi213 = fac2*PDstandardNth1phi*PDstandardNth3phi -
- fac1*(-PDstandardNth13phi + Gt113*PDstandardNth1phi + Gt213*PDstandardNth2phi + Gt313*PDstandardNth3phi);
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
- CCTK_REAL const cdphi222 = -(fac1*(Gt122*PDstandardNth1phi - PDstandardNth22phi + Gt222*PDstandardNth2phi +
- Gt322*PDstandardNth3phi)) + fac2*SQR(PDstandardNth2phi);
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
- CCTK_REAL const cdphi223 = fac2*PDstandardNth2phi*PDstandardNth3phi -
- fac1*(Gt123*PDstandardNth1phi - PDstandardNth23phi + Gt223*PDstandardNth2phi + Gt323*PDstandardNth3phi);
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
- CCTK_REAL const cdphi233 = -(fac1*(Gt133*PDstandardNth1phi + Gt233*PDstandardNth2phi - PDstandardNth33phi +
- Gt333*PDstandardNth3phi)) + fac2*SQR(PDstandardNth3phi);
+ CCTK_REAL Gt111 = khalf*(gtu11*PDstandardNth1gt11 +
+ 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
+ gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
- CCTK_REAL const Rphi11 = -2*(cdphi211 + 2*(-1 + gt11L*gtu11)*SQR(cdphi1) +
- gt11L*(cdphi211*gtu11 + 4*(cdphi1*(cdphi2*gtu21 + cdphi3*gtu31) + cdphi2*cdphi3*gtu32) + cdphi233*gtu33 +
- gtu22*(cdphi222 + 2*SQR(cdphi2)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu33*SQR(cdphi3))));
+ CCTK_REAL Gt211 = khalf*(gtu21*PDstandardNth1gt11 +
+ 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
+ gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
+
+ CCTK_REAL Gt311 = khalf*(gtu31*PDstandardNth1gt11 +
+ 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
+ gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
+
+ CCTK_REAL Gt112 = khalf*(gtu21*PDstandardNth1gt22 +
+ gtu11*PDstandardNth2gt11 + gtu31*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
+
+ CCTK_REAL Gt212 = khalf*(gtu22*PDstandardNth1gt22 +
+ gtu21*PDstandardNth2gt11 + gtu32*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
+
+ CCTK_REAL Gt312 = khalf*(gtu32*PDstandardNth1gt22 +
+ gtu31*PDstandardNth2gt11 + gtu33*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
+
+ CCTK_REAL Gt113 = khalf*(gtu31*PDstandardNth1gt33 +
+ gtu11*PDstandardNth3gt11 + gtu21*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
+
+ CCTK_REAL Gt213 = khalf*(gtu32*PDstandardNth1gt33 +
+ gtu21*PDstandardNth3gt11 + gtu22*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
+
+ CCTK_REAL Gt313 = khalf*(gtu33*PDstandardNth1gt33 +
+ gtu31*PDstandardNth3gt11 + gtu32*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
+
+ CCTK_REAL Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
+ gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+
+ CCTK_REAL Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
+ gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+
+ CCTK_REAL Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
+ gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+
+ CCTK_REAL Gt123 = khalf*(gtu31*PDstandardNth2gt33 +
+ gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu21*PDstandardNth3gt22);
+
+ CCTK_REAL Gt223 = khalf*(gtu32*PDstandardNth2gt33 +
+ gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu22*PDstandardNth3gt22);
+
+ CCTK_REAL Gt323 = khalf*(gtu33*PDstandardNth2gt33 +
+ gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu32*PDstandardNth3gt22);
+
+ CCTK_REAL Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) -
+ gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
+ 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
+
+ CCTK_REAL Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) -
+ gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
+ 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
+
+ CCTK_REAL Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) -
+ gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
+ 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
+
+ CCTK_REAL Xtn1 = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 +
+ Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
+
+ CCTK_REAL Xtn2 = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 +
+ Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
+
+ CCTK_REAL Xtn3 = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 +
+ Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
+
+ CCTK_REAL Rt11 = -(gtu11*khalf*PDstandardNth11gt11) +
+ gtu21*(2*Gt211*Gt212*gt22L + 4*Gt112*gt13L*Gt311 + 2*Gt113*gt11L*Gt312
+ + 2*gt13L*Gt312*Gt313 + 2*gt13L*Gt211*Gt322 + 2*gt13L*Gt311*Gt323 +
+ 2*Gt311*Gt312*gt33L - PDstandardNth12gt11) - gtu31*PDstandardNth13gt11
+ + gt11L*PDstandardNth1Xt1 + gt12L*(4*Gt111*Gt212*gtu21 +
+ 2*Gt211*Gt222*gtu21 + 2*Gt212*Gt222*gtu22 + 4*Gt113*Gt211*gtu31 +
+ 4*Gt113*Gt212*gtu32 + 4*Gt113*Gt213*gtu33 + PDstandardNth1Xt2) +
+ gt13L*(4*Gt111*Gt312*gtu21 + 2*Gt212*Gt312*gtu21 + 4*Gt112*Gt312*gtu22
+ + 4*Gt113*Gt311*gtu31 + 4*Gt113*Gt312*gtu32 + 4*Gt113*Gt313*gtu33 +
+ PDstandardNth1Xt3) - gtu22*khalf*PDstandardNth22gt11 -
+ gtu32*PDstandardNth23gt11 - gtu33*khalf*PDstandardNth33gt11 +
+ Gt111*(6*Gt113*gt11L*gtu31 + 4*gt12L*Gt213*gtu31 + gt11L*Xtn1) +
+ Gt211*(2*Gt112*gt11L*gtu11 + 4*Gt111*gt12L*gtu11 + 2*gt11L*Gt122*gtu21
+ + 2*gt11L*Gt123*gtu31 + gt12L*Xtn1) + Gt311*(4*Gt111*gt13L*gtu11 +
+ 2*gt12L*Gt213*gtu11 + 2*gt13L*Gt313*gtu11 + 2*gt11L*Gt123*gtu21 +
+ 2*gt11L*Gt133*gtu31 + gt13L*Xtn1) + gt12L*Gt212*Xtn2 + gt13L*Gt312*Xtn2
+ + Gt112*(6*Gt111*gt11L*gtu21 + 4*gt12L*Gt211*gtu21 +
+ 4*gt12L*Gt212*gtu22 + 2*gt11L*Gt213*gtu31 + 6*Gt113*gt11L*gtu32 +
+ gt11L*Xtn2) + Gt113*gt11L*Xtn3 + Gt213*(2*gt11L*Gt122*gtu32 +
+ 4*Gt112*gt12L*gtu32 + 2*gt11L*Gt123*gtu33 + gt12L*Xtn3) +
+ Gt313*(4*Gt111*gt13L*gtu31 + 2*gt12L*Gt213*gtu31 + 2*gt11L*Gt123*gtu32
+ + 4*Gt112*gt13L*gtu32 + 2*gt12L*Gt223*gtu32 + 2*gt11L*Gt133*gtu33 +
+ gt13L*Xtn3) + 3*gt11L*gtu11*SQR(Gt111) + 3*gt11L*gtu22*SQR(Gt112) +
+ 3*gt11L*gtu33*SQR(Gt113) + gt22L*gtu11*SQR(Gt211) +
+ gt22L*gtu22*SQR(Gt212) + 2*(gt12L*Gt211*Gt212*gtu11 +
+ Gt113*gt11L*Gt311*gtu11 + Gt211*gt23L*Gt311*gtu11 +
+ gt13L*Gt211*Gt312*gtu11 + Gt112*gt11L*Gt212*gtu21 +
+ gt12L*Gt223*Gt311*gtu21 + Gt212*gt23L*Gt311*gtu21 +
+ gt12L*Gt213*Gt312*gtu21 + Gt211*gt23L*Gt312*gtu21 +
+ gt11L*Gt122*Gt212*gtu22 + gt11L*Gt123*Gt312*gtu22 +
+ gt12L*Gt223*Gt312*gtu22 + Gt212*gt23L*Gt312*gtu22 +
+ gt13L*Gt212*Gt322*gtu22 + gt13L*Gt312*Gt323*gtu22 +
+ gt12L*Gt212*Gt213*gtu31 + gt12L*Gt211*Gt223*gtu31 +
+ Gt211*Gt213*gt22L*gtu31 + gt12L*Gt233*Gt311*gtu31 +
+ Gt213*gt23L*Gt311*gtu31 + gt13L*Gt213*Gt312*gtu31 +
+ Gt113*gt11L*Gt313*gtu31 + Gt211*gt23L*Gt313*gtu31 +
+ gt13L*Gt211*Gt323*gtu31 + gt13L*Gt311*Gt333*gtu31 +
+ Gt311*Gt313*gt33L*gtu31 + gt11L*Gt123*Gt212*gtu32 +
+ gt12L*Gt213*Gt222*gtu32 + gt12L*Gt212*Gt223*gtu32 +
+ Gt212*Gt213*gt22L*gtu32 + gt11L*Gt133*Gt312*gtu32 +
+ gt12L*Gt233*Gt312*gtu32 + Gt213*gt23L*Gt312*gtu32 +
+ Gt212*gt23L*Gt313*gtu32 + gt13L*Gt213*Gt322*gtu32 +
+ gt13L*Gt212*Gt323*gtu32 + gt13L*Gt313*Gt323*gtu32 +
+ gt13L*Gt312*Gt333*gtu32 + Gt312*Gt313*gt33L*gtu32 +
+ gt12L*Gt213*Gt223*gtu33 + gt12L*Gt233*Gt313*gtu33 +
+ Gt213*gt23L*Gt313*gtu33 + gt13L*Gt213*Gt323*gtu33 +
+ gt13L*Gt313*Gt333*gtu33 + gt12L*gtu21*SQR(Gt212)) +
+ gt22L*gtu33*SQR(Gt213) + gt33L*gtu11*SQR(Gt311) +
+ gt33L*gtu22*SQR(Gt312) + 2*gt13L*gtu31*SQR(Gt313) +
+ gt33L*gtu33*SQR(Gt313);
+
+ CCTK_REAL Rt12 = khalf*(-(gtu11*PDstandardNth11gt12) -
+ 2*gtu21*PDstandardNth12gt12 - 2*gtu31*PDstandardNth13gt12 +
+ gt12L*PDstandardNth1Xt1 + gt22L*PDstandardNth1Xt2 +
+ gt23L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt12 -
+ 2*gtu32*PDstandardNth23gt12 + gt11L*PDstandardNth2Xt1 +
+ gt12L*PDstandardNth2Xt2 + gt13L*PDstandardNth2Xt3 -
+ gtu33*PDstandardNth33gt12 + (Gt111*gt12L + Gt211*gt22L +
+ gt23L*Gt311)*Xtn1 + (Gt112*gt11L + gt12L*Gt212 + gt13L*Gt312)*Xtn1 +
+ (Gt112*gt12L + Gt212*gt22L + gt23L*Gt312)*Xtn2 + (gt11L*Gt122 +
+ gt12L*Gt222 + gt13L*Gt322)*Xtn2 + (Gt113*gt12L + Gt213*gt22L +
+ gt23L*Gt313)*Xtn3 + (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xtn3 +
+ 2*gtu21*(Gt112*gt11L*Gt222 + Gt112*Gt211*gt22L + Gt211*Gt222*gt22L +
+ 2*Gt122*gt13L*Gt311 + Gt112*gt23L*Gt311 + Gt222*gt23L*Gt311 +
+ gt13L*Gt222*Gt312 + Gt213*gt22L*Gt312 + Gt212*gt23L*Gt312 +
+ gt23L*Gt312*Gt313 + Gt113*gt11L*Gt322 + Gt211*gt23L*Gt322 +
+ gt13L*Gt313*Gt322 + Gt111*(2*gt11L*Gt122 + Gt112*gt12L + gt12L*Gt222 +
+ gt13L*Gt322) + gt12L*(2*Gt122*Gt211 + Gt112*Gt212 + Gt212*Gt222 +
+ Gt113*Gt312 + Gt213*Gt322) + Gt311*Gt322*gt33L + gt22L*SQR(Gt212)) +
+ 2*((Gt123*gt12L*Gt211 + Gt113*gt12L*Gt212 + 2*Gt112*gt12L*Gt213 +
+ gt12L*Gt212*Gt223 + Gt212*Gt213*gt22L + Gt211*Gt223*gt22L +
+ gt12L*Gt133*Gt311 + gt22L*Gt233*Gt311 + Gt113*gt13L*Gt312 +
+ gt12L*Gt233*Gt312 + Gt213*gt23L*Gt312 + gt11L*(2*Gt112*Gt113 +
+ Gt123*Gt212 + Gt133*Gt312) + 2*Gt112*gt13L*Gt313 + Gt212*gt23L*Gt313 +
+ Gt111*(Gt113*gt12L + Gt213*gt22L + gt23L*Gt313) + gt13L*Gt212*Gt323 +
+ Gt211*gt23L*Gt323 + gt23L*Gt311*Gt333 + gt13L*Gt312*Gt333 +
+ Gt312*Gt313*gt33L)*gtu31 + (Gt123*gt12L*Gt212 + 2*Gt122*gt12L*Gt213 +
+ Gt113*gt12L*Gt222 + gt12L*Gt222*Gt223 + Gt213*Gt222*gt22L +
+ Gt212*Gt223*gt22L + gt12L*Gt133*Gt312 + gt22L*Gt233*Gt312 +
+ 2*Gt122*gt13L*Gt313 + Gt222*gt23L*Gt313 + Gt112*(Gt113*gt12L +
+ Gt213*gt22L + gt23L*Gt313) + Gt113*gt13L*Gt322 + gt12L*Gt233*Gt322 +
+ Gt213*gt23L*Gt322 + gt11L*(2*Gt113*Gt122 + Gt123*Gt222 + Gt133*Gt322) +
+ gt13L*Gt222*Gt323 + Gt212*gt23L*Gt323 + gt23L*Gt312*Gt333 +
+ gt13L*Gt322*Gt333 + Gt313*Gt322*gt33L)*gtu32 +
+ gtu11*(3*Gt112*gt12L*Gt211 + 2*Gt211*Gt212*gt22L + Gt113*gt12L*Gt311 +
+ 2*Gt112*gt13L*Gt311 + Gt213*gt22L*Gt311 + Gt212*gt23L*Gt311 +
+ gt13L*Gt212*Gt312 + gt12L*Gt213*Gt312 + 2*Gt211*gt23L*Gt312 +
+ gt11L*(2*Gt111*Gt112 + Gt112*Gt212 + Gt113*Gt312) + Gt111*(gt12L*Gt212
+ + Gt211*gt22L + gt23L*Gt311 + gt13L*Gt312) + gt23L*Gt311*Gt313 +
+ gt13L*Gt312*Gt313 + Gt311*Gt312*gt33L + gt12L*SQR(Gt111) +
+ gt12L*SQR(Gt212))) + 2*gtu22*(gt11L*Gt122*Gt222 + 2*Gt212*Gt222*gt22L +
+ 2*Gt122*gt13L*Gt312 + Gt223*gt22L*Gt312 + Gt222*gt23L*Gt312 +
+ gt11L*Gt123*Gt322 + gt13L*Gt222*Gt322 + 2*Gt212*gt23L*Gt322 +
+ Gt112*(2*gt11L*Gt122 + gt12L*Gt222 + Gt212*gt22L + gt23L*Gt312 +
+ gt13L*Gt322) + gt23L*Gt312*Gt323 + gt13L*Gt322*Gt323 +
+ Gt312*Gt322*gt33L + gt12L*SQR(Gt112) + gt12L*(3*Gt122*Gt212 +
+ Gt123*Gt312 + Gt223*Gt322 + SQR(Gt222))) + 2*gtu33*(gt11L*Gt123*Gt223 +
+ 2*Gt213*Gt223*gt22L + 2*Gt123*gt13L*Gt313 + gt22L*Gt233*Gt313 +
+ Gt223*gt23L*Gt313 + gt11L*Gt133*Gt323 + gt13L*Gt223*Gt323 +
+ 2*Gt213*gt23L*Gt323 + Gt113*(2*gt11L*Gt123 + gt12L*Gt223 + Gt213*gt22L
+ + gt23L*Gt313 + gt13L*Gt323) + gt23L*Gt313*Gt333 + gt13L*Gt323*Gt333 +
+ Gt313*Gt323*gt33L + gt12L*SQR(Gt113) + gt12L*(3*Gt123*Gt213 +
+ Gt133*Gt313 + Gt233*Gt323 + SQR(Gt223))) + 2*gtu21*(Gt122*gt12L*Gt211 +
+ 3*Gt112*gt12L*Gt212 + gt12L*Gt212*Gt222 + Gt211*Gt222*gt22L +
+ Gt123*gt12L*Gt311 + Gt223*gt22L*Gt311 + 3*Gt112*gt13L*Gt312 +
+ gt12L*Gt223*Gt312 + 2*Gt212*gt23L*Gt312 + Gt111*(Gt112*gt12L +
+ Gt212*gt22L + gt23L*Gt312) + gt13L*Gt212*Gt322 + Gt211*gt23L*Gt322 +
+ gt23L*Gt311*Gt323 + gt13L*Gt312*Gt323 + gt11L*(Gt122*Gt212 +
+ Gt123*Gt312 + 2*SQR(Gt112)) + gt22L*SQR(Gt212) + gt33L*SQR(Gt312)) +
+ 2*gtu31*(Gt112*gt11L*Gt223 + Gt113*Gt211*gt22L + Gt212*Gt213*gt22L +
+ Gt211*Gt223*gt22L + 2*Gt123*gt13L*Gt311 + Gt113*gt23L*Gt311 +
+ Gt223*gt23L*Gt311 + gt13L*Gt223*Gt312 + Gt213*gt23L*Gt312 +
+ Gt213*gt22L*Gt313 + Gt113*gt11L*Gt323 + Gt211*gt23L*Gt323 +
+ gt13L*Gt313*Gt323 + Gt111*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 +
+ gt13L*Gt323) + gt12L*(2*Gt123*Gt211 + Gt112*Gt213 + Gt212*Gt223 +
+ Gt113*Gt313 + Gt213*Gt323) + Gt311*Gt323*gt33L + gt23L*SQR(Gt313)) +
+ 2*gtu32*(gt11L*Gt122*Gt223 + Gt113*Gt212*gt22L + Gt213*Gt222*gt22L +
+ Gt212*Gt223*gt22L + 2*Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 +
+ Gt223*gt23L*Gt312 + Gt223*gt22L*Gt313 + gt13L*Gt223*Gt322 +
+ Gt213*gt23L*Gt322 + gt11L*Gt123*Gt323 + Gt212*gt23L*Gt323 +
+ gt23L*Gt313*Gt323 + Gt112*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 +
+ gt13L*Gt323) + gt12L*(Gt122*Gt213 + Gt123*(2*Gt212 + Gt313) +
+ Gt223*(Gt222 + Gt323)) + Gt312*Gt323*gt33L + gt13L*SQR(Gt323)));
+
+ CCTK_REAL Rt13 = khalf*(-(gtu11*PDstandardNth11gt13) -
+ 2*gtu21*PDstandardNth12gt13 - 2*gtu31*PDstandardNth13gt13 +
+ gt13L*PDstandardNth1Xt1 + gt23L*PDstandardNth1Xt2 +
+ gt33L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt13 -
+ 2*gtu32*PDstandardNth23gt13 - gtu33*PDstandardNth33gt13 +
+ gt11L*PDstandardNth3Xt1 + gt12L*PDstandardNth3Xt2 +
+ gt13L*PDstandardNth3Xt3 + (Gt113*gt11L + gt12L*Gt213 +
+ gt13L*Gt313)*Xtn1 + (Gt111*gt13L + Gt211*gt23L + Gt311*gt33L)*Xtn1 +
+ (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xtn2 + (Gt112*gt13L +
+ Gt212*gt23L + Gt312*gt33L)*Xtn2 + (gt11L*Gt133 + gt12L*Gt233 +
+ gt13L*Gt333)*Xtn3 + (Gt113*gt13L + Gt213*gt23L + Gt313*gt33L)*Xtn3 +
+ 2*((Gt122*gt13L*Gt211 + 2*Gt113*gt12L*Gt212 + Gt112*gt12L*Gt213 +
+ gt12L*Gt213*Gt222 + Gt212*Gt213*gt22L + Gt211*Gt222*gt23L +
+ Gt123*gt13L*Gt311 + Gt223*gt23L*Gt311 + 2*Gt113*gt13L*Gt312 +
+ Gt213*gt23L*Gt312 + Gt112*gt13L*Gt313 + gt12L*Gt223*Gt313 +
+ Gt212*gt23L*Gt313 + gt11L*(2*Gt112*Gt113 + Gt122*Gt213 + Gt123*Gt313) +
+ gt13L*Gt213*Gt322 + gt13L*Gt313*Gt323 + Gt312*Gt313*gt33L +
+ Gt211*Gt322*gt33L + Gt311*Gt323*gt33L + Gt111*(Gt112*gt13L +
+ Gt212*gt23L + Gt312*gt33L))*gtu21 + (Gt122*gt13L*Gt213 +
+ gt11L*Gt122*Gt233 + Gt212*gt22L*Gt233 + Gt113*Gt212*gt23L +
+ Gt213*Gt222*gt23L + 2*Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 +
+ Gt123*gt13L*Gt313 + Gt223*gt23L*Gt313 + gt13L*Gt233*Gt322 +
+ gt11L*Gt123*Gt333 + Gt212*gt23L*Gt333 + gt13L*Gt323*Gt333 +
+ Gt112*(2*gt11L*Gt133 + Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) +
+ gt12L*(2*Gt133*Gt212 + Gt222*Gt233 + Gt223*Gt333) + Gt113*Gt312*gt33L +
+ Gt213*Gt322*gt33L + Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu32 +
+ gtu21*(2*Gt123*gt12L*Gt211 + Gt112*gt13L*Gt212 + gt12L*Gt212*Gt223 +
+ Gt211*Gt223*gt22L + Gt112*Gt211*gt23L + 2*Gt123*gt13L*Gt311 +
+ Gt223*gt23L*Gt311 + Gt113*gt13L*Gt312 + gt13L*Gt223*Gt312 +
+ Gt213*gt23L*Gt312 + gt12L*Gt213*Gt323 + Gt211*gt23L*Gt323 +
+ gt13L*Gt313*Gt323 + gt11L*(2*Gt111*Gt123 + Gt112*Gt223 + Gt113*Gt323) +
+ Gt111*(Gt112*gt13L + gt12L*Gt223 + gt13L*Gt323) + Gt112*Gt311*gt33L +
+ Gt212*Gt312*gt33L + Gt312*Gt313*gt33L + Gt311*Gt323*gt33L +
+ gt23L*SQR(Gt212))) + 2*gtu32*(Gt123*gt13L*Gt212 + 2*Gt123*gt12L*Gt213 +
+ Gt113*gt12L*Gt223 + Gt213*Gt223*gt22L + Gt212*Gt223*gt23L +
+ Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + 2*Gt123*gt13L*Gt313 +
+ Gt223*gt23L*Gt313 + Gt113*gt13L*Gt323 + gt13L*Gt223*Gt323 +
+ gt12L*Gt233*Gt323 + Gt213*gt23L*Gt323 + gt11L*(2*Gt113*Gt123 +
+ Gt123*Gt223 + Gt133*Gt323) + gt13L*Gt323*Gt333 + Gt212*Gt323*gt33L +
+ Gt313*Gt323*gt33L + Gt312*Gt333*gt33L + Gt112*(Gt113*gt13L +
+ Gt213*gt23L + Gt313*gt33L) + gt12L*SQR(Gt223)) +
+ 2*gtu11*(2*Gt113*gt12L*Gt211 + Gt112*gt13L*Gt211 + gt12L*Gt212*Gt213 +
+ Gt211*Gt213*gt22L + Gt211*Gt212*gt23L + 3*Gt113*gt13L*Gt311 +
+ 2*Gt213*gt23L*Gt311 + gt13L*Gt213*Gt312 + gt12L*Gt213*Gt313 +
+ Gt211*gt23L*Gt313 + gt11L*(2*Gt111*Gt113 + Gt112*Gt213 + Gt113*Gt313) +
+ Gt211*Gt312*gt33L + 2*Gt311*Gt313*gt33L + Gt111*(gt12L*Gt213 +
+ Gt211*gt23L + gt13L*Gt313 + Gt311*gt33L) + gt13L*SQR(Gt111) +
+ gt13L*SQR(Gt313)) + 2*gtu31*(Gt112*gt13L*Gt213 + Gt112*gt11L*Gt233 +
+ Gt211*gt22L*Gt233 + Gt113*Gt211*gt23L + Gt212*Gt213*gt23L +
+ 2*Gt133*gt13L*Gt311 + Gt233*gt23L*Gt311 + gt13L*Gt233*Gt312 +
+ Gt113*gt13L*Gt313 + Gt213*gt23L*Gt313 + Gt113*gt11L*Gt333 +
+ Gt211*gt23L*Gt333 + gt13L*Gt313*Gt333 + Gt111*(2*gt11L*Gt133 +
+ Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) + gt12L*(2*Gt133*Gt211 +
+ Gt212*Gt233 + Gt213*Gt333) + Gt113*Gt311*gt33L + Gt213*Gt312*gt33L +
+ Gt311*Gt333*gt33L + gt33L*SQR(Gt313)) + 2*gtu31*(Gt123*gt13L*Gt211 +
+ 3*Gt113*gt12L*Gt213 + gt12L*Gt213*Gt223 + Gt211*Gt223*gt23L +
+ Gt133*gt13L*Gt311 + Gt233*gt23L*Gt311 + 3*Gt113*gt13L*Gt313 +
+ gt12L*Gt233*Gt313 + 2*Gt213*gt23L*Gt313 + gt13L*Gt213*Gt323 +
+ gt13L*Gt313*Gt333 + Gt211*Gt323*gt33L + Gt311*Gt333*gt33L +
+ Gt111*(Gt113*gt13L + Gt213*gt23L + Gt313*gt33L) + gt11L*(Gt123*Gt213 +
+ Gt133*Gt313 + 2*SQR(Gt113)) + gt22L*SQR(Gt213) + gt33L*SQR(Gt313)) +
+ 2*gtu22*(2*Gt123*gt12L*Gt212 + Gt122*gt13L*Gt212 + gt12L*Gt222*Gt223 +
+ Gt212*Gt223*gt22L + Gt212*Gt222*gt23L + 3*Gt123*gt13L*Gt312 +
+ 2*Gt223*gt23L*Gt312 + gt13L*Gt223*Gt322 + gt12L*Gt223*Gt323 +
+ Gt212*gt23L*Gt323 + gt11L*(2*Gt112*Gt123 + Gt122*Gt223 + Gt123*Gt323) +
+ Gt212*Gt322*gt33L + 2*Gt312*Gt323*gt33L + Gt112*(gt12L*Gt223 +
+ Gt212*gt23L + gt13L*Gt323 + Gt312*gt33L) + gt13L*SQR(Gt112) +
+ gt13L*SQR(Gt323)) + 2*gtu33*(2*gt12L*Gt133*Gt213 + Gt123*gt13L*Gt213 +
+ gt11L*Gt123*Gt233 + gt12L*Gt223*Gt233 + Gt213*gt22L*Gt233 +
+ Gt213*Gt223*gt23L + 3*Gt133*gt13L*Gt313 + 2*Gt233*gt23L*Gt313 +
+ gt13L*Gt233*Gt323 + gt11L*Gt133*Gt333 + gt12L*Gt233*Gt333 +
+ Gt213*gt23L*Gt333 + Gt213*Gt323*gt33L + 2*Gt313*Gt333*gt33L +
+ Gt113*(2*gt11L*Gt133 + gt12L*Gt233 + Gt213*gt23L + gt13L*Gt333 +
+ Gt313*gt33L) + gt13L*SQR(Gt113) + gt13L*SQR(Gt333)));
+
+ CCTK_REAL Rt22 = 4*(Gt122*gt12L*Gt212*gtu21 + Gt112*gt12L*Gt222*gtu21
+ + Gt122*gt12L*Gt222*gtu22 + Gt123*gt12L*Gt212*gtu31 +
+ Gt123*gt12L*Gt222*gtu32 + Gt123*gt12L*Gt223*gtu33) -
+ gtu11*khalf*PDstandardNth11gt22 + gtu21*(6*Gt212*Gt222*gt22L +
+ 2*Gt122*gt23L*Gt311 + 2*Gt122*gt13L*Gt312 + 4*Gt222*gt23L*Gt312 +
+ 2*Gt113*gt12L*Gt322 + 2*gt23L*Gt312*Gt323 + 2*Gt312*Gt322*gt33L -
+ PDstandardNth12gt22) + gtu31*(6*Gt212*Gt223*gt22L + 2*Gt123*gt13L*Gt312
+ + 2*Gt112*gt23L*Gt313 + 2*Gt113*gt12L*Gt323 + 2*gt23L*Gt312*Gt333 +
+ 2*Gt312*Gt323*gt33L - PDstandardNth13gt22) -
+ gtu22*khalf*PDstandardNth22gt22 + gtu32*(4*Gt122*gt12L*Gt223 +
+ 2*Gt123*Gt212*gt22L + 2*gt12L*Gt133*Gt322 + 4*Gt223*gt23L*Gt322 +
+ 2*Gt123*gt12L*Gt323 + 4*Gt222*gt23L*Gt323 + 2*gt23L*Gt322*Gt333 +
+ 2*Gt322*Gt323*gt33L - PDstandardNth23gt22) + gt12L*(2*Gt111*Gt123*gtu31
+ + 4*Gt112*Gt223*gtu31 + 2*Gt113*Gt122*gtu32 + 2*Gt113*Gt123*gtu33 +
+ PDstandardNth2Xt1) + gt22L*(2*Gt122*Gt213*gtu32 + 6*Gt222*Gt223*gtu32 +
+ 2*Gt123*Gt213*gtu33 + PDstandardNth2Xt2) + gt23L*(4*Gt212*Gt322*gtu21 +
+ 2*Gt313*Gt322*gtu21 + 4*Gt222*Gt322*gtu22 + 2*Gt123*Gt311*gtu31 +
+ 4*Gt212*Gt323*gtu31 + 2*Gt313*Gt323*gtu31 + 2*Gt122*Gt313*gtu32 +
+ 2*Gt123*Gt313*gtu33 + 4*Gt223*Gt323*gtu33 + 2*Gt323*Gt333*gtu33 +
+ PDstandardNth2Xt3) - gtu33*khalf*PDstandardNth33gt22 + Gt212*gt22L*Xtn1
+ + Gt112*(2*Gt111*gt12L*gtu11 + 4*gt12L*Gt212*gtu11 +
+ 2*gt11L*Gt122*gtu21 + 2*Gt122*gt12L*gtu22 + 2*gt11L*Gt123*gtu31 +
+ 2*Gt123*gt12L*gtu32 + gt12L*Xtn1) + Gt312*(2*Gt213*gt22L*gtu11 +
+ 4*Gt212*gt23L*gtu11 + 2*gt23L*Gt313*gtu11 + 2*Gt123*gt12L*gtu21 +
+ 2*Gt122*gt23L*gtu22 + 2*gt12L*Gt133*gtu31 + 2*gt22L*Gt233*gtu31 +
+ 4*Gt223*gt23L*gtu31 + 2*Gt123*gt23L*gtu32 + gt23L*Xtn1) +
+ Gt122*gt12L*Xtn2 + Gt222*gt22L*Xtn2 + gt23L*Gt322*Xtn2 +
+ Gt123*gt12L*Xtn3 + Gt223*gt22L*Xtn3 + gt23L*Gt323*Xtn3 +
+ gt11L*gtu11*SQR(Gt112) + 2*(Gt112*Gt211*gt22L*gtu11 +
+ Gt112*gt23L*Gt311*gtu11 + Gt113*gt12L*Gt312*gtu11 +
+ Gt112*gt13L*Gt312*gtu11 + Gt111*Gt122*gt12L*gtu21 +
+ Gt122*Gt211*gt22L*gtu21 + Gt112*Gt212*gt22L*gtu21 +
+ Gt223*gt22L*Gt312*gtu21 + Gt112*gt23L*Gt312*gtu21 +
+ Gt112*gt13L*Gt322*gtu21 + Gt213*gt22L*Gt322*gtu21 +
+ Gt122*Gt212*gt22L*gtu22 + Gt123*gt12L*Gt322*gtu22 +
+ Gt122*gt13L*Gt322*gtu22 + Gt223*gt22L*Gt322*gtu22 +
+ gt23L*Gt322*Gt323*gtu22 + Gt112*Gt113*gt12L*gtu31 +
+ Gt123*Gt211*gt22L*gtu31 + Gt112*Gt213*gt22L*gtu31 +
+ Gt112*gt13L*Gt323*gtu31 + Gt213*gt22L*Gt323*gtu31 +
+ gt11L*Gt122*Gt123*gtu32 + Gt123*gt13L*Gt322*gtu32 +
+ gt22L*Gt233*Gt322*gtu32 + Gt122*gt13L*Gt323*gtu32 +
+ Gt223*gt22L*Gt323*gtu32 + gt12L*Gt133*Gt323*gtu33 +
+ Gt123*gt13L*Gt323*gtu33 + gt22L*Gt233*Gt323*gtu33 +
+ gt12L*gtu21*SQR(Gt112)) + gt11L*gtu22*SQR(Gt122) +
+ gt11L*gtu33*SQR(Gt123) + 3*gt22L*gtu11*SQR(Gt212) +
+ 3*gt22L*gtu22*SQR(Gt222) + 3*gt22L*gtu33*SQR(Gt223) +
+ gt33L*gtu11*SQR(Gt312) + gt33L*gtu22*SQR(Gt322) +
+ 2*gt23L*gtu32*SQR(Gt323) + gt33L*gtu33*SQR(Gt323);
+
+ CCTK_REAL Rt23 = khalf*(-(gtu11*PDstandardNth11gt23) -
+ 2*gtu21*PDstandardNth12gt23 - 2*gtu31*PDstandardNth13gt23 -
+ gtu22*PDstandardNth22gt23 - 2*gtu32*PDstandardNth23gt23 +
+ gt13L*PDstandardNth2Xt1 + gt23L*PDstandardNth2Xt2 +
+ gt33L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt23 +
+ gt12L*PDstandardNth3Xt1 + gt22L*PDstandardNth3Xt2 +
+ gt23L*PDstandardNth3Xt3 + (Gt113*gt12L + Gt213*gt22L +
+ gt23L*Gt313)*Xtn1 + (Gt112*gt13L + Gt212*gt23L + Gt312*gt33L)*Xtn1 +
+ (Gt123*gt12L + Gt223*gt22L + gt23L*Gt323)*Xtn2 + (Gt122*gt13L +
+ Gt222*gt23L + Gt322*gt33L)*Xtn2 + (gt12L*Gt133 + gt22L*Gt233 +
+ gt23L*Gt333)*Xtn3 + (Gt123*gt13L + Gt223*gt23L + Gt323*gt33L)*Xtn3 +
+ 2*((Gt112*gt11L*Gt123 + Gt111*Gt123*gt12L + Gt111*Gt122*gt13L +
+ Gt123*gt12L*Gt212 + Gt112*gt13L*Gt222 + 2*Gt112*gt12L*Gt223 +
+ Gt123*Gt211*gt22L + 2*Gt212*Gt223*gt22L + Gt122*Gt211*gt23L +
+ Gt212*Gt222*gt23L + Gt123*gt23L*Gt311 + Gt123*gt13L*Gt312 +
+ 2*Gt223*gt23L*Gt312 + Gt113*gt13L*Gt322 + Gt213*gt23L*Gt322 +
+ Gt113*gt12L*Gt323 + Gt112*gt13L*Gt323 + Gt213*gt22L*Gt323 +
+ Gt212*gt23L*Gt323 + gt23L*Gt313*Gt323 + Gt122*Gt311*gt33L +
+ Gt222*Gt312*gt33L + Gt313*Gt322*gt33L + Gt312*Gt323*gt33L)*gtu21 +
+ (Gt112*gt11L*Gt133 + Gt111*gt12L*Gt133 + Gt111*Gt123*gt13L +
+ gt12L*Gt133*Gt212 + Gt112*gt13L*Gt223 + Gt133*Gt211*gt22L +
+ 2*Gt112*gt12L*Gt233 + 2*Gt212*gt22L*Gt233 + Gt123*Gt211*gt23L +
+ Gt212*Gt223*gt23L + Gt133*gt23L*Gt311 + Gt133*gt13L*Gt312 +
+ 2*Gt233*gt23L*Gt312 + Gt113*gt13L*Gt323 + Gt213*gt23L*Gt323 +
+ Gt113*gt12L*Gt333 + Gt112*gt13L*Gt333 + Gt213*gt22L*Gt333 +
+ Gt212*gt23L*Gt333 + gt23L*Gt313*Gt333 + Gt123*Gt311*gt33L +
+ Gt223*Gt312*gt33L + Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu31 +
+ gtu21*(Gt113*gt11L*Gt122 + Gt122*gt13L*Gt212 + 2*Gt122*gt12L*Gt213 +
+ Gt113*gt12L*Gt222 + Gt113*Gt212*gt22L + 2*Gt213*Gt222*gt22L +
+ Gt212*Gt222*gt23L + Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 +
+ Gt223*gt23L*Gt312 + Gt123*gt12L*Gt313 + Gt122*gt13L*Gt313 +
+ Gt223*gt22L*Gt313 + Gt222*gt23L*Gt313 + Gt113*gt13L*Gt322 +
+ 2*Gt213*gt23L*Gt322 + gt23L*Gt313*Gt323 + Gt212*Gt322*gt33L +
+ Gt313*Gt322*gt33L + Gt312*Gt323*gt33L + Gt112*(Gt113*gt12L +
+ Gt212*gt23L + Gt312*gt33L) + gt13L*SQR(Gt112))) +
+ 2*gtu31*(2*Gt213*Gt223*gt22L + Gt112*Gt213*gt23L + Gt212*Gt223*gt23L +
+ Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + gt12L*Gt133*Gt313 +
+ gt22L*Gt233*Gt313 + Gt223*gt23L*Gt313 + Gt123*(2*gt12L*Gt213 +
+ gt13L*(Gt212 + Gt313)) + 2*Gt213*gt23L*Gt323 + Gt113*(gt11L*Gt123 +
+ Gt112*gt13L + gt12L*Gt223 + Gt213*gt22L + gt23L*Gt313 + gt13L*Gt323) +
+ gt23L*Gt313*Gt333 + Gt112*Gt313*gt33L + Gt212*Gt323*gt33L +
+ Gt313*Gt323*gt33L + Gt312*Gt333*gt33L + gt12L*SQR(Gt113)) +
+ 2*gtu11*(Gt112*Gt113*gt11L + Gt111*Gt113*gt12L + Gt111*Gt112*gt13L +
+ Gt113*gt12L*Gt212 + Gt112*gt13L*Gt212 + 2*Gt112*gt12L*Gt213 +
+ Gt113*Gt211*gt22L + 2*Gt212*Gt213*gt22L + Gt112*Gt211*gt23L +
+ Gt113*gt23L*Gt311 + 2*Gt113*gt13L*Gt312 + 3*Gt213*gt23L*Gt312 +
+ Gt113*gt12L*Gt313 + Gt112*gt13L*Gt313 + Gt213*gt22L*Gt313 +
+ Gt212*gt23L*Gt313 + Gt112*Gt311*gt33L + Gt212*Gt312*gt33L +
+ 2*Gt312*Gt313*gt33L + gt23L*SQR(Gt212) + gt23L*SQR(Gt313)) +
+ 2*gtu22*(gt11L*Gt122*Gt123 + Gt112*Gt123*gt12L + Gt112*Gt122*gt13L +
+ Gt123*gt12L*Gt222 + Gt122*gt13L*Gt222 + 2*Gt122*gt12L*Gt223 +
+ Gt123*Gt212*gt22L + 2*Gt222*Gt223*gt22L + Gt122*Gt212*gt23L +
+ Gt123*gt23L*Gt312 + 2*Gt123*gt13L*Gt322 + 3*Gt223*gt23L*Gt322 +
+ Gt123*gt12L*Gt323 + Gt122*gt13L*Gt323 + Gt223*gt22L*Gt323 +
+ Gt222*gt23L*Gt323 + Gt122*Gt312*gt33L + Gt222*Gt322*gt33L +
+ 2*Gt322*Gt323*gt33L + gt23L*SQR(Gt222) + gt23L*SQR(Gt323)) +
+ 2*gtu32*(gt11L*Gt122*Gt133 + Gt112*gt12L*Gt133 + Gt112*Gt123*gt13L +
+ gt12L*Gt133*Gt222 + Gt122*gt13L*Gt223 + Gt133*Gt212*gt22L +
+ 2*Gt122*gt12L*Gt233 + 2*Gt222*gt22L*Gt233 + Gt123*Gt212*gt23L +
+ Gt222*Gt223*gt23L + Gt133*gt23L*Gt312 + Gt133*gt13L*Gt322 +
+ 2*Gt233*gt23L*Gt322 + Gt123*gt13L*Gt323 + Gt223*gt23L*Gt323 +
+ Gt123*gt12L*Gt333 + Gt122*gt13L*Gt333 + Gt223*gt22L*Gt333 +
+ Gt222*gt23L*Gt333 + gt23L*Gt323*Gt333 + Gt123*Gt312*gt33L +
+ Gt223*Gt322*gt33L + Gt322*Gt333*gt33L + gt33L*SQR(Gt323)) +
+ 2*gtu32*(Gt113*Gt123*gt12L + Gt113*Gt122*gt13L + Gt123*gt13L*Gt222 +
+ 3*Gt123*gt12L*Gt223 + Gt123*Gt213*gt22L + Gt122*Gt213*gt23L +
+ Gt222*Gt223*gt23L + Gt123*gt23L*Gt313 + Gt133*gt13L*Gt322 +
+ Gt233*gt23L*Gt322 + gt12L*Gt133*Gt323 + 2*Gt123*gt13L*Gt323 +
+ gt22L*Gt233*Gt323 + 3*Gt223*gt23L*Gt323 + gt23L*Gt323*Gt333 +
+ Gt122*Gt313*gt33L + Gt222*Gt323*gt33L + Gt322*Gt333*gt33L +
+ gt11L*SQR(Gt123) + 2*gt22L*SQR(Gt223) + gt33L*SQR(Gt323)) +
+ 2*gtu33*(gt11L*Gt123*Gt133 + Gt113*gt12L*Gt133 + Gt113*Gt123*gt13L +
+ gt12L*Gt133*Gt223 + Gt123*gt13L*Gt223 + Gt133*Gt213*gt22L +
+ 2*Gt123*gt12L*Gt233 + 2*Gt223*gt22L*Gt233 + Gt123*Gt213*gt23L +
+ Gt133*gt23L*Gt313 + 2*Gt133*gt13L*Gt323 + 3*Gt233*gt23L*Gt323 +
+ gt12L*Gt133*Gt333 + Gt123*gt13L*Gt333 + gt22L*Gt233*Gt333 +
+ Gt223*gt23L*Gt333 + Gt123*Gt313*gt33L + Gt223*Gt323*gt33L +
+ 2*Gt323*Gt333*gt33L + gt23L*SQR(Gt223) + gt23L*SQR(Gt333)));
+
+ CCTK_REAL Rt33 = 4*(Gt123*gt13L*Gt323*gtu22 + Gt223*gt23L*Gt323*gtu22
+ + Gt133*gt13L*Gt313*gtu31 + Gt233*gt23L*Gt313*gtu31 +
+ Gt113*gt13L*Gt333*gtu31 + Gt133*gt13L*Gt323*gtu32 +
+ Gt233*gt23L*Gt323*gtu32 + Gt123*gt13L*Gt333*gtu32 +
+ Gt133*gt13L*Gt333*gtu33) + gtu21*(2*Gt212*Gt223*gt23L +
+ 4*Gt123*gt13L*Gt313 + 4*Gt223*gt23L*Gt313 + 4*Gt113*gt13L*Gt323 +
+ 4*Gt213*gt23L*Gt323 + 2*Gt123*Gt311*gt33L - PDstandardNth12gt33) +
+ gtu31*(4*Gt213*gt23L*Gt333 + 2*Gt233*Gt312*gt33L + 6*Gt313*Gt333*gt33L
+ - PDstandardNth13gt33) - gtu22*khalf*PDstandardNth22gt33 +
+ gtu32*(4*Gt223*gt23L*Gt333 + 2*Gt123*Gt313*gt33L + 6*Gt323*Gt333*gt33L
+ - PDstandardNth23gt33) - gtu33*khalf*PDstandardNth33gt33 +
+ gt13L*PDstandardNth3Xt1 + gt23L*PDstandardNth3Xt2 +
+ gt33L*(2*Gt213*Gt322*gtu21 + 6*Gt313*Gt323*gtu21 + 2*Gt123*Gt312*gtu22
+ + 2*Gt133*Gt311*gtu31 + 2*Gt133*Gt312*gtu32 + 2*Gt133*Gt313*gtu33 +
+ PDstandardNth3Xt3) + Gt113*gt13L*Xtn1 + Gt213*gt23L*Xtn1 +
+ Gt313*gt33L*Xtn1 + Gt123*gt13L*Xtn2 + Gt223*gt23L*Xtn2 +
+ Gt323*gt33L*Xtn2 + Gt133*gt13L*Xtn3 + Gt333*gt33L*Xtn3 +
+ Gt233*(4*gt23L*Gt333*gtu33 + 2*Gt323*gt33L*gtu33 + gt23L*Xtn3) +
+ gtu11*(2*Gt212*Gt213*gt23L + 4*Gt113*gt13L*Gt313 + 4*Gt213*gt23L*Gt313
+ + 2*Gt113*Gt311*gt33L + 2*Gt213*Gt312*gt33L - khalf*PDstandardNth11gt33
+ + gt11L*SQR(Gt113)) + 2*(Gt111*Gt113*gt13L*gtu11 +
+ Gt113*gt12L*Gt213*gtu11 + Gt112*gt13L*Gt213*gtu11 +
+ Gt113*Gt211*gt23L*gtu11 + Gt113*gt11L*Gt123*gtu21 +
+ Gt112*Gt113*gt13L*gtu21 + Gt111*Gt123*gt13L*gtu21 +
+ Gt123*gt12L*Gt213*gtu21 + Gt122*gt13L*Gt213*gtu21 +
+ Gt113*gt12L*Gt223*gtu21 + Gt112*gt13L*Gt223*gtu21 +
+ Gt213*Gt223*gt22L*gtu21 + Gt123*Gt211*gt23L*gtu21 +
+ Gt113*Gt212*gt23L*gtu21 + Gt213*Gt222*gt23L*gtu21 +
+ Gt113*Gt312*gt33L*gtu21 + Gt223*Gt312*gt33L*gtu21 +
+ Gt112*Gt123*gt13L*gtu22 + Gt123*gt12L*Gt223*gtu22 +
+ Gt122*gt13L*Gt223*gtu22 + Gt123*Gt212*gt23L*gtu22 +
+ Gt222*Gt223*gt23L*gtu22 + Gt223*Gt322*gt33L*gtu22 +
+ Gt113*gt11L*Gt133*gtu31 + Gt111*Gt133*gt13L*gtu31 +
+ gt12L*Gt133*Gt213*gtu31 + Gt123*gt13L*Gt213*gtu31 +
+ Gt113*gt12L*Gt233*gtu31 + Gt112*gt13L*Gt233*gtu31 +
+ Gt213*gt22L*Gt233*gtu31 + Gt133*Gt211*gt23L*gtu31 +
+ Gt113*Gt213*gt23L*gtu31 + Gt213*Gt223*gt23L*gtu31 +
+ Gt212*Gt233*gt23L*gtu31 + Gt113*Gt313*gt33L*gtu31 +
+ Gt213*Gt323*gt33L*gtu31 + gt11L*Gt123*Gt133*gtu32 +
+ Gt113*Gt123*gt13L*gtu32 + Gt112*Gt133*gt13L*gtu32 +
+ gt12L*Gt133*Gt223*gtu32 + Gt123*gt13L*Gt223*gtu32 +
+ Gt123*gt12L*Gt233*gtu32 + Gt122*gt13L*Gt233*gtu32 +
+ Gt223*gt22L*Gt233*gtu32 + Gt133*Gt212*gt23L*gtu32 +
+ Gt123*Gt213*gt23L*gtu32 + Gt222*Gt233*gt23L*gtu32 +
+ Gt233*Gt322*gt33L*gtu32 + Gt223*Gt323*gt33L*gtu32 +
+ Gt113*Gt133*gt13L*gtu33 + gt12L*Gt133*Gt233*gtu33 +
+ Gt123*gt13L*Gt233*gtu33 + Gt133*Gt213*gt23L*gtu33 +
+ Gt223*Gt233*gt23L*gtu33 + gt13L*gtu31*SQR(Gt113)) +
+ gt11L*gtu22*SQR(Gt123) + gt11L*gtu33*SQR(Gt133) +
+ gt22L*gtu11*SQR(Gt213) + gt22L*gtu22*SQR(Gt223) +
+ 2*gt23L*gtu32*SQR(Gt223) + gt22L*gtu33*SQR(Gt233) +
+ 3*gt33L*gtu11*SQR(Gt313) + 3*gt33L*gtu22*SQR(Gt323) +
+ 3*gt33L*gtu33*SQR(Gt333);
+
+ CCTK_REAL fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
+
+ CCTK_REAL cdphi1 = fac1*PDstandardNth1phi;
+
+ CCTK_REAL cdphi2 = fac1*PDstandardNth2phi;
+
+ CCTK_REAL cdphi3 = fac1*PDstandardNth3phi;
+
+ CCTK_REAL fac2 = IfThen(conformalMethod,khalf*pow(phiL,-2),0);
+
+ CCTK_REAL cdphi211 = -(fac1*(-PDstandardNth11phi +
+ Gt111*PDstandardNth1phi + Gt211*PDstandardNth2phi +
+ Gt311*PDstandardNth3phi)) + fac2*SQR(PDstandardNth1phi);
+
+ CCTK_REAL cdphi212 = fac2*PDstandardNth1phi*PDstandardNth2phi -
+ fac1*(-PDstandardNth12phi + Gt112*PDstandardNth1phi +
+ Gt212*PDstandardNth2phi + Gt312*PDstandardNth3phi);
+
+ CCTK_REAL cdphi213 = fac2*PDstandardNth1phi*PDstandardNth3phi -
+ fac1*(-PDstandardNth13phi + Gt113*PDstandardNth1phi +
+ Gt213*PDstandardNth2phi + Gt313*PDstandardNth3phi);
+
+ CCTK_REAL cdphi222 = -(fac1*(Gt122*PDstandardNth1phi -
+ PDstandardNth22phi + Gt222*PDstandardNth2phi +
+ Gt322*PDstandardNth3phi)) + fac2*SQR(PDstandardNth2phi);
+
+ CCTK_REAL cdphi223 = fac2*PDstandardNth2phi*PDstandardNth3phi -
+ fac1*(Gt123*PDstandardNth1phi - PDstandardNth23phi +
+ Gt223*PDstandardNth2phi + Gt323*PDstandardNth3phi);
+
+ CCTK_REAL cdphi233 = -(fac1*(Gt133*PDstandardNth1phi +
+ Gt233*PDstandardNth2phi - PDstandardNth33phi +
+ Gt333*PDstandardNth3phi)) + fac2*SQR(PDstandardNth3phi);
- CCTK_REAL const Rphi12 = -2*(cdphi212 + cdphi1*(cdphi2*(-2 + 4*gt12L*gtu21) + 4*cdphi3*gt12L*gtu31) +
- gt12L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32 +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) +
- gtu33*(cdphi233 + 2*SQR(cdphi3))));
+ CCTK_REAL Rphi11 = -2*(cdphi211 + 2*(-1 + gt11L*gtu11)*SQR(cdphi1) +
+ gt11L*(cdphi211*gtu11 + 4*(cdphi1*(cdphi2*gtu21 + cdphi3*gtu31) +
+ cdphi2*cdphi3*gtu32) + cdphi233*gtu33 + gtu22*(cdphi222 +
+ 2*SQR(cdphi2)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu33*SQR(cdphi3))));
- CCTK_REAL const Rphi13 = -2*(cdphi213 + cdphi1*(4*cdphi2*gt13L*gtu21 + cdphi3*(-2 + 4*gt13L*gtu31)) +
- gt13L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32 +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) +
- gtu33*(cdphi233 + 2*SQR(cdphi3))));
+ CCTK_REAL Rphi12 = -2*(cdphi212 + cdphi1*(cdphi2*(-2 + 4*gt12L*gtu21)
+ + 4*cdphi3*gt12L*gtu31) + gt12L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32
+ + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) + gtu33*(cdphi233
+ + 2*SQR(cdphi3))));
- CCTK_REAL const Rphi22 = -2*(cdphi222 + 2*(-1 + gt22L*gtu22)*SQR(cdphi2) +
- gt22L*(cdphi222*gtu22 + 4*(cdphi1*cdphi3*gtu31 + cdphi2*(cdphi1*gtu21 + cdphi3*gtu32)) + cdphi233*gtu33 +
- gtu11*(cdphi211 + 2*SQR(cdphi1)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu33*SQR(cdphi3))));
+ CCTK_REAL Rphi13 = -2*(cdphi213 + cdphi1*(4*cdphi2*gt13L*gtu21 +
+ cdphi3*(-2 + 4*gt13L*gtu31)) + gt13L*(cdphi211*gtu11 +
+ 4*cdphi2*cdphi3*gtu32 + 2*(cdphi212*gtu21 + cdphi213*gtu31 +
+ cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2))
+ + gtu33*(cdphi233 + 2*SQR(cdphi3))));
- CCTK_REAL const Rphi23 = -2*(cdphi223 + cdphi2*(4*cdphi1*gt23L*gtu21 + cdphi3*(-2 + 4*gt23L*gtu32)) +
- gt23L*(cdphi222*gtu22 + 4*cdphi1*cdphi3*gtu31 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu22*SQR(cdphi2)) + gtu33*(cdphi233 + 2*SQR(cdphi3))));
+ CCTK_REAL Rphi22 = -2*(cdphi222 + 2*(-1 + gt22L*gtu22)*SQR(cdphi2) +
+ gt22L*(cdphi222*gtu22 + 4*(cdphi1*cdphi3*gtu31 + cdphi2*(cdphi1*gtu21 +
+ cdphi3*gtu32)) + cdphi233*gtu33 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
+ 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu33*SQR(cdphi3))));
- CCTK_REAL const Rphi33 = -2*(cdphi233 + gt33L*((4*cdphi1*cdphi2 + 2*cdphi212)*gtu21 + 4*cdphi3*(cdphi1*gtu31 + cdphi2*gtu32) +
- 2*(cdphi213*gtu31 + cdphi223*gtu32) + cdphi233*gtu33 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
- gtu22*(cdphi222 + 2*SQR(cdphi2))) + 2*(-1 + gt33L*gtu33)*SQR(cdphi3));
+ CCTK_REAL Rphi23 = -2*(cdphi223 + cdphi2*(4*cdphi1*gt23L*gtu21 +
+ cdphi3*(-2 + 4*gt23L*gtu32)) + gt23L*(cdphi222*gtu22 +
+ 4*cdphi1*cdphi3*gtu31 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
+ 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu22*SQR(cdphi2)) + gtu33*(cdphi233 + 2*SQR(cdphi3))));
- CCTK_REAL const Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
+ CCTK_REAL Rphi33 = -2*(cdphi233 + gt33L*((4*cdphi1*cdphi2 +
+ 2*cdphi212)*gtu21 + 4*cdphi3*(cdphi1*gtu31 + cdphi2*gtu32) +
+ 2*(cdphi213*gtu31 + cdphi223*gtu32) + cdphi233*gtu33 + gtu11*(cdphi211
+ + 2*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2))) + 2*(-1 +
+ gt33L*gtu33)*SQR(cdphi3));
- CCTK_REAL const Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
+ CCTK_REAL Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
- CCTK_REAL const Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
+ CCTK_REAL Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
- CCTK_REAL const Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
+ CCTK_REAL Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
- CCTK_REAL const Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
+ CCTK_REAL Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
- CCTK_REAL const Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
+ CCTK_REAL Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
- CCTK_REAL const Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
+ CCTK_REAL Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
- CCTK_REAL const Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
+ CCTK_REAL Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
- CCTK_REAL const Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
+ CCTK_REAL Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
- CCTK_REAL const Atu11 = Atm11*gtu11 + Atm12*gtu21 + Atm13*gtu31;
+ CCTK_REAL Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
- CCTK_REAL const Atu21 = Atm11*gtu21 + Atm12*gtu22 + Atm13*gtu32;
+ CCTK_REAL Atu11 = Atm11*gtu11 + Atm12*gtu21 + Atm13*gtu31;
- CCTK_REAL const Atu31 = Atm11*gtu31 + Atm12*gtu32 + Atm13*gtu33;
+ CCTK_REAL Atu21 = Atm11*gtu21 + Atm12*gtu22 + Atm13*gtu32;
- CCTK_REAL const Atu22 = Atm21*gtu21 + Atm22*gtu22 + Atm23*gtu32;
+ CCTK_REAL Atu31 = Atm11*gtu31 + Atm12*gtu32 + Atm13*gtu33;
- CCTK_REAL const Atu32 = Atm21*gtu31 + Atm22*gtu32 + Atm23*gtu33;
+ CCTK_REAL Atu22 = Atm21*gtu21 + Atm22*gtu22 + Atm23*gtu32;
- CCTK_REAL const Atu33 = Atm31*gtu31 + Atm32*gtu32 + Atm33*gtu33;
+ CCTK_REAL Atu32 = Atm21*gtu31 + Atm22*gtu32 + Atm23*gtu33;
- CCTK_REAL const e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
+ CCTK_REAL Atu33 = Atm31*gtu31 + Atm32*gtu32 + Atm33*gtu33;
- CCTK_REAL const em4phi = INV(e4phi);
+ CCTK_REAL e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
- CCTK_REAL const g11 = e4phi*gt11L;
+ CCTK_REAL em4phi = INV(e4phi);
- CCTK_REAL const g12 = e4phi*gt12L;
+ CCTK_REAL g11 = e4phi*gt11L;
- CCTK_REAL const g13 = e4phi*gt13L;
+ CCTK_REAL g12 = e4phi*gt12L;
- CCTK_REAL const g22 = e4phi*gt22L;
+ CCTK_REAL g13 = e4phi*gt13L;
- CCTK_REAL const g23 = e4phi*gt23L;
+ CCTK_REAL g22 = e4phi*gt22L;
- CCTK_REAL const g33 = e4phi*gt33L;
+ CCTK_REAL g23 = e4phi*gt23L;
- CCTK_REAL const gu11 = em4phi*gtu11;
+ CCTK_REAL g33 = e4phi*gt33L;
- CCTK_REAL const gu21 = em4phi*gtu21;
+ CCTK_REAL gu11 = em4phi*gtu11;
- CCTK_REAL const gu31 = em4phi*gtu31;
+ CCTK_REAL gu21 = em4phi*gtu21;
- CCTK_REAL const gu22 = em4phi*gtu22;
+ CCTK_REAL gu31 = em4phi*gtu31;
- CCTK_REAL const gu32 = em4phi*gtu32;
+ CCTK_REAL gu22 = em4phi*gtu22;
- CCTK_REAL const gu33 = em4phi*gtu33;
+ CCTK_REAL gu32 = em4phi*gtu32;
- CCTK_REAL const G111 = Gt111 + cdphi1*(4 - 2*gt11L*gtu11) - 2*gt11L*(cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL gu33 = em4phi*gtu33;
- CCTK_REAL const G211 = Gt211 - 2*gt11L*(cdphi1*gtu21 + cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL G111 = Gt111 + cdphi1*(4 - 2*gt11L*gtu11) -
+ 2*gt11L*(cdphi2*gtu21 + cdphi3*gtu31);
- CCTK_REAL const G311 = Gt311 - 2*gt11L*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G211 = Gt211 - 2*gt11L*(cdphi1*gtu21 + cdphi2*gtu22 +
+ cdphi3*gtu32);
- CCTK_REAL const G112 = Gt112 + cdphi2*(2 - 2*gt12L*gtu21) - 2*gt12L*(cdphi1*gtu11 + cdphi3*gtu31);
+ CCTK_REAL G311 = Gt311 - 2*gt11L*(cdphi1*gtu31 + cdphi2*gtu32 +
+ cdphi3*gtu33);
- CCTK_REAL const G212 = Gt212 + cdphi1*(2 - 2*gt12L*gtu21) - 2*gt12L*(cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL G112 = Gt112 + cdphi2*(2 - 2*gt12L*gtu21) -
+ 2*gt12L*(cdphi1*gtu11 + cdphi3*gtu31);
- CCTK_REAL const G312 = Gt312 - 2*gt12L*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G212 = Gt212 + cdphi1*(2 - 2*gt12L*gtu21) -
+ 2*gt12L*(cdphi2*gtu22 + cdphi3*gtu32);
- CCTK_REAL const G113 = Gt113 - 2*gt13L*(cdphi1*gtu11 + cdphi2*gtu21) + cdphi3*(2 - 2*gt13L*gtu31);
+ CCTK_REAL G312 = Gt312 - 2*gt12L*(cdphi1*gtu31 + cdphi2*gtu32 +
+ cdphi3*gtu33);
- CCTK_REAL const G213 = Gt213 - 2*gt13L*(cdphi1*gtu21 + cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL G113 = Gt113 - 2*gt13L*(cdphi1*gtu11 + cdphi2*gtu21) +
+ cdphi3*(2 - 2*gt13L*gtu31);
- CCTK_REAL const G313 = Gt313 + cdphi1*(2 - 2*gt13L*gtu31) - 2*gt13L*(cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G213 = Gt213 - 2*gt13L*(cdphi1*gtu21 + cdphi2*gtu22 +
+ cdphi3*gtu32);
- CCTK_REAL const G122 = Gt122 - 2*gt22L*(cdphi1*gtu11 + cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL G313 = Gt313 + cdphi1*(2 - 2*gt13L*gtu31) -
+ 2*gt13L*(cdphi2*gtu32 + cdphi3*gtu33);
- CCTK_REAL const G222 = Gt222 + cdphi2*(4 - 2*gt22L*gtu22) - 2*gt22L*(cdphi1*gtu21 + cdphi3*gtu32);
+ CCTK_REAL G122 = Gt122 - 2*gt22L*(cdphi1*gtu11 + cdphi2*gtu21 +
+ cdphi3*gtu31);
- CCTK_REAL const G322 = Gt322 - 2*gt22L*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G222 = Gt222 + cdphi2*(4 - 2*gt22L*gtu22) -
+ 2*gt22L*(cdphi1*gtu21 + cdphi3*gtu32);
- CCTK_REAL const G123 = Gt123 - 2*gt23L*(cdphi1*gtu11 + cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL G322 = Gt322 - 2*gt22L*(cdphi1*gtu31 + cdphi2*gtu32 +
+ cdphi3*gtu33);
- CCTK_REAL const G223 = Gt223 - 2*gt23L*(cdphi1*gtu21 + cdphi2*gtu22) + cdphi3*(2 - 2*gt23L*gtu32);
+ CCTK_REAL G123 = Gt123 - 2*gt23L*(cdphi1*gtu11 + cdphi2*gtu21 +
+ cdphi3*gtu31);
- CCTK_REAL const G323 = Gt323 + cdphi2*(2 - 2*gt23L*gtu32) - 2*gt23L*(cdphi1*gtu31 + cdphi3*gtu33);
+ CCTK_REAL G223 = Gt223 - 2*gt23L*(cdphi1*gtu21 + cdphi2*gtu22) +
+ cdphi3*(2 - 2*gt23L*gtu32);
- CCTK_REAL const G133 = Gt133 - 2*gt33L*(cdphi1*gtu11 + cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL G323 = Gt323 + cdphi2*(2 - 2*gt23L*gtu32) -
+ 2*gt23L*(cdphi1*gtu31 + cdphi3*gtu33);
- CCTK_REAL const G233 = Gt233 - 2*gt33L*(cdphi1*gtu21 + cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL G133 = Gt133 - 2*gt33L*(cdphi1*gtu11 + cdphi2*gtu21 +
+ cdphi3*gtu31);
- CCTK_REAL const G333 = Gt333 - 2*gt33L*(cdphi1*gtu31 + cdphi2*gtu32) + cdphi3*(4 - 2*gt33L*gtu33);
+ CCTK_REAL G233 = Gt233 - 2*gt33L*(cdphi1*gtu21 + cdphi2*gtu22 +
+ cdphi3*gtu32);
- CCTK_REAL const R11 = Rphi11 + Rt11;
+ CCTK_REAL G333 = Gt333 - 2*gt33L*(cdphi1*gtu31 + cdphi2*gtu32) +
+ cdphi3*(4 - 2*gt33L*gtu33);
- CCTK_REAL const R12 = Rphi12 + Rt12;
+ CCTK_REAL R11 = Rphi11 + Rt11;
- CCTK_REAL const R13 = Rphi13 + Rt13;
+ CCTK_REAL R12 = Rphi12 + Rt12;
- CCTK_REAL const R22 = Rphi22 + Rt22;
+ CCTK_REAL R13 = Rphi13 + Rt13;
- CCTK_REAL const R23 = Rphi23 + Rt23;
+ CCTK_REAL R22 = Rphi22 + Rt22;
- CCTK_REAL const R33 = Rphi33 + Rt33;
+ CCTK_REAL R23 = Rphi23 + Rt23;
- CCTK_REAL const rho = pow(alphaL,-2)*(eTttL - 2*(beta2L*eTtyL + beta3L*eTtzL) +
- 2*(beta1L*(-eTtxL + beta2L*eTxyL + beta3L*eTxzL) + beta2L*beta3L*eTyzL) + eTxxL*SQR(beta1L) + eTyyL*SQR(beta2L) +
- eTzzL*SQR(beta3L));
+ CCTK_REAL R33 = Rphi33 + Rt33;
- CCTK_REAL const S1 = (-eTtxL + beta1L*eTxxL + beta2L*eTxyL + beta3L*eTxzL)*INV(alphaL);
+ CCTK_REAL rho = pow(alphaL,-2)*(eTttL - 2*(beta2L*eTtyL +
+ beta3L*eTtzL) + 2*(beta1L*(-eTtxL + beta2L*eTxyL + beta3L*eTxzL) +
+ beta2L*beta3L*eTyzL) + eTxxL*SQR(beta1L) + eTyyL*SQR(beta2L) +
+ eTzzL*SQR(beta3L));
- CCTK_REAL const S2 = (-eTtyL + beta1L*eTxyL + beta2L*eTyyL + beta3L*eTyzL)*INV(alphaL);
+ CCTK_REAL S1 = (-eTtxL + beta1L*eTxxL + beta2L*eTxyL +
+ beta3L*eTxzL)*INV(alphaL);
- CCTK_REAL const S3 = (-eTtzL + beta1L*eTxzL + beta2L*eTyzL + beta3L*eTzzL)*INV(alphaL);
+ CCTK_REAL S2 = (-eTtyL + beta1L*eTxyL + beta2L*eTyyL +
+ beta3L*eTyzL)*INV(alphaL);
- CCTK_REAL const trS = eTxxL*gu11 + eTyyL*gu22 + 2*(eTxyL*gu21 + eTxzL*gu31 + eTyzL*gu32) + eTzzL*gu33;
-
- CCTK_REAL const phirhsL = PDupwindNth1(phi, i, j, k)*beta1L + PDupwindNth2(phi, i, j, k)*beta2L +
- PDupwindNth3(phi, i, j, k)*beta3L + (PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3)*
- IfThen(conformalMethod,-(kthird*phiL),0.16666666666666666) +
- alphaL*trKL*IfThen(conformalMethod,kthird*phiL,-0.16666666666666666);
-
- CCTK_REAL const gt11rhsL = -2*alphaL*At11L + PDupwindNth1(gt11, i, j, k)*beta1L + PDupwindNth2(gt11, i, j, k)*beta2L +
- PDupwindNth3(gt11, i, j, k)*beta3L + 2*(gt12L*PDstandardNth1beta2 + gt13L*PDstandardNth1beta3) +
- gt11L*(kfourthird*PDstandardNth1beta1 - ktwothird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
-
- CCTK_REAL const gt12rhsL = -2*alphaL*At12L + PDupwindNth1(gt12, i, j, k)*beta1L + PDupwindNth2(gt12, i, j, k)*beta2L +
- PDupwindNth3(gt12, i, j, k)*beta3L + gt22L*PDstandardNth1beta2 + gt23L*PDstandardNth1beta3 +
- gt11L*PDstandardNth2beta1 + gt13L*PDstandardNth2beta3 +
- gt12L*(kthird*(PDstandardNth1beta1 + PDstandardNth2beta2) - ktwothird*PDstandardNth3beta3);
-
- CCTK_REAL const gt13rhsL = -2*alphaL*At13L + PDupwindNth1(gt13, i, j, k)*beta1L + PDupwindNth2(gt13, i, j, k)*beta2L +
- PDupwindNth3(gt13, i, j, k)*beta3L + gt23L*PDstandardNth1beta2 + gt33L*PDstandardNth1beta3 +
- gt11L*PDstandardNth3beta1 + gt12L*PDstandardNth3beta2 +
- gt13L*(-(ktwothird*PDstandardNth2beta2) + kthird*(PDstandardNth1beta1 + PDstandardNth3beta3));
-
- CCTK_REAL const gt22rhsL = -2*alphaL*At22L + PDupwindNth1(gt22, i, j, k)*beta1L + PDupwindNth2(gt22, i, j, k)*beta2L +
- PDupwindNth3(gt22, i, j, k)*beta3L + 2*(gt12L*PDstandardNth2beta1 + gt23L*PDstandardNth2beta3) +
- gt22L*(-(ktwothird*PDstandardNth1beta1) + kfourthird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
-
- CCTK_REAL const gt23rhsL = -2*alphaL*At23L + PDupwindNth1(gt23, i, j, k)*beta1L + PDupwindNth2(gt23, i, j, k)*beta2L +
- PDupwindNth3(gt23, i, j, k)*beta3L + gt13L*PDstandardNth2beta1 + gt33L*PDstandardNth2beta3 +
- gt12L*PDstandardNth3beta1 + gt22L*PDstandardNth3beta2 +
- gt23L*(-(ktwothird*PDstandardNth1beta1) + kthird*(PDstandardNth2beta2 + PDstandardNth3beta3));
-
- CCTK_REAL const gt33rhsL = -2*alphaL*At33L + PDupwindNth1(gt33, i, j, k)*beta1L + PDupwindNth2(gt33, i, j, k)*beta2L +
- PDupwindNth3(gt33, i, j, k)*beta3L - gt33L*ktwothird*PDstandardNth1beta1 - gt33L*ktwothird*PDstandardNth2beta2 +
- 2*gt13L*PDstandardNth3beta1 + 2*gt23L*PDstandardNth3beta2 + gt33L*kfourthird*PDstandardNth3beta3;
-
- CCTK_REAL const Xt1rhsL = kthird*(7*(gtu21*PDstandardNth12beta1 + gtu31*PDstandardNth13beta1) +
- gtu11*(4*PDstandardNth11beta1 + PDstandardNth12beta2 + PDstandardNth13beta3) +
- gtu21*(PDstandardNth22beta2 + PDstandardNth23beta3) +
- 3*(PDupwindNth1(Xt1, i, j, k)*beta1L + PDupwindNth2(Xt1, i, j, k)*beta2L +
- PDupwindNth3(Xt1, i, j, k)*beta3L + gtu22*PDstandardNth22beta1 + gtu33*PDstandardNth33beta1) +
- gtu31*(PDstandardNth23beta2 + PDstandardNth33beta3) -
- 6*(Atu11*PDstandardNth1alpha + Atu21*PDstandardNth2alpha + Atu31*PDstandardNth3alpha) +
- 6*(gtu32*PDstandardNth23beta1 + alphaL*(6*(Atu11*cdphi1 + Atu21*cdphi2 + Atu31*cdphi3) + Atu11*Gt111 +
- Atu22*Gt122 + 2*(Atu21*Gt112 + Atu31*Gt113 + Atu32*Gt123) + Atu33*Gt133 -
- ktwothird*(gtu11*PDstandardNth1trK + gtu21*PDstandardNth2trK + gtu31*PDstandardNth3trK))) -
- 150.7964473723100754462068823974161384415*alphaL*(gtu11*S1 + gtu21*S2 + gtu31*S3) +
- (-3*PDstandardNth1beta1 + 2*(PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3))*Xtn1 -
- 3*(PDstandardNth2beta1*Xtn2 + PDstandardNth3beta1*Xtn3));
-
- CCTK_REAL const Xt2rhsL = kthird*(gtu21*(PDstandardNth11beta1 + 7*PDstandardNth12beta2 + PDstandardNth13beta3) +
- gtu22*(PDstandardNth12beta1 + 4*PDstandardNth22beta2 + PDstandardNth23beta3) +
- 3*(PDupwindNth1(Xt2, i, j, k)*beta1L + PDupwindNth2(Xt2, i, j, k)*beta2L +
- PDupwindNth3(Xt2, i, j, k)*beta3L + gtu11*PDstandardNth11beta2 + gtu33*PDstandardNth33beta2) +
- gtu32*(PDstandardNth13beta1 + 7*PDstandardNth23beta2 + PDstandardNth33beta3) -
- 6*(Atu21*PDstandardNth1alpha + Atu22*PDstandardNth2alpha + Atu32*PDstandardNth3alpha) +
- 6*(gtu31*PDstandardNth13beta2 + alphaL*(6*(Atu21*cdphi1 + Atu22*cdphi2 + Atu32*cdphi3) + Atu11*Gt211 +
- Atu22*Gt222 + 2*(Atu21*Gt212 + Atu31*Gt213 + Atu32*Gt223) + Atu33*Gt233 -
- ktwothird*(gtu21*PDstandardNth1trK + gtu22*PDstandardNth2trK + gtu32*PDstandardNth3trK))) -
- 150.7964473723100754462068823974161384415*alphaL*(gtu21*S1 + gtu22*S2 + gtu32*S3) +
- 2*(PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3)*Xtn2 -
- 3*(PDstandardNth1beta2*Xtn1 + PDstandardNth2beta2*Xtn2 + PDstandardNth3beta2*Xtn3));
-
- CCTK_REAL const Xt3rhsL = kthird*(gtu31*(PDstandardNth11beta1 + PDstandardNth12beta2 + 7*PDstandardNth13beta3) +
- 3*(PDupwindNth1(Xt3, i, j, k)*beta1L + PDupwindNth2(Xt3, i, j, k)*beta2L +
- PDupwindNth3(Xt3, i, j, k)*beta3L + gtu11*PDstandardNth11beta3 + gtu22*PDstandardNth22beta3) +
- gtu32*(PDstandardNth12beta1 + PDstandardNth22beta2 + 7*PDstandardNth23beta3) +
- gtu33*(PDstandardNth13beta1 + PDstandardNth23beta2 + 4*PDstandardNth33beta3) -
- 6*(Atu31*PDstandardNth1alpha + Atu32*PDstandardNth2alpha + Atu33*PDstandardNth3alpha) +
- 6*(gtu21*PDstandardNth12beta3 + alphaL*(6*(Atu31*cdphi1 + Atu32*cdphi2 + Atu33*cdphi3) + Atu11*Gt311 +
- Atu22*Gt322 + 2*(Atu21*Gt312 + Atu31*Gt313 + Atu32*Gt323) + Atu33*Gt333 -
- ktwothird*(gtu31*PDstandardNth1trK + gtu32*PDstandardNth2trK + gtu33*PDstandardNth3trK))) -
- 150.7964473723100754462068823974161384415*alphaL*(gtu31*S1 + gtu32*S2 + gtu33*S3) +
- 2*(PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3)*Xtn3 -
- 3*(PDstandardNth1beta3*Xtn1 + PDstandardNth2beta3*Xtn2 + PDstandardNth3beta3*Xtn3));
-
- CCTK_REAL const trKrhsL = PDupwindNth1(trK, i, j, k)*beta1L + PDupwindNth2(trK, i, j, k)*beta2L +
- PDupwindNth3(trK, i, j, k)*beta3L + (G111*gu11 + G122*gu22 + 2.*(G112*gu21 + G113*gu31 + G123*gu32) + G133*gu33)*
- PDstandardNth1alpha - 2.*(gu21*PDstandardNth12alpha + gu31*PDstandardNth13alpha + gu32*PDstandardNth23alpha) +
- (G211*gu11 + G222*gu22 + 2.*(G212*gu21 + G213*gu31 + G223*gu32) + G233*gu33)*PDstandardNth2alpha -
- 1.*(gu11*PDstandardNth11alpha + gu22*PDstandardNth22alpha + gu33*PDstandardNth33alpha) +
- (G311*gu11 + G322*gu22 + 2.*(G313*gu31 + G323*gu32) + G333*gu33)*PDstandardNth3alpha +
- 2.*(alphaL*(Atm12*Atm21 + Atm13*Atm31 + Atm23*Atm32) + G312*gu21*PDstandardNth3alpha) +
- alphaL*(12.56637061435917295385057353311801153679*(rho + trS) + SQR(Atm11) + SQR(Atm22) + SQR(Atm33) +
- 0.3333333333333333333333333333333333333333*SQR(trKL));
-
- CCTK_REAL const Ats11 = -PDstandardNth11alpha + G111*PDstandardNth1alpha + G211*PDstandardNth2alpha + G311*PDstandardNth3alpha +
- alphaL*R11;
-
- CCTK_REAL const Ats12 = -PDstandardNth12alpha + G112*PDstandardNth1alpha + G212*PDstandardNth2alpha + G312*PDstandardNth3alpha +
- alphaL*R12;
-
- CCTK_REAL const Ats13 = -PDstandardNth13alpha + G113*PDstandardNth1alpha + G213*PDstandardNth2alpha + G313*PDstandardNth3alpha +
- alphaL*R13;
-
- CCTK_REAL const Ats22 = G122*PDstandardNth1alpha - PDstandardNth22alpha + G222*PDstandardNth2alpha + G322*PDstandardNth3alpha +
- alphaL*R22;
-
- CCTK_REAL const Ats23 = G123*PDstandardNth1alpha - PDstandardNth23alpha + G223*PDstandardNth2alpha + G323*PDstandardNth3alpha +
- alphaL*R23;
-
- CCTK_REAL const Ats33 = G133*PDstandardNth1alpha + G233*PDstandardNth2alpha - PDstandardNth33alpha + G333*PDstandardNth3alpha +
- alphaL*R33;
-
- CCTK_REAL const trAts = Ats11*gu11 + Ats22*gu22 + 2*(Ats12*gu21 + Ats13*gu31 + Ats23*gu32) + Ats33*gu33;
-
- CCTK_REAL const At11rhsL = -2.*alphaL*(At11L*Atm11 + At12L*Atm21 + At13L*Atm31) + PDupwindNth1(At11, i, j, k)*beta1L +
- PDupwindNth2(At11, i, j, k)*beta2L + PDupwindNth3(At11, i, j, k)*beta3L +
- 2.*(At12L*PDstandardNth1beta2 + At13L*PDstandardNth1beta3) +
- At11L*(1.333333333333333333333333333333333333333*PDstandardNth1beta1 -
- 0.6666666666666666666666666666666666666667*(PDstandardNth2beta2 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats11 - 0.3333333333333333333333333333333333333333*g11*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTxxL + 8.377580409572781969233715688745341024526*g11*trS));
-
- CCTK_REAL const At12rhsL = -2.*alphaL*(At11L*Atm12 + At12L*Atm22 + At13L*Atm32) + PDupwindNth1(At12, i, j, k)*beta1L +
- PDupwindNth2(At12, i, j, k)*beta2L + PDupwindNth3(At12, i, j, k)*beta3L + At22L*PDstandardNth1beta2 +
- At23L*PDstandardNth1beta3 + At11L*PDstandardNth2beta1 + At13L*PDstandardNth2beta3 +
- At12L*(0.3333333333333333333333333333333333333333*(PDstandardNth1beta1 + PDstandardNth2beta2) -
- 0.6666666666666666666666666666666666666667*PDstandardNth3beta3 + alphaL*trKL) +
- em4phi*(Ats12 - 0.3333333333333333333333333333333333333333*g12*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTxyL + 8.377580409572781969233715688745341024526*g12*trS));
-
- CCTK_REAL const At13rhsL = -2.*alphaL*(At11L*Atm13 + At12L*Atm23 + At13L*Atm33) + PDupwindNth1(At13, i, j, k)*beta1L +
- PDupwindNth2(At13, i, j, k)*beta2L + PDupwindNth3(At13, i, j, k)*beta3L + At23L*PDstandardNth1beta2 +
- At33L*PDstandardNth1beta3 + At11L*PDstandardNth3beta1 + At12L*PDstandardNth3beta2 +
- At13L*(-0.6666666666666666666666666666666666666667*PDstandardNth2beta2 +
- 0.3333333333333333333333333333333333333333*(PDstandardNth1beta1 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats13 - 0.3333333333333333333333333333333333333333*g13*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTxzL + 8.377580409572781969233715688745341024526*g13*trS));
-
- CCTK_REAL const At22rhsL = -2.*alphaL*(At12L*Atm12 + At22L*Atm22 + At23L*Atm32) + PDupwindNth1(At22, i, j, k)*beta1L +
- PDupwindNth2(At22, i, j, k)*beta2L + PDupwindNth3(At22, i, j, k)*beta3L +
- 2.*(At12L*PDstandardNth2beta1 + At23L*PDstandardNth2beta3) +
- At22L*(1.333333333333333333333333333333333333333*PDstandardNth2beta2 -
- 0.6666666666666666666666666666666666666667*(PDstandardNth1beta1 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats22 - 0.3333333333333333333333333333333333333333*g22*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTyyL + 8.377580409572781969233715688745341024526*g22*trS));
-
- CCTK_REAL const At23rhsL = -2.*alphaL*(At12L*Atm13 + At22L*Atm23 + At23L*Atm33) + PDupwindNth1(At23, i, j, k)*beta1L +
- PDupwindNth2(At23, i, j, k)*beta2L + PDupwindNth3(At23, i, j, k)*beta3L + At13L*PDstandardNth2beta1 +
- At33L*PDstandardNth2beta3 + At12L*PDstandardNth3beta1 + At22L*PDstandardNth3beta2 +
- At23L*(-0.6666666666666666666666666666666666666667*PDstandardNth1beta1 +
- 0.3333333333333333333333333333333333333333*(PDstandardNth2beta2 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats23 - 0.3333333333333333333333333333333333333333*g23*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTyzL + 8.377580409572781969233715688745341024526*g23*trS));
-
- CCTK_REAL const At33rhsL = -2.*alphaL*(At13L*Atm13 + At23L*Atm23 + At33L*Atm33) + PDupwindNth1(At33, i, j, k)*beta1L +
- PDupwindNth2(At33, i, j, k)*beta2L + PDupwindNth3(At33, i, j, k)*beta3L +
- 2.*(At13L*PDstandardNth3beta1 + At23L*PDstandardNth3beta2) +
- At33L*(-0.6666666666666666666666666666666666666667*(PDstandardNth1beta1 + PDstandardNth2beta2) +
- 1.333333333333333333333333333333333333333*PDstandardNth3beta3 + alphaL*trKL) +
- em4phi*(Ats33 - 0.3333333333333333333333333333333333333333*g33*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTzzL + 8.377580409572781969233715688745341024526*g33*trS));
-
- CCTK_REAL const alpharhsL = (PDupwindNth1(alpha, i, j, k)*beta1L + PDupwindNth2(alpha, i, j, k)*beta2L +
- PDupwindNth3(alpha, i, j, k)*beta3L)*LapseAdvectionCoeff +
- harmonicF*(AL*(-1 + LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
-
- CCTK_REAL const ArhsL = (-1 + LapseAdvectionCoeff)*(AL*AlphaDriver - trKrhsL);
-
- CCTK_REAL const eta = BetaDriver*IfThen(rL > SpatialBetaDriverRadius,SpatialBetaDriverRadius*INV(rL),1);
-
- CCTK_REAL const beta1rhsL = (PDupwindNth1(beta1, i, j, k)*beta1L + PDupwindNth2(beta1, i, j, k)*beta2L +
- PDupwindNth3(beta1, i, j, k)*beta3L)*ShiftAdvectionCoeff + B1L*ShiftGammaCoeff;
-
- CCTK_REAL const beta2rhsL = (PDupwindNth1(beta2, i, j, k)*beta1L + PDupwindNth2(beta2, i, j, k)*beta2L +
- PDupwindNth3(beta2, i, j, k)*beta3L)*ShiftAdvectionCoeff + B2L*ShiftGammaCoeff;
-
- CCTK_REAL const beta3rhsL = (PDupwindNth1(beta3, i, j, k)*beta1L + PDupwindNth2(beta3, i, j, k)*beta2L +
- PDupwindNth3(beta3, i, j, k)*beta3L)*ShiftAdvectionCoeff + B3L*ShiftGammaCoeff;
-
- CCTK_REAL const B1rhsL = -(B1L*eta) + ((PDupwindNth1(B1, i, j, k) - PDupwindNth1(Xt1, i, j, k))*beta1L +
- (PDupwindNth2(B1, i, j, k) - PDupwindNth2(Xt1, i, j, k))*beta2L +
- (PDupwindNth3(B1, i, j, k) - PDupwindNth3(Xt1, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt1rhsL;
-
- CCTK_REAL const B2rhsL = -(B2L*eta) + ((PDupwindNth1(B2, i, j, k) - PDupwindNth1(Xt2, i, j, k))*beta1L +
- (PDupwindNth2(B2, i, j, k) - PDupwindNth2(Xt2, i, j, k))*beta2L +
- (PDupwindNth3(B2, i, j, k) - PDupwindNth3(Xt2, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt2rhsL;
-
- CCTK_REAL const B3rhsL = -(B3L*eta) + ((PDupwindNth1(B3, i, j, k) - PDupwindNth1(Xt3, i, j, k))*beta1L +
- (PDupwindNth2(B3, i, j, k) - PDupwindNth2(Xt3, i, j, k))*beta2L +
- (PDupwindNth3(B3, i, j, k) - PDupwindNth3(Xt3, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt3rhsL;
+ CCTK_REAL S3 = (-eTtzL + beta1L*eTxzL + beta2L*eTyzL +
+ beta3L*eTzzL)*INV(alphaL);
+
+ CCTK_REAL trS = eTxxL*gu11 + eTyyL*gu22 + 2*(eTxyL*gu21 + eTxzL*gu31 +
+ eTyzL*gu32) + eTzzL*gu33;
+
+ CCTK_REAL phirhsL = PDupwindNth1(phi, i, j, k)*beta1L +
+ PDupwindNth2(phi, i, j, k)*beta2L + PDupwindNth3(phi, i, j,
+ k)*beta3L + (PDstandardNth1beta1 + PDstandardNth2beta2 +
+ PDstandardNth3beta3)*IfThen(conformalMethod,-(kthird*phiL),0.16666666666666666)
+ + alphaL*trKL*IfThen(conformalMethod,kthird*phiL,-0.16666666666666666);
+
+ CCTK_REAL gt11rhsL = -2*alphaL*At11L + PDupwindNth1(gt11, i, j,
+ k)*beta1L + PDupwindNth2(gt11, i, j, k)*beta2L + PDupwindNth3(gt11,
+ i, j, k)*beta3L + 2*(gt12L*PDstandardNth1beta2 +
+ gt13L*PDstandardNth1beta3) + gt11L*(kfourthird*PDstandardNth1beta1 -
+ ktwothird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
+
+ CCTK_REAL gt12rhsL = -2*alphaL*At12L + PDupwindNth1(gt12, i, j,
+ k)*beta1L + PDupwindNth2(gt12, i, j, k)*beta2L + PDupwindNth3(gt12,
+ i, j, k)*beta3L + gt22L*PDstandardNth1beta2 +
+ gt23L*PDstandardNth1beta3 + gt11L*PDstandardNth2beta1 +
+ gt13L*PDstandardNth2beta3 + gt12L*(kthird*(PDstandardNth1beta1 +
+ PDstandardNth2beta2) - ktwothird*PDstandardNth3beta3);
+
+ CCTK_REAL gt13rhsL = -2*alphaL*At13L + PDupwindNth1(gt13, i, j,
+ k)*beta1L + PDupwindNth2(gt13, i, j, k)*beta2L + PDupwindNth3(gt13,
+ i, j, k)*beta3L + gt23L*PDstandardNth1beta2 +
+ gt33L*PDstandardNth1beta3 + gt11L*PDstandardNth3beta1 +
+ gt12L*PDstandardNth3beta2 + gt13L*(-(ktwothird*PDstandardNth2beta2) +
+ kthird*(PDstandardNth1beta1 + PDstandardNth3beta3));
+
+ CCTK_REAL gt22rhsL = -2*alphaL*At22L + PDupwindNth1(gt22, i, j,
+ k)*beta1L + PDupwindNth2(gt22, i, j, k)*beta2L + PDupwindNth3(gt22,
+ i, j, k)*beta3L + 2*(gt12L*PDstandardNth2beta1 +
+ gt23L*PDstandardNth2beta3) + gt22L*(-(ktwothird*PDstandardNth1beta1) +
+ kfourthird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
+
+ CCTK_REAL gt23rhsL = -2*alphaL*At23L + PDupwindNth1(gt23, i, j,
+ k)*beta1L + PDupwindNth2(gt23, i, j, k)*beta2L + PDupwindNth3(gt23,
+ i, j, k)*beta3L + gt13L*PDstandardNth2beta1 +
+ gt33L*PDstandardNth2beta3 + gt12L*PDstandardNth3beta1 +
+ gt22L*PDstandardNth3beta2 + gt23L*(-(ktwothird*PDstandardNth1beta1) +
+ kthird*(PDstandardNth2beta2 + PDstandardNth3beta3));
+
+ CCTK_REAL gt33rhsL = -2*alphaL*At33L + PDupwindNth1(gt33, i, j,
+ k)*beta1L + PDupwindNth2(gt33, i, j, k)*beta2L + PDupwindNth3(gt33,
+ i, j, k)*beta3L - gt33L*ktwothird*PDstandardNth1beta1 -
+ gt33L*ktwothird*PDstandardNth2beta2 + 2*gt13L*PDstandardNth3beta1 +
+ 2*gt23L*PDstandardNth3beta2 + gt33L*kfourthird*PDstandardNth3beta3;
+
+ Xt1rhsL = kthird*(7*(gtu21*PDstandardNth12beta1 +
+ gtu31*PDstandardNth13beta1) + gtu11*(4*PDstandardNth11beta1 +
+ PDstandardNth12beta2 + PDstandardNth13beta3) +
+ gtu21*(PDstandardNth22beta2 + PDstandardNth23beta3) +
+ 3*(PDupwindNth1(Xt1, i, j, k)*beta1L + PDupwindNth2(Xt1, i, j,
+ k)*beta2L + PDupwindNth3(Xt1, i, j, k)*beta3L +
+ gtu22*PDstandardNth22beta1 + gtu33*PDstandardNth33beta1) +
+ gtu31*(PDstandardNth23beta2 + PDstandardNth33beta3) -
+ 6*(Atu11*PDstandardNth1alpha + Atu21*PDstandardNth2alpha +
+ Atu31*PDstandardNth3alpha) + 6*(gtu32*PDstandardNth23beta1 +
+ alphaL*(6*(Atu11*cdphi1 + Atu21*cdphi2 + Atu31*cdphi3) + Atu11*Gt111 +
+ Atu22*Gt122 + 2*(Atu21*Gt112 + Atu31*Gt113 + Atu32*Gt123) + Atu33*Gt133
+ - ktwothird*(gtu11*PDstandardNth1trK + gtu21*PDstandardNth2trK +
+ gtu31*PDstandardNth3trK))) -
+ 150.7964473723100754462068823974161384415*alphaL*(gtu11*S1 + gtu21*S2 +
+ gtu31*S3) + (-3*PDstandardNth1beta1 + 2*(PDstandardNth1beta1 +
+ PDstandardNth2beta2 + PDstandardNth3beta3))*Xtn1 -
+ 3*(PDstandardNth2beta1*Xtn2 + PDstandardNth3beta1*Xtn3));
+
+ Xt2rhsL = kthird*(gtu21*(PDstandardNth11beta1 + 7*PDstandardNth12beta2
+ + PDstandardNth13beta3) + gtu22*(PDstandardNth12beta1 +
+ 4*PDstandardNth22beta2 + PDstandardNth23beta3) + 3*(PDupwindNth1(Xt2,
+ i, j, k)*beta1L + PDupwindNth2(Xt2, i, j, k)*beta2L +
+ PDupwindNth3(Xt2, i, j, k)*beta3L + gtu11*PDstandardNth11beta2 +
+ gtu33*PDstandardNth33beta2) + gtu32*(PDstandardNth13beta1 +
+ 7*PDstandardNth23beta2 + PDstandardNth33beta3) -
+ 6*(Atu21*PDstandardNth1alpha + Atu22*PDstandardNth2alpha +
+ Atu32*PDstandardNth3alpha) + 6*(gtu31*PDstandardNth13beta2 +
+ alphaL*(6*(Atu21*cdphi1 + Atu22*cdphi2 + Atu32*cdphi3) + Atu11*Gt211 +
+ Atu22*Gt222 + 2*(Atu21*Gt212 + Atu31*Gt213 + Atu32*Gt223) + Atu33*Gt233
+ - ktwothird*(gtu21*PDstandardNth1trK + gtu22*PDstandardNth2trK +
+ gtu32*PDstandardNth3trK))) -
+ 150.7964473723100754462068823974161384415*alphaL*(gtu21*S1 + gtu22*S2 +
+ gtu32*S3) + 2*(PDstandardNth1beta1 + PDstandardNth2beta2 +
+ PDstandardNth3beta3)*Xtn2 - 3*(PDstandardNth1beta2*Xtn1 +
+ PDstandardNth2beta2*Xtn2 + PDstandardNth3beta2*Xtn3));
+
+ Xt3rhsL = kthird*(gtu31*(PDstandardNth11beta1 + PDstandardNth12beta2 +
+ 7*PDstandardNth13beta3) + 3*(PDupwindNth1(Xt3, i, j, k)*beta1L +
+ PDupwindNth2(Xt3, i, j, k)*beta2L + PDupwindNth3(Xt3, i, j,
+ k)*beta3L + gtu11*PDstandardNth11beta3 + gtu22*PDstandardNth22beta3) +
+ gtu32*(PDstandardNth12beta1 + PDstandardNth22beta2 +
+ 7*PDstandardNth23beta3) + gtu33*(PDstandardNth13beta1 +
+ PDstandardNth23beta2 + 4*PDstandardNth33beta3) -
+ 6*(Atu31*PDstandardNth1alpha + Atu32*PDstandardNth2alpha +
+ Atu33*PDstandardNth3alpha) + 6*(gtu21*PDstandardNth12beta3 +
+ alphaL*(6*(Atu31*cdphi1 + Atu32*cdphi2 + Atu33*cdphi3) + Atu11*Gt311 +
+ Atu22*Gt322 + 2*(Atu21*Gt312 + Atu31*Gt313 + Atu32*Gt323) + Atu33*Gt333
+ - ktwothird*(gtu31*PDstandardNth1trK + gtu32*PDstandardNth2trK +
+ gtu33*PDstandardNth3trK))) -
+ 150.7964473723100754462068823974161384415*alphaL*(gtu31*S1 + gtu32*S2 +
+ gtu33*S3) + 2*(PDstandardNth1beta1 + PDstandardNth2beta2 +
+ PDstandardNth3beta3)*Xtn3 - 3*(PDstandardNth1beta3*Xtn1 +
+ PDstandardNth2beta3*Xtn2 + PDstandardNth3beta3*Xtn3));
+
+ trKrhsL = PDupwindNth1(trK, i, j, k)*beta1L + PDupwindNth2(trK, i,
+ j, k)*beta2L + PDupwindNth3(trK, i, j, k)*beta3L + (G111*gu11 +
+ G122*gu22 + 2.*(G112*gu21 + G113*gu31 + G123*gu32) +
+ G133*gu33)*PDstandardNth1alpha - 2.*(gu21*PDstandardNth12alpha +
+ gu31*PDstandardNth13alpha + gu32*PDstandardNth23alpha) + (G211*gu11 +
+ G222*gu22 + 2.*(G212*gu21 + G213*gu31 + G223*gu32) +
+ G233*gu33)*PDstandardNth2alpha - 1.*(gu11*PDstandardNth11alpha +
+ gu22*PDstandardNth22alpha + gu33*PDstandardNth33alpha) + (G311*gu11 +
+ G322*gu22 + 2.*(G313*gu31 + G323*gu32) + G333*gu33)*PDstandardNth3alpha
+ + 2.*(alphaL*(Atm12*Atm21 + Atm13*Atm31 + Atm23*Atm32) +
+ G312*gu21*PDstandardNth3alpha) +
+ alphaL*(12.56637061435917295385057353311801153679*(rho + trS) +
+ SQR(Atm11) + SQR(Atm22) + SQR(Atm33) +
+ 0.3333333333333333333333333333333333333333*SQR(trKL));
+
+ CCTK_REAL Ats11 = -PDstandardNth11alpha + G111*PDstandardNth1alpha +
+ G211*PDstandardNth2alpha + G311*PDstandardNth3alpha + alphaL*R11;
+
+ CCTK_REAL Ats12 = -PDstandardNth12alpha + G112*PDstandardNth1alpha +
+ G212*PDstandardNth2alpha + G312*PDstandardNth3alpha + alphaL*R12;
+
+ CCTK_REAL Ats13 = -PDstandardNth13alpha + G113*PDstandardNth1alpha +
+ G213*PDstandardNth2alpha + G313*PDstandardNth3alpha + alphaL*R13;
+
+ CCTK_REAL Ats22 = G122*PDstandardNth1alpha - PDstandardNth22alpha +
+ G222*PDstandardNth2alpha + G322*PDstandardNth3alpha + alphaL*R22;
+
+ CCTK_REAL Ats23 = G123*PDstandardNth1alpha - PDstandardNth23alpha +
+ G223*PDstandardNth2alpha + G323*PDstandardNth3alpha + alphaL*R23;
+
+ CCTK_REAL Ats33 = G133*PDstandardNth1alpha + G233*PDstandardNth2alpha
+ - PDstandardNth33alpha + G333*PDstandardNth3alpha + alphaL*R33;
+
+ CCTK_REAL trAts = Ats11*gu11 + Ats22*gu22 + 2*(Ats12*gu21 + Ats13*gu31
+ + Ats23*gu32) + Ats33*gu33;
+
+ CCTK_REAL At11rhsL = -2.*alphaL*(At11L*Atm11 + At12L*Atm21 +
+ At13L*Atm31) + PDupwindNth1(At11, i, j, k)*beta1L +
+ PDupwindNth2(At11, i, j, k)*beta2L + PDupwindNth3(At11, i, j,
+ k)*beta3L + 2.*(At12L*PDstandardNth1beta2 + At13L*PDstandardNth1beta3)
+ + At11L*(1.333333333333333333333333333333333333333*PDstandardNth1beta1
+ - 0.6666666666666666666666666666666666666667*(PDstandardNth2beta2 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats11 -
+ 0.3333333333333333333333333333333333333333*g11*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTxxL +
+ 8.377580409572781969233715688745341024526*g11*trS));
+
+ CCTK_REAL At12rhsL = -2.*alphaL*(At11L*Atm12 + At12L*Atm22 +
+ At13L*Atm32) + PDupwindNth1(At12, i, j, k)*beta1L +
+ PDupwindNth2(At12, i, j, k)*beta2L + PDupwindNth3(At12, i, j,
+ k)*beta3L + At22L*PDstandardNth1beta2 + At23L*PDstandardNth1beta3 +
+ At11L*PDstandardNth2beta1 + At13L*PDstandardNth2beta3 +
+ At12L*(0.3333333333333333333333333333333333333333*(PDstandardNth1beta1
+ + PDstandardNth2beta2) -
+ 0.6666666666666666666666666666666666666667*PDstandardNth3beta3 +
+ alphaL*trKL) + em4phi*(Ats12 -
+ 0.3333333333333333333333333333333333333333*g12*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTxyL +
+ 8.377580409572781969233715688745341024526*g12*trS));
+
+ CCTK_REAL At13rhsL = -2.*alphaL*(At11L*Atm13 + At12L*Atm23 +
+ At13L*Atm33) + PDupwindNth1(At13, i, j, k)*beta1L +
+ PDupwindNth2(At13, i, j, k)*beta2L + PDupwindNth3(At13, i, j,
+ k)*beta3L + At23L*PDstandardNth1beta2 + At33L*PDstandardNth1beta3 +
+ At11L*PDstandardNth3beta1 + At12L*PDstandardNth3beta2 +
+ At13L*(-0.6666666666666666666666666666666666666667*PDstandardNth2beta2
+ + 0.3333333333333333333333333333333333333333*(PDstandardNth1beta1 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats13 -
+ 0.3333333333333333333333333333333333333333*g13*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTxzL +
+ 8.377580409572781969233715688745341024526*g13*trS));
+
+ CCTK_REAL At22rhsL = -2.*alphaL*(At12L*Atm12 + At22L*Atm22 +
+ At23L*Atm32) + PDupwindNth1(At22, i, j, k)*beta1L +
+ PDupwindNth2(At22, i, j, k)*beta2L + PDupwindNth3(At22, i, j,
+ k)*beta3L + 2.*(At12L*PDstandardNth2beta1 + At23L*PDstandardNth2beta3)
+ + At22L*(1.333333333333333333333333333333333333333*PDstandardNth2beta2
+ - 0.6666666666666666666666666666666666666667*(PDstandardNth1beta1 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats22 -
+ 0.3333333333333333333333333333333333333333*g22*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTyyL +
+ 8.377580409572781969233715688745341024526*g22*trS));
+
+ CCTK_REAL At23rhsL = -2.*alphaL*(At12L*Atm13 + At22L*Atm23 +
+ At23L*Atm33) + PDupwindNth1(At23, i, j, k)*beta1L +
+ PDupwindNth2(At23, i, j, k)*beta2L + PDupwindNth3(At23, i, j,
+ k)*beta3L + At13L*PDstandardNth2beta1 + At33L*PDstandardNth2beta3 +
+ At12L*PDstandardNth3beta1 + At22L*PDstandardNth3beta2 +
+ At23L*(-0.6666666666666666666666666666666666666667*PDstandardNth1beta1
+ + 0.3333333333333333333333333333333333333333*(PDstandardNth2beta2 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats23 -
+ 0.3333333333333333333333333333333333333333*g23*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTyzL +
+ 8.377580409572781969233715688745341024526*g23*trS));
+
+ CCTK_REAL At33rhsL = -2.*alphaL*(At13L*Atm13 + At23L*Atm23 +
+ At33L*Atm33) + PDupwindNth1(At33, i, j, k)*beta1L +
+ PDupwindNth2(At33, i, j, k)*beta2L + PDupwindNth3(At33, i, j,
+ k)*beta3L + 2.*(At13L*PDstandardNth3beta1 + At23L*PDstandardNth3beta2)
+ +
+ At33L*(-0.6666666666666666666666666666666666666667*(PDstandardNth1beta1
+ + PDstandardNth2beta2) +
+ 1.333333333333333333333333333333333333333*PDstandardNth3beta3 +
+ alphaL*trKL) + em4phi*(Ats33 -
+ 0.3333333333333333333333333333333333333333*g33*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTzzL +
+ 8.377580409572781969233715688745341024526*g33*trS));
+
+ CCTK_REAL alpharhsL = (PDupwindNth1(alpha, i, j, k)*beta1L +
+ PDupwindNth2(alpha, i, j, k)*beta2L + PDupwindNth3(alpha, i, j,
+ k)*beta3L)*LapseAdvectionCoeff + harmonicF*(AL*(-1 +
+ LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
+
+ CCTK_REAL ArhsL = (-1 + LapseAdvectionCoeff)*(AL*AlphaDriver -
+ trKrhsL);
+
+ CCTK_REAL eta = BetaDriver*IfThen(rL >
+ SpatialBetaDriverRadius,SpatialBetaDriverRadius*INV(rL),1);
+
+ CCTK_REAL beta1rhsL = (PDupwindNth1(beta1, i, j, k)*beta1L +
+ PDupwindNth2(beta1, i, j, k)*beta2L + PDupwindNth3(beta1, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B1L*ShiftGammaCoeff;
+
+ CCTK_REAL beta2rhsL = (PDupwindNth1(beta2, i, j, k)*beta1L +
+ PDupwindNth2(beta2, i, j, k)*beta2L + PDupwindNth3(beta2, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B2L*ShiftGammaCoeff;
+
+ CCTK_REAL beta3rhsL = (PDupwindNth1(beta3, i, j, k)*beta1L +
+ PDupwindNth2(beta3, i, j, k)*beta2L + PDupwindNth3(beta3, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B3L*ShiftGammaCoeff;
+
+ CCTK_REAL B1rhsL = -(B1L*eta) + ((PDupwindNth1(B1, i, j, k) -
+ PDupwindNth1(Xt1, i, j, k))*beta1L + (PDupwindNth2(B1, i, j, k) -
+ PDupwindNth2(Xt1, i, j, k))*beta2L + (PDupwindNth3(B1, i, j, k) -
+ PDupwindNth3(Xt1, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt1rhsL;
+
+ CCTK_REAL B2rhsL = -(B2L*eta) + ((PDupwindNth1(B2, i, j, k) -
+ PDupwindNth1(Xt2, i, j, k))*beta1L + (PDupwindNth2(B2, i, j, k) -
+ PDupwindNth2(Xt2, i, j, k))*beta2L + (PDupwindNth3(B2, i, j, k) -
+ PDupwindNth3(Xt2, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt2rhsL;
+
+ CCTK_REAL B3rhsL = -(B3L*eta) + ((PDupwindNth1(B3, i, j, k) -
+ PDupwindNth1(Xt3, i, j, k))*beta1L + (PDupwindNth2(B3, i, j, k) -
+ PDupwindNth2(Xt3, i, j, k))*beta2L + (PDupwindNth3(B3, i, j, k) -
+ PDupwindNth3(Xt3, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt3rhsL;
/* Copy local copies back to grid functions */
@@ -1139,8 +1318,6 @@ void ML_BSSN_RHS_Body(cGH const * restrict const cctkGH, int const dir, int cons
Xt1rhs[index] = Xt1rhsL;
Xt2rhs[index] = Xt2rhsL;
Xt3rhs[index] = Xt3rhsL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_RHS);
}
diff --git a/ML_BSSN/src/ML_BSSN_RHS1.c b/ML_BSSN/src/ML_BSSN_RHS1.c
index 23f9856..98f904a 100644
--- a/ML_BSSN/src/ML_BSSN_RHS1.c
+++ b/ML_BSSN/src/ML_BSSN_RHS1.c
@@ -28,20 +28,6 @@ void ML_BSSN_RHS1_Body(cGH const * restrict const cctkGH, int const dir, int con
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_RHS1_Body");
@@ -94,48 +80,7 @@ void ML_BSSN_RHS1_Body(cGH const * restrict const cctkGH, int const dir, int con
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL Atm11 = INITVALUE, Atm12 = INITVALUE, Atm13 = INITVALUE, Atm21 = INITVALUE, Atm22 = INITVALUE, Atm23 = INITVALUE;
- // CCTK_REAL Atm31 = INITVALUE, Atm32 = INITVALUE, Atm33 = INITVALUE;
- // CCTK_REAL Atu11 = INITVALUE, Atu21 = INITVALUE, Atu22 = INITVALUE, Atu31 = INITVALUE, Atu32 = INITVALUE, Atu33 = INITVALUE;
- // CCTK_REAL cdphi1 = INITVALUE, cdphi2 = INITVALUE, cdphi3 = INITVALUE;
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL dir1 = INITVALUE, dir2 = INITVALUE, dir3 = INITVALUE;
- // CCTK_REAL eta = INITVALUE;
- // CCTK_REAL fac1 = INITVALUE;
- // CCTK_REAL Gt111 = INITVALUE, Gt112 = INITVALUE, Gt113 = INITVALUE, Gt122 = INITVALUE, Gt123 = INITVALUE, Gt133 = INITVALUE;
- // CCTK_REAL Gt211 = INITVALUE, Gt212 = INITVALUE, Gt213 = INITVALUE, Gt222 = INITVALUE, Gt223 = INITVALUE, Gt233 = INITVALUE;
- // CCTK_REAL Gt311 = INITVALUE, Gt312 = INITVALUE, Gt313 = INITVALUE, Gt322 = INITVALUE, Gt323 = INITVALUE, Gt333 = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
- // CCTK_REAL S1 = INITVALUE, S2 = INITVALUE, S3 = INITVALUE;
- // CCTK_REAL Xtn1 = INITVALUE, Xtn2 = INITVALUE, Xtn3 = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At12L = INITVALUE, At13L = INITVALUE, At22L = INITVALUE, At23L = INITVALUE, At33L = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B1rhsL = INITVALUE, B2L = INITVALUE, B2rhsL = INITVALUE, B3L = INITVALUE, B3rhsL = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta1rhsL = INITVALUE, beta2L = INITVALUE, beta2rhsL = INITVALUE, beta3L = INITVALUE, beta3rhsL = INITVALUE;
- // CCTK_REAL eTtxL = INITVALUE;
- // CCTK_REAL eTtyL = INITVALUE;
- // CCTK_REAL eTtzL = INITVALUE;
- // CCTK_REAL eTxxL = INITVALUE;
- // CCTK_REAL eTxyL = INITVALUE;
- // CCTK_REAL eTxzL = INITVALUE;
- // CCTK_REAL eTyyL = INITVALUE;
- // CCTK_REAL eTyzL = INITVALUE;
- // CCTK_REAL eTzzL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt11rhsL = INITVALUE, gt12L = INITVALUE, gt12rhsL = INITVALUE, gt13L = INITVALUE, gt13rhsL = INITVALUE;
- // CCTK_REAL gt22L = INITVALUE, gt22rhsL = INITVALUE, gt23L = INITVALUE, gt23rhsL = INITVALUE, gt33L = INITVALUE, gt33rhsL = INITVALUE;
- // CCTK_REAL phiL = INITVALUE, phirhsL = INITVALUE;
- // CCTK_REAL rL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt1rhsL = INITVALUE, Xt2L = INITVALUE, Xt2rhsL = INITVALUE, Xt3L = INITVALUE, Xt3rhsL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
// CCTK_REAL PDstandardNth1alpha = INITVALUE;
// CCTK_REAL PDstandardNth2alpha = INITVALUE;
@@ -193,46 +138,47 @@ void ML_BSSN_RHS1_Body(cGH const * restrict const cctkGH, int const dir, int con
// CCTK_REAL PDstandardNth3trK = INITVALUE;
/* Assign local copies of grid functions */
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const B1L = B1[index];
- CCTK_REAL const B2L = B2[index];
- CCTK_REAL const B3L = B3[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
- CCTK_REAL const eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
- CCTK_REAL const eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
- CCTK_REAL const eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
- CCTK_REAL const eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
- CCTK_REAL const eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
- CCTK_REAL const eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
- CCTK_REAL const eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
- CCTK_REAL const eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
- CCTK_REAL const phiL = phi[index];
- CCTK_REAL const rL = r[index];
- CCTK_REAL const trKL = trK[index];
- CCTK_REAL const Xt1L = Xt1[index];
- CCTK_REAL const Xt2L = Xt2[index];
- CCTK_REAL const Xt3L = Xt3[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL B1L = B1[index];
+ CCTK_REAL B2L = B2[index];
+ CCTK_REAL B3L = B3[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
+ CCTK_REAL eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
+ CCTK_REAL eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
+ CCTK_REAL eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
+ CCTK_REAL eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
+ CCTK_REAL eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
+ CCTK_REAL eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
+ CCTK_REAL eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
+ CCTK_REAL eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL rL = r[index];
+ CCTK_REAL trKL = trK[index];
+ CCTK_REAL Xt1L = Xt1[index];
+ CCTK_REAL Xt1rhsL = Xt1rhs[index];
+ CCTK_REAL Xt2L = Xt2[index];
+ CCTK_REAL Xt2rhsL = Xt2rhs[index];
+ CCTK_REAL Xt3L = Xt3[index];
+ CCTK_REAL Xt3rhsL = Xt3rhs[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
+ /* Precompute derivatives */
CCTK_REAL const PDstandardNth1alpha = PDstandardNth1(alpha, i, j, k);
CCTK_REAL const PDstandardNth2alpha = PDstandardNth2(alpha, i, j, k);
CCTK_REAL const PDstandardNth3alpha = PDstandardNth3(alpha, i, j, k);
@@ -288,227 +234,284 @@ void ML_BSSN_RHS1_Body(cGH const * restrict const cctkGH, int const dir, int con
CCTK_REAL const PDstandardNth2trK = PDstandardNth2(trK, i, j, k);
CCTK_REAL const PDstandardNth3trK = PDstandardNth3(trK, i, j, k);
- /* Precompute derivatives (old style) */
-
/* Calculate temporaries and grid functions */
- int const dir1 = Sign(beta1L);
-
- int const dir2 = Sign(beta2L);
-
- int const dir3 = Sign(beta3L);
-
- CCTK_REAL const detgt = 1;
-
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
-
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
-
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
-
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
-
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
-
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
-
- CCTK_REAL const Gt111 = khalf*(gtu11*PDstandardNth1gt11 + 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
- gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
+ int dir1 = Sign(beta1L);
- CCTK_REAL const Gt211 = khalf*(gtu21*PDstandardNth1gt11 + 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
- gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
+ int dir2 = Sign(beta2L);
- CCTK_REAL const Gt311 = khalf*(gtu31*PDstandardNth1gt11 + 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
- gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
+ int dir3 = Sign(beta3L);
- CCTK_REAL const Gt112 = khalf*(gtu21*PDstandardNth1gt22 + gtu11*PDstandardNth2gt11 +
- gtu31*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
+ CCTK_REAL detgt = 1;
- CCTK_REAL const Gt212 = khalf*(gtu22*PDstandardNth1gt22 + gtu21*PDstandardNth2gt11 +
- gtu32*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
- CCTK_REAL const Gt312 = khalf*(gtu32*PDstandardNth1gt22 + gtu31*PDstandardNth2gt11 +
- gtu33*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
- CCTK_REAL const Gt113 = khalf*(gtu31*PDstandardNth1gt33 + gtu11*PDstandardNth3gt11 +
- gtu21*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
- CCTK_REAL const Gt213 = khalf*(gtu32*PDstandardNth1gt33 + gtu21*PDstandardNth3gt11 +
- gtu22*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
- CCTK_REAL const Gt313 = khalf*(gtu33*PDstandardNth1gt33 + gtu31*PDstandardNth3gt11 +
- gtu32*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
- CCTK_REAL const Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
- gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
- CCTK_REAL const Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
- gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+ CCTK_REAL Gt111 = khalf*(gtu11*PDstandardNth1gt11 +
+ 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
+ gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
- CCTK_REAL const Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
- gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+ CCTK_REAL Gt211 = khalf*(gtu21*PDstandardNth1gt11 +
+ 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
+ gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
- CCTK_REAL const Gt123 = khalf*(gtu31*PDstandardNth2gt33 + gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu21*PDstandardNth3gt22);
+ CCTK_REAL Gt311 = khalf*(gtu31*PDstandardNth1gt11 +
+ 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
+ gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
- CCTK_REAL const Gt223 = khalf*(gtu32*PDstandardNth2gt33 + gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu22*PDstandardNth3gt22);
+ CCTK_REAL Gt112 = khalf*(gtu21*PDstandardNth1gt22 +
+ gtu11*PDstandardNth2gt11 + gtu31*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
- CCTK_REAL const Gt323 = khalf*(gtu33*PDstandardNth2gt33 + gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu32*PDstandardNth3gt22);
+ CCTK_REAL Gt212 = khalf*(gtu22*PDstandardNth1gt22 +
+ gtu21*PDstandardNth2gt11 + gtu32*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
- CCTK_REAL const Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) - gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
- 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
+ CCTK_REAL Gt312 = khalf*(gtu32*PDstandardNth1gt22 +
+ gtu31*PDstandardNth2gt11 + gtu33*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
- CCTK_REAL const Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) - gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
- 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
+ CCTK_REAL Gt113 = khalf*(gtu31*PDstandardNth1gt33 +
+ gtu11*PDstandardNth3gt11 + gtu21*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
- CCTK_REAL const Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) - gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
- 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
+ CCTK_REAL Gt213 = khalf*(gtu32*PDstandardNth1gt33 +
+ gtu21*PDstandardNth3gt11 + gtu22*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
- CCTK_REAL const Xtn1 = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 + Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
+ CCTK_REAL Gt313 = khalf*(gtu33*PDstandardNth1gt33 +
+ gtu31*PDstandardNth3gt11 + gtu32*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
- CCTK_REAL const Xtn2 = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 + Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
+ CCTK_REAL Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
+ gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
- CCTK_REAL const Xtn3 = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 + Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
+ CCTK_REAL Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
+ gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
- CCTK_REAL const fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
+ CCTK_REAL Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
+ gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
- CCTK_REAL const cdphi1 = fac1*PDstandardNth1phi;
+ CCTK_REAL Gt123 = khalf*(gtu31*PDstandardNth2gt33 +
+ gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu21*PDstandardNth3gt22);
- CCTK_REAL const cdphi2 = fac1*PDstandardNth2phi;
+ CCTK_REAL Gt223 = khalf*(gtu32*PDstandardNth2gt33 +
+ gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu22*PDstandardNth3gt22);
- CCTK_REAL const cdphi3 = fac1*PDstandardNth3phi;
+ CCTK_REAL Gt323 = khalf*(gtu33*PDstandardNth2gt33 +
+ gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu32*PDstandardNth3gt22);
- CCTK_REAL const Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
+ CCTK_REAL Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) -
+ gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
+ 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
- CCTK_REAL const Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
+ CCTK_REAL Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) -
+ gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
+ 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
- CCTK_REAL const Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
+ CCTK_REAL Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) -
+ gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
+ 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
- CCTK_REAL const Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
+ CCTK_REAL Xtn1 = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 +
+ Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
- CCTK_REAL const Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
+ CCTK_REAL Xtn2 = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 +
+ Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
- CCTK_REAL const Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
+ CCTK_REAL Xtn3 = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 +
+ Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
- CCTK_REAL const Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
+ CCTK_REAL fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
- CCTK_REAL const Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
+ CCTK_REAL cdphi1 = fac1*PDstandardNth1phi;
- CCTK_REAL const Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
+ CCTK_REAL cdphi2 = fac1*PDstandardNth2phi;
- CCTK_REAL const Atu11 = Atm11*gtu11 + Atm12*gtu21 + Atm13*gtu31;
+ CCTK_REAL cdphi3 = fac1*PDstandardNth3phi;
- CCTK_REAL const Atu21 = Atm11*gtu21 + Atm12*gtu22 + Atm13*gtu32;
+ CCTK_REAL Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
- CCTK_REAL const Atu31 = Atm11*gtu31 + Atm12*gtu32 + Atm13*gtu33;
+ CCTK_REAL Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
- CCTK_REAL const Atu22 = Atm21*gtu21 + Atm22*gtu22 + Atm23*gtu32;
+ CCTK_REAL Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
- CCTK_REAL const Atu32 = Atm21*gtu31 + Atm22*gtu32 + Atm23*gtu33;
+ CCTK_REAL Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
- CCTK_REAL const Atu33 = Atm31*gtu31 + Atm32*gtu32 + Atm33*gtu33;
+ CCTK_REAL Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
- CCTK_REAL const S1 = (-eTtxL + beta1L*eTxxL + beta2L*eTxyL + beta3L*eTxzL)*INV(alphaL);
+ CCTK_REAL Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
- CCTK_REAL const S2 = (-eTtyL + beta1L*eTxyL + beta2L*eTyyL + beta3L*eTyzL)*INV(alphaL);
+ CCTK_REAL Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
- CCTK_REAL const S3 = (-eTtzL + beta1L*eTxzL + beta2L*eTyzL + beta3L*eTzzL)*INV(alphaL);
+ CCTK_REAL Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
- CCTK_REAL const phirhsL = PDupwindNth1(phi, i, j, k)*beta1L + PDupwindNth2(phi, i, j, k)*beta2L +
- PDupwindNth3(phi, i, j, k)*beta3L + (PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3)*
- IfThen(conformalMethod,-(kthird*phiL),0.16666666666666666) +
- alphaL*trKL*IfThen(conformalMethod,kthird*phiL,-0.16666666666666666);
+ CCTK_REAL Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
- CCTK_REAL const gt11rhsL = -2*alphaL*At11L + PDupwindNth1(gt11, i, j, k)*beta1L + PDupwindNth2(gt11, i, j, k)*beta2L +
- PDupwindNth3(gt11, i, j, k)*beta3L + 2*(gt12L*PDstandardNth1beta2 + gt13L*PDstandardNth1beta3) +
- gt11L*(kfourthird*PDstandardNth1beta1 - ktwothird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
+ CCTK_REAL Atu11 = Atm11*gtu11 + Atm12*gtu21 + Atm13*gtu31;
+
+ CCTK_REAL Atu21 = Atm11*gtu21 + Atm12*gtu22 + Atm13*gtu32;
- CCTK_REAL const gt12rhsL = -2*alphaL*At12L + PDupwindNth1(gt12, i, j, k)*beta1L + PDupwindNth2(gt12, i, j, k)*beta2L +
- PDupwindNth3(gt12, i, j, k)*beta3L + gt22L*PDstandardNth1beta2 + gt23L*PDstandardNth1beta3 +
- gt11L*PDstandardNth2beta1 + gt13L*PDstandardNth2beta3 +
- gt12L*(kthird*(PDstandardNth1beta1 + PDstandardNth2beta2) - ktwothird*PDstandardNth3beta3);
-
- CCTK_REAL const gt13rhsL = -2*alphaL*At13L + PDupwindNth1(gt13, i, j, k)*beta1L + PDupwindNth2(gt13, i, j, k)*beta2L +
- PDupwindNth3(gt13, i, j, k)*beta3L + gt23L*PDstandardNth1beta2 + gt33L*PDstandardNth1beta3 +
- gt11L*PDstandardNth3beta1 + gt12L*PDstandardNth3beta2 +
- gt13L*(-(ktwothird*PDstandardNth2beta2) + kthird*(PDstandardNth1beta1 + PDstandardNth3beta3));
-
- CCTK_REAL const gt22rhsL = -2*alphaL*At22L + PDupwindNth1(gt22, i, j, k)*beta1L + PDupwindNth2(gt22, i, j, k)*beta2L +
- PDupwindNth3(gt22, i, j, k)*beta3L + 2*(gt12L*PDstandardNth2beta1 + gt23L*PDstandardNth2beta3) +
- gt22L*(-(ktwothird*PDstandardNth1beta1) + kfourthird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
-
- CCTK_REAL const gt23rhsL = -2*alphaL*At23L + PDupwindNth1(gt23, i, j, k)*beta1L + PDupwindNth2(gt23, i, j, k)*beta2L +
- PDupwindNth3(gt23, i, j, k)*beta3L + gt13L*PDstandardNth2beta1 + gt33L*PDstandardNth2beta3 +
- gt12L*PDstandardNth3beta1 + gt22L*PDstandardNth3beta2 +
- gt23L*(-(ktwothird*PDstandardNth1beta1) + kthird*(PDstandardNth2beta2 + PDstandardNth3beta3));
-
- CCTK_REAL const gt33rhsL = -2*alphaL*At33L + PDupwindNth1(gt33, i, j, k)*beta1L + PDupwindNth2(gt33, i, j, k)*beta2L +
- PDupwindNth3(gt33, i, j, k)*beta3L - gt33L*ktwothird*PDstandardNth1beta1 - gt33L*ktwothird*PDstandardNth2beta2 +
- 2*gt13L*PDstandardNth3beta1 + 2*gt23L*PDstandardNth3beta2 + gt33L*kfourthird*PDstandardNth3beta3;
-
- CCTK_REAL const Xt1rhsL = kthird*(7*(gtu21*PDstandardNth12beta1 + gtu31*PDstandardNth13beta1) +
- gtu11*(4*PDstandardNth11beta1 + PDstandardNth12beta2 + PDstandardNth13beta3) +
- gtu21*(PDstandardNth22beta2 + PDstandardNth23beta3) +
- 3*(PDupwindNth1(Xt1, i, j, k)*beta1L + PDupwindNth2(Xt1, i, j, k)*beta2L +
- PDupwindNth3(Xt1, i, j, k)*beta3L + gtu22*PDstandardNth22beta1 + gtu33*PDstandardNth33beta1) +
- gtu31*(PDstandardNth23beta2 + PDstandardNth33beta3) -
- 6*(Atu11*PDstandardNth1alpha + Atu21*PDstandardNth2alpha + Atu31*PDstandardNth3alpha) +
- 6*(gtu32*PDstandardNth23beta1 + alphaL*(6*(Atu11*cdphi1 + Atu21*cdphi2 + Atu31*cdphi3) + Atu11*Gt111 +
- Atu22*Gt122 + 2*(Atu21*Gt112 + Atu31*Gt113 + Atu32*Gt123) + Atu33*Gt133 -
- ktwothird*(gtu11*PDstandardNth1trK + gtu21*PDstandardNth2trK + gtu31*PDstandardNth3trK))) -
- 150.7964473723100754462068823974161384415*alphaL*(gtu11*S1 + gtu21*S2 + gtu31*S3) +
- (-3*PDstandardNth1beta1 + 2*(PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3))*Xtn1 -
- 3*(PDstandardNth2beta1*Xtn2 + PDstandardNth3beta1*Xtn3));
-
- CCTK_REAL const Xt2rhsL = kthird*(gtu21*(PDstandardNth11beta1 + 7*PDstandardNth12beta2 + PDstandardNth13beta3) +
- gtu22*(PDstandardNth12beta1 + 4*PDstandardNth22beta2 + PDstandardNth23beta3) +
- 3*(PDupwindNth1(Xt2, i, j, k)*beta1L + PDupwindNth2(Xt2, i, j, k)*beta2L +
- PDupwindNth3(Xt2, i, j, k)*beta3L + gtu11*PDstandardNth11beta2 + gtu33*PDstandardNth33beta2) +
- gtu32*(PDstandardNth13beta1 + 7*PDstandardNth23beta2 + PDstandardNth33beta3) -
- 6*(Atu21*PDstandardNth1alpha + Atu22*PDstandardNth2alpha + Atu32*PDstandardNth3alpha) +
- 6*(gtu31*PDstandardNth13beta2 + alphaL*(6*(Atu21*cdphi1 + Atu22*cdphi2 + Atu32*cdphi3) + Atu11*Gt211 +
- Atu22*Gt222 + 2*(Atu21*Gt212 + Atu31*Gt213 + Atu32*Gt223) + Atu33*Gt233 -
- ktwothird*(gtu21*PDstandardNth1trK + gtu22*PDstandardNth2trK + gtu32*PDstandardNth3trK))) -
- 150.7964473723100754462068823974161384415*alphaL*(gtu21*S1 + gtu22*S2 + gtu32*S3) +
- 2*(PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3)*Xtn2 -
- 3*(PDstandardNth1beta2*Xtn1 + PDstandardNth2beta2*Xtn2 + PDstandardNth3beta2*Xtn3));
-
- CCTK_REAL const Xt3rhsL = kthird*(gtu31*(PDstandardNth11beta1 + PDstandardNth12beta2 + 7*PDstandardNth13beta3) +
- 3*(PDupwindNth1(Xt3, i, j, k)*beta1L + PDupwindNth2(Xt3, i, j, k)*beta2L +
- PDupwindNth3(Xt3, i, j, k)*beta3L + gtu11*PDstandardNth11beta3 + gtu22*PDstandardNth22beta3) +
- gtu32*(PDstandardNth12beta1 + PDstandardNth22beta2 + 7*PDstandardNth23beta3) +
- gtu33*(PDstandardNth13beta1 + PDstandardNth23beta2 + 4*PDstandardNth33beta3) -
- 6*(Atu31*PDstandardNth1alpha + Atu32*PDstandardNth2alpha + Atu33*PDstandardNth3alpha) +
- 6*(gtu21*PDstandardNth12beta3 + alphaL*(6*(Atu31*cdphi1 + Atu32*cdphi2 + Atu33*cdphi3) + Atu11*Gt311 +
- Atu22*Gt322 + 2*(Atu21*Gt312 + Atu31*Gt313 + Atu32*Gt323) + Atu33*Gt333 -
- ktwothird*(gtu31*PDstandardNth1trK + gtu32*PDstandardNth2trK + gtu33*PDstandardNth3trK))) -
- 150.7964473723100754462068823974161384415*alphaL*(gtu31*S1 + gtu32*S2 + gtu33*S3) +
- 2*(PDstandardNth1beta1 + PDstandardNth2beta2 + PDstandardNth3beta3)*Xtn3 -
- 3*(PDstandardNth1beta3*Xtn1 + PDstandardNth2beta3*Xtn2 + PDstandardNth3beta3*Xtn3));
-
- CCTK_REAL const eta = BetaDriver*IfThen(rL > SpatialBetaDriverRadius,SpatialBetaDriverRadius*INV(rL),1);
-
- CCTK_REAL const beta1rhsL = (PDupwindNth1(beta1, i, j, k)*beta1L + PDupwindNth2(beta1, i, j, k)*beta2L +
- PDupwindNth3(beta1, i, j, k)*beta3L)*ShiftAdvectionCoeff + B1L*ShiftGammaCoeff;
-
- CCTK_REAL const beta2rhsL = (PDupwindNth1(beta2, i, j, k)*beta1L + PDupwindNth2(beta2, i, j, k)*beta2L +
- PDupwindNth3(beta2, i, j, k)*beta3L)*ShiftAdvectionCoeff + B2L*ShiftGammaCoeff;
-
- CCTK_REAL const beta3rhsL = (PDupwindNth1(beta3, i, j, k)*beta1L + PDupwindNth2(beta3, i, j, k)*beta2L +
- PDupwindNth3(beta3, i, j, k)*beta3L)*ShiftAdvectionCoeff + B3L*ShiftGammaCoeff;
-
- CCTK_REAL const B1rhsL = -(B1L*eta) + ((PDupwindNth1(B1, i, j, k) - PDupwindNth1(Xt1, i, j, k))*beta1L +
- (PDupwindNth2(B1, i, j, k) - PDupwindNth2(Xt1, i, j, k))*beta2L +
- (PDupwindNth3(B1, i, j, k) - PDupwindNth3(Xt1, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt1rhsL;
-
- CCTK_REAL const B2rhsL = -(B2L*eta) + ((PDupwindNth1(B2, i, j, k) - PDupwindNth1(Xt2, i, j, k))*beta1L +
- (PDupwindNth2(B2, i, j, k) - PDupwindNth2(Xt2, i, j, k))*beta2L +
- (PDupwindNth3(B2, i, j, k) - PDupwindNth3(Xt2, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt2rhsL;
-
- CCTK_REAL const B3rhsL = -(B3L*eta) + ((PDupwindNth1(B3, i, j, k) - PDupwindNth1(Xt3, i, j, k))*beta1L +
- (PDupwindNth2(B3, i, j, k) - PDupwindNth2(Xt3, i, j, k))*beta2L +
- (PDupwindNth3(B3, i, j, k) - PDupwindNth3(Xt3, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt3rhsL;
+ CCTK_REAL Atu31 = Atm11*gtu31 + Atm12*gtu32 + Atm13*gtu33;
+
+ CCTK_REAL Atu22 = Atm21*gtu21 + Atm22*gtu22 + Atm23*gtu32;
+
+ CCTK_REAL Atu32 = Atm21*gtu31 + Atm22*gtu32 + Atm23*gtu33;
+
+ CCTK_REAL Atu33 = Atm31*gtu31 + Atm32*gtu32 + Atm33*gtu33;
+
+ CCTK_REAL S1 = (-eTtxL + beta1L*eTxxL + beta2L*eTxyL +
+ beta3L*eTxzL)*INV(alphaL);
+
+ CCTK_REAL S2 = (-eTtyL + beta1L*eTxyL + beta2L*eTyyL +
+ beta3L*eTyzL)*INV(alphaL);
+
+ CCTK_REAL S3 = (-eTtzL + beta1L*eTxzL + beta2L*eTyzL +
+ beta3L*eTzzL)*INV(alphaL);
+
+ CCTK_REAL phirhsL = PDupwindNth1(phi, i, j, k)*beta1L +
+ PDupwindNth2(phi, i, j, k)*beta2L + PDupwindNth3(phi, i, j,
+ k)*beta3L + (PDstandardNth1beta1 + PDstandardNth2beta2 +
+ PDstandardNth3beta3)*IfThen(conformalMethod,-(kthird*phiL),0.16666666666666666)
+ + alphaL*trKL*IfThen(conformalMethod,kthird*phiL,-0.16666666666666666);
+
+ CCTK_REAL gt11rhsL = -2*alphaL*At11L + PDupwindNth1(gt11, i, j,
+ k)*beta1L + PDupwindNth2(gt11, i, j, k)*beta2L + PDupwindNth3(gt11,
+ i, j, k)*beta3L + 2*(gt12L*PDstandardNth1beta2 +
+ gt13L*PDstandardNth1beta3) + gt11L*(kfourthird*PDstandardNth1beta1 -
+ ktwothird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
+
+ CCTK_REAL gt12rhsL = -2*alphaL*At12L + PDupwindNth1(gt12, i, j,
+ k)*beta1L + PDupwindNth2(gt12, i, j, k)*beta2L + PDupwindNth3(gt12,
+ i, j, k)*beta3L + gt22L*PDstandardNth1beta2 +
+ gt23L*PDstandardNth1beta3 + gt11L*PDstandardNth2beta1 +
+ gt13L*PDstandardNth2beta3 + gt12L*(kthird*(PDstandardNth1beta1 +
+ PDstandardNth2beta2) - ktwothird*PDstandardNth3beta3);
+
+ CCTK_REAL gt13rhsL = -2*alphaL*At13L + PDupwindNth1(gt13, i, j,
+ k)*beta1L + PDupwindNth2(gt13, i, j, k)*beta2L + PDupwindNth3(gt13,
+ i, j, k)*beta3L + gt23L*PDstandardNth1beta2 +
+ gt33L*PDstandardNth1beta3 + gt11L*PDstandardNth3beta1 +
+ gt12L*PDstandardNth3beta2 + gt13L*(-(ktwothird*PDstandardNth2beta2) +
+ kthird*(PDstandardNth1beta1 + PDstandardNth3beta3));
+
+ CCTK_REAL gt22rhsL = -2*alphaL*At22L + PDupwindNth1(gt22, i, j,
+ k)*beta1L + PDupwindNth2(gt22, i, j, k)*beta2L + PDupwindNth3(gt22,
+ i, j, k)*beta3L + 2*(gt12L*PDstandardNth2beta1 +
+ gt23L*PDstandardNth2beta3) + gt22L*(-(ktwothird*PDstandardNth1beta1) +
+ kfourthird*PDstandardNth2beta2 - ktwothird*PDstandardNth3beta3);
+
+ CCTK_REAL gt23rhsL = -2*alphaL*At23L + PDupwindNth1(gt23, i, j,
+ k)*beta1L + PDupwindNth2(gt23, i, j, k)*beta2L + PDupwindNth3(gt23,
+ i, j, k)*beta3L + gt13L*PDstandardNth2beta1 +
+ gt33L*PDstandardNth2beta3 + gt12L*PDstandardNth3beta1 +
+ gt22L*PDstandardNth3beta2 + gt23L*(-(ktwothird*PDstandardNth1beta1) +
+ kthird*(PDstandardNth2beta2 + PDstandardNth3beta3));
+
+ CCTK_REAL gt33rhsL = -2*alphaL*At33L + PDupwindNth1(gt33, i, j,
+ k)*beta1L + PDupwindNth2(gt33, i, j, k)*beta2L + PDupwindNth3(gt33,
+ i, j, k)*beta3L - gt33L*ktwothird*PDstandardNth1beta1 -
+ gt33L*ktwothird*PDstandardNth2beta2 + 2*gt13L*PDstandardNth3beta1 +
+ 2*gt23L*PDstandardNth3beta2 + gt33L*kfourthird*PDstandardNth3beta3;
+
+ Xt1rhsL = kthird*(7*(gtu21*PDstandardNth12beta1 +
+ gtu31*PDstandardNth13beta1) + gtu11*(4*PDstandardNth11beta1 +
+ PDstandardNth12beta2 + PDstandardNth13beta3) +
+ gtu21*(PDstandardNth22beta2 + PDstandardNth23beta3) +
+ 3*(PDupwindNth1(Xt1, i, j, k)*beta1L + PDupwindNth2(Xt1, i, j,
+ k)*beta2L + PDupwindNth3(Xt1, i, j, k)*beta3L +
+ gtu22*PDstandardNth22beta1 + gtu33*PDstandardNth33beta1) +
+ gtu31*(PDstandardNth23beta2 + PDstandardNth33beta3) -
+ 6*(Atu11*PDstandardNth1alpha + Atu21*PDstandardNth2alpha +
+ Atu31*PDstandardNth3alpha) + 6*(gtu32*PDstandardNth23beta1 +
+ alphaL*(6*(Atu11*cdphi1 + Atu21*cdphi2 + Atu31*cdphi3) + Atu11*Gt111 +
+ Atu22*Gt122 + 2*(Atu21*Gt112 + Atu31*Gt113 + Atu32*Gt123) + Atu33*Gt133
+ - ktwothird*(gtu11*PDstandardNth1trK + gtu21*PDstandardNth2trK +
+ gtu31*PDstandardNth3trK))) -
+ 150.7964473723100754462068823974161384415*alphaL*(gtu11*S1 + gtu21*S2 +
+ gtu31*S3) + (-3*PDstandardNth1beta1 + 2*(PDstandardNth1beta1 +
+ PDstandardNth2beta2 + PDstandardNth3beta3))*Xtn1 -
+ 3*(PDstandardNth2beta1*Xtn2 + PDstandardNth3beta1*Xtn3));
+
+ Xt2rhsL = kthird*(gtu21*(PDstandardNth11beta1 + 7*PDstandardNth12beta2
+ + PDstandardNth13beta3) + gtu22*(PDstandardNth12beta1 +
+ 4*PDstandardNth22beta2 + PDstandardNth23beta3) + 3*(PDupwindNth1(Xt2,
+ i, j, k)*beta1L + PDupwindNth2(Xt2, i, j, k)*beta2L +
+ PDupwindNth3(Xt2, i, j, k)*beta3L + gtu11*PDstandardNth11beta2 +
+ gtu33*PDstandardNth33beta2) + gtu32*(PDstandardNth13beta1 +
+ 7*PDstandardNth23beta2 + PDstandardNth33beta3) -
+ 6*(Atu21*PDstandardNth1alpha + Atu22*PDstandardNth2alpha +
+ Atu32*PDstandardNth3alpha) + 6*(gtu31*PDstandardNth13beta2 +
+ alphaL*(6*(Atu21*cdphi1 + Atu22*cdphi2 + Atu32*cdphi3) + Atu11*Gt211 +
+ Atu22*Gt222 + 2*(Atu21*Gt212 + Atu31*Gt213 + Atu32*Gt223) + Atu33*Gt233
+ - ktwothird*(gtu21*PDstandardNth1trK + gtu22*PDstandardNth2trK +
+ gtu32*PDstandardNth3trK))) -
+ 150.7964473723100754462068823974161384415*alphaL*(gtu21*S1 + gtu22*S2 +
+ gtu32*S3) + 2*(PDstandardNth1beta1 + PDstandardNth2beta2 +
+ PDstandardNth3beta3)*Xtn2 - 3*(PDstandardNth1beta2*Xtn1 +
+ PDstandardNth2beta2*Xtn2 + PDstandardNth3beta2*Xtn3));
+
+ Xt3rhsL = kthird*(gtu31*(PDstandardNth11beta1 + PDstandardNth12beta2 +
+ 7*PDstandardNth13beta3) + 3*(PDupwindNth1(Xt3, i, j, k)*beta1L +
+ PDupwindNth2(Xt3, i, j, k)*beta2L + PDupwindNth3(Xt3, i, j,
+ k)*beta3L + gtu11*PDstandardNth11beta3 + gtu22*PDstandardNth22beta3) +
+ gtu32*(PDstandardNth12beta1 + PDstandardNth22beta2 +
+ 7*PDstandardNth23beta3) + gtu33*(PDstandardNth13beta1 +
+ PDstandardNth23beta2 + 4*PDstandardNth33beta3) -
+ 6*(Atu31*PDstandardNth1alpha + Atu32*PDstandardNth2alpha +
+ Atu33*PDstandardNth3alpha) + 6*(gtu21*PDstandardNth12beta3 +
+ alphaL*(6*(Atu31*cdphi1 + Atu32*cdphi2 + Atu33*cdphi3) + Atu11*Gt311 +
+ Atu22*Gt322 + 2*(Atu21*Gt312 + Atu31*Gt313 + Atu32*Gt323) + Atu33*Gt333
+ - ktwothird*(gtu31*PDstandardNth1trK + gtu32*PDstandardNth2trK +
+ gtu33*PDstandardNth3trK))) -
+ 150.7964473723100754462068823974161384415*alphaL*(gtu31*S1 + gtu32*S2 +
+ gtu33*S3) + 2*(PDstandardNth1beta1 + PDstandardNth2beta2 +
+ PDstandardNth3beta3)*Xtn3 - 3*(PDstandardNth1beta3*Xtn1 +
+ PDstandardNth2beta3*Xtn2 + PDstandardNth3beta3*Xtn3));
+
+ CCTK_REAL eta = BetaDriver*IfThen(rL >
+ SpatialBetaDriverRadius,SpatialBetaDriverRadius*INV(rL),1);
+
+ CCTK_REAL beta1rhsL = (PDupwindNth1(beta1, i, j, k)*beta1L +
+ PDupwindNth2(beta1, i, j, k)*beta2L + PDupwindNth3(beta1, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B1L*ShiftGammaCoeff;
+
+ CCTK_REAL beta2rhsL = (PDupwindNth1(beta2, i, j, k)*beta1L +
+ PDupwindNth2(beta2, i, j, k)*beta2L + PDupwindNth3(beta2, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B2L*ShiftGammaCoeff;
+
+ CCTK_REAL beta3rhsL = (PDupwindNth1(beta3, i, j, k)*beta1L +
+ PDupwindNth2(beta3, i, j, k)*beta2L + PDupwindNth3(beta3, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B3L*ShiftGammaCoeff;
+
+ CCTK_REAL B1rhsL = -(B1L*eta) + ((PDupwindNth1(B1, i, j, k) -
+ PDupwindNth1(Xt1, i, j, k))*beta1L + (PDupwindNth2(B1, i, j, k) -
+ PDupwindNth2(Xt1, i, j, k))*beta2L + (PDupwindNth3(B1, i, j, k) -
+ PDupwindNth3(Xt1, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt1rhsL;
+
+ CCTK_REAL B2rhsL = -(B2L*eta) + ((PDupwindNth1(B2, i, j, k) -
+ PDupwindNth1(Xt2, i, j, k))*beta1L + (PDupwindNth2(B2, i, j, k) -
+ PDupwindNth2(Xt2, i, j, k))*beta2L + (PDupwindNth3(B2, i, j, k) -
+ PDupwindNth3(Xt2, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt2rhsL;
+
+ CCTK_REAL B3rhsL = -(B3L*eta) + ((PDupwindNth1(B3, i, j, k) -
+ PDupwindNth1(Xt3, i, j, k))*beta1L + (PDupwindNth2(B3, i, j, k) -
+ PDupwindNth2(Xt3, i, j, k))*beta2L + (PDupwindNth3(B3, i, j, k) -
+ PDupwindNth3(Xt3, i, j, k))*beta3L)*ShiftAdvectionCoeff + Xt3rhsL;
/* Copy local copies back to grid functions */
@@ -528,8 +531,6 @@ void ML_BSSN_RHS1_Body(cGH const * restrict const cctkGH, int const dir, int con
Xt1rhs[index] = Xt1rhsL;
Xt2rhs[index] = Xt2rhsL;
Xt3rhs[index] = Xt3rhsL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_RHS1);
}
diff --git a/ML_BSSN/src/ML_BSSN_RHS2.c b/ML_BSSN/src/ML_BSSN_RHS2.c
index 36e48b4..c73c3b9 100644
--- a/ML_BSSN/src/ML_BSSN_RHS2.c
+++ b/ML_BSSN/src/ML_BSSN_RHS2.c
@@ -28,20 +28,6 @@ void ML_BSSN_RHS2_Body(cGH const * restrict const cctkGH, int const dir, int con
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_RHS2_Body");
@@ -94,77 +80,7 @@ void ML_BSSN_RHS2_Body(cGH const * restrict const cctkGH, int const dir, int con
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL Atm11 = INITVALUE, Atm12 = INITVALUE, Atm13 = INITVALUE, Atm21 = INITVALUE, Atm22 = INITVALUE, Atm23 = INITVALUE;
- // CCTK_REAL Atm31 = INITVALUE, Atm32 = INITVALUE, Atm33 = INITVALUE;
- // CCTK_REAL Ats11 = INITVALUE, Ats12 = INITVALUE, Ats13 = INITVALUE, Ats22 = INITVALUE, Ats23 = INITVALUE, Ats33 = INITVALUE;
- // CCTK_REAL cdphi1 = INITVALUE, cdphi2 = INITVALUE, cdphi211 = INITVALUE, cdphi212 = INITVALUE, cdphi213 = INITVALUE, cdphi222 = INITVALUE;
- // CCTK_REAL cdphi223 = INITVALUE, cdphi233 = INITVALUE, cdphi3 = INITVALUE;
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL dir1 = INITVALUE, dir2 = INITVALUE, dir3 = INITVALUE;
- // CCTK_REAL e4phi = INITVALUE;
- // CCTK_REAL em4phi = INITVALUE;
- // CCTK_REAL fac1 = INITVALUE, fac2 = INITVALUE;
- // CCTK_REAL g11 = INITVALUE;
- // CCTK_REAL G111 = INITVALUE, G112 = INITVALUE, G113 = INITVALUE;
- // CCTK_REAL g12 = INITVALUE;
- // CCTK_REAL G122 = INITVALUE, G123 = INITVALUE;
- // CCTK_REAL g13 = INITVALUE;
- // CCTK_REAL G133 = INITVALUE, G211 = INITVALUE, G212 = INITVALUE, G213 = INITVALUE;
- // CCTK_REAL g22 = INITVALUE;
- // CCTK_REAL G222 = INITVALUE, G223 = INITVALUE;
- // CCTK_REAL g23 = INITVALUE;
- // CCTK_REAL G233 = INITVALUE, G311 = INITVALUE, G312 = INITVALUE, G313 = INITVALUE, G322 = INITVALUE, G323 = INITVALUE;
- // CCTK_REAL g33 = INITVALUE;
- // CCTK_REAL G333 = INITVALUE;
- // CCTK_REAL Gt111 = INITVALUE, Gt112 = INITVALUE, Gt113 = INITVALUE, Gt122 = INITVALUE, Gt123 = INITVALUE, Gt133 = INITVALUE;
- // CCTK_REAL Gt211 = INITVALUE, Gt212 = INITVALUE, Gt213 = INITVALUE, Gt222 = INITVALUE, Gt223 = INITVALUE, Gt233 = INITVALUE;
- // CCTK_REAL Gt311 = INITVALUE, Gt312 = INITVALUE, Gt313 = INITVALUE, Gt322 = INITVALUE, Gt323 = INITVALUE, Gt333 = INITVALUE;
- // CCTK_REAL Gtl111 = INITVALUE, Gtl112 = INITVALUE, Gtl113 = INITVALUE, Gtl122 = INITVALUE, Gtl123 = INITVALUE, Gtl133 = INITVALUE;
- // CCTK_REAL Gtl211 = INITVALUE, Gtl212 = INITVALUE, Gtl213 = INITVALUE, Gtl222 = INITVALUE, Gtl223 = INITVALUE, Gtl233 = INITVALUE;
- // CCTK_REAL Gtl311 = INITVALUE, Gtl312 = INITVALUE, Gtl313 = INITVALUE, Gtl322 = INITVALUE, Gtl323 = INITVALUE, Gtl333 = INITVALUE;
- // CCTK_REAL Gtlu111 = INITVALUE, Gtlu112 = INITVALUE, Gtlu113 = INITVALUE, Gtlu121 = INITVALUE, Gtlu122 = INITVALUE, Gtlu123 = INITVALUE;
- // CCTK_REAL Gtlu131 = INITVALUE, Gtlu132 = INITVALUE, Gtlu133 = INITVALUE, Gtlu211 = INITVALUE, Gtlu212 = INITVALUE, Gtlu213 = INITVALUE;
- // CCTK_REAL Gtlu221 = INITVALUE, Gtlu222 = INITVALUE, Gtlu223 = INITVALUE, Gtlu231 = INITVALUE, Gtlu232 = INITVALUE, Gtlu233 = INITVALUE;
- // CCTK_REAL Gtlu311 = INITVALUE, Gtlu312 = INITVALUE, Gtlu313 = INITVALUE, Gtlu321 = INITVALUE, Gtlu322 = INITVALUE, Gtlu323 = INITVALUE;
- // CCTK_REAL Gtlu331 = INITVALUE, Gtlu332 = INITVALUE, Gtlu333 = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
- // CCTK_REAL gu11 = INITVALUE, gu21 = INITVALUE, gu22 = INITVALUE, gu31 = INITVALUE, gu32 = INITVALUE, gu33 = INITVALUE;
- // CCTK_REAL R11 = INITVALUE, R12 = INITVALUE, R13 = INITVALUE, R22 = INITVALUE, R23 = INITVALUE, R33 = INITVALUE;
- // CCTK_REAL rho = INITVALUE;
- // CCTK_REAL Rphi11 = INITVALUE, Rphi12 = INITVALUE, Rphi13 = INITVALUE, Rphi22 = INITVALUE, Rphi23 = INITVALUE, Rphi33 = INITVALUE;
- // CCTK_REAL Rt11 = INITVALUE, Rt12 = INITVALUE, Rt13 = INITVALUE, Rt22 = INITVALUE, Rt23 = INITVALUE, Rt33 = INITVALUE;
- // CCTK_REAL trAts = INITVALUE;
- // CCTK_REAL trS = INITVALUE;
- // CCTK_REAL Xtn1 = INITVALUE, Xtn2 = INITVALUE, Xtn3 = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE, alpharhsL = INITVALUE;
- // CCTK_REAL ArhsL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At11rhsL = INITVALUE, At12L = INITVALUE, At12rhsL = INITVALUE, At13L = INITVALUE, At13rhsL = INITVALUE;
- // CCTK_REAL At22L = INITVALUE, At22rhsL = INITVALUE, At23L = INITVALUE, At23rhsL = INITVALUE, At33L = INITVALUE, At33rhsL = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL eTttL = INITVALUE;
- // CCTK_REAL eTtxL = INITVALUE;
- // CCTK_REAL eTtyL = INITVALUE;
- // CCTK_REAL eTtzL = INITVALUE;
- // CCTK_REAL eTxxL = INITVALUE;
- // CCTK_REAL eTxyL = INITVALUE;
- // CCTK_REAL eTxzL = INITVALUE;
- // CCTK_REAL eTyyL = INITVALUE;
- // CCTK_REAL eTyzL = INITVALUE;
- // CCTK_REAL eTzzL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL phiL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE, trKrhsL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt2L = INITVALUE, Xt3L = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
// CCTK_REAL PDstandardNth1alpha = INITVALUE;
// CCTK_REAL PDstandardNth2alpha = INITVALUE;
@@ -258,44 +174,43 @@ void ML_BSSN_RHS2_Body(cGH const * restrict const cctkGH, int const dir, int con
// CCTK_REAL PDstandardNth3Xt3 = INITVALUE;
/* Assign local copies of grid functions */
- CCTK_REAL const AL = A[index];
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const eTttL = (*stress_energy_state) ? (eTtt[index]) : 0.0;
- CCTK_REAL const eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
- CCTK_REAL const eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
- CCTK_REAL const eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
- CCTK_REAL const eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
- CCTK_REAL const eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
- CCTK_REAL const eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
- CCTK_REAL const eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
- CCTK_REAL const eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
- CCTK_REAL const eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
- CCTK_REAL const phiL = phi[index];
- CCTK_REAL const trKL = trK[index];
- CCTK_REAL const Xt1L = Xt1[index];
- CCTK_REAL const Xt2L = Xt2[index];
- CCTK_REAL const Xt3L = Xt3[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL AL = A[index];
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL eTttL = (*stress_energy_state) ? (eTtt[index]) : 0.0;
+ CCTK_REAL eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
+ CCTK_REAL eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
+ CCTK_REAL eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
+ CCTK_REAL eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
+ CCTK_REAL eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
+ CCTK_REAL eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
+ CCTK_REAL eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
+ CCTK_REAL eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
+ CCTK_REAL eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL trKL = trK[index];
+ CCTK_REAL trKrhsL = trKrhs[index];
+ CCTK_REAL Xt1L = Xt1[index];
+ CCTK_REAL Xt2L = Xt2[index];
+ CCTK_REAL Xt3L = Xt3[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
+ /* Precompute derivatives */
CCTK_REAL const PDstandardNth1alpha = PDstandardNth1(alpha, i, j, k);
CCTK_REAL const PDstandardNth2alpha = PDstandardNth2(alpha, i, j, k);
CCTK_REAL const PDstandardNth3alpha = PDstandardNth3(alpha, i, j, k);
@@ -387,448 +302,545 @@ void ML_BSSN_RHS2_Body(cGH const * restrict const cctkGH, int const dir, int con
CCTK_REAL const PDstandardNth2Xt3 = PDstandardNth2(Xt3, i, j, k);
CCTK_REAL const PDstandardNth3Xt3 = PDstandardNth3(Xt3, i, j, k);
- /* Precompute derivatives (old style) */
-
/* Calculate temporaries and grid functions */
- int const dir1 = Sign(beta1L);
-
- int const dir2 = Sign(beta2L);
-
- int const dir3 = Sign(beta3L);
-
- CCTK_REAL const detgt = 1;
-
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
-
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
-
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
-
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
-
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
+ int dir1 = Sign(beta1L);
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
+ int dir2 = Sign(beta2L);
- CCTK_REAL const Gtl111 = khalf*PDstandardNth1gt11;
+ int dir3 = Sign(beta3L);
- CCTK_REAL const Gtl112 = khalf*PDstandardNth2gt11;
+ CCTK_REAL detgt = 1;
- CCTK_REAL const Gtl113 = khalf*PDstandardNth3gt11;
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
- CCTK_REAL const Gtl122 = -(khalf*PDstandardNth1gt22) + PDstandardNth2gt12;
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
- CCTK_REAL const Gtl123 = khalf*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12);
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
- CCTK_REAL const Gtl133 = -(khalf*PDstandardNth1gt33) + PDstandardNth3gt13;
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
- CCTK_REAL const Gtl211 = PDstandardNth1gt12 - khalf*PDstandardNth2gt11;
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
- CCTK_REAL const Gtl212 = khalf*PDstandardNth1gt22;
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
- CCTK_REAL const Gtl213 = khalf*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12);
+ CCTK_REAL Gtl111 = khalf*PDstandardNth1gt11;
- CCTK_REAL const Gtl222 = khalf*PDstandardNth2gt22;
+ CCTK_REAL Gtl112 = khalf*PDstandardNth2gt11;
- CCTK_REAL const Gtl223 = khalf*PDstandardNth3gt22;
+ CCTK_REAL Gtl113 = khalf*PDstandardNth3gt11;
- CCTK_REAL const Gtl233 = -(khalf*PDstandardNth2gt33) + PDstandardNth3gt23;
+ CCTK_REAL Gtl122 = -(khalf*PDstandardNth1gt22) + PDstandardNth2gt12;
- CCTK_REAL const Gtl311 = PDstandardNth1gt13 - khalf*PDstandardNth3gt11;
+ CCTK_REAL Gtl123 = khalf*(-PDstandardNth1gt23 + PDstandardNth2gt13 +
+ PDstandardNth3gt12);
- CCTK_REAL const Gtl312 = khalf*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12);
+ CCTK_REAL Gtl133 = -(khalf*PDstandardNth1gt33) + PDstandardNth3gt13;
- CCTK_REAL const Gtl313 = khalf*PDstandardNth1gt33;
+ CCTK_REAL Gtl211 = PDstandardNth1gt12 - khalf*PDstandardNth2gt11;
- CCTK_REAL const Gtl322 = PDstandardNth2gt23 - khalf*PDstandardNth3gt22;
+ CCTK_REAL Gtl212 = khalf*PDstandardNth1gt22;
- CCTK_REAL const Gtl323 = khalf*PDstandardNth2gt33;
+ CCTK_REAL Gtl213 = khalf*(PDstandardNth1gt23 - PDstandardNth2gt13 +
+ PDstandardNth3gt12);
- CCTK_REAL const Gtl333 = khalf*PDstandardNth3gt33;
+ CCTK_REAL Gtl222 = khalf*PDstandardNth2gt22;
- CCTK_REAL const Gtlu111 = Gtl111*gtu11 + Gtl112*gtu21 + Gtl113*gtu31;
+ CCTK_REAL Gtl223 = khalf*PDstandardNth3gt22;
- CCTK_REAL const Gtlu112 = Gtl111*gtu21 + Gtl112*gtu22 + Gtl113*gtu32;
+ CCTK_REAL Gtl233 = -(khalf*PDstandardNth2gt33) + PDstandardNth3gt23;
- CCTK_REAL const Gtlu113 = Gtl111*gtu31 + Gtl112*gtu32 + Gtl113*gtu33;
+ CCTK_REAL Gtl311 = PDstandardNth1gt13 - khalf*PDstandardNth3gt11;
- CCTK_REAL const Gtlu121 = Gtl112*gtu11 + Gtl122*gtu21 + Gtl123*gtu31;
+ CCTK_REAL Gtl312 = khalf*(PDstandardNth1gt23 + PDstandardNth2gt13 -
+ PDstandardNth3gt12);
- CCTK_REAL const Gtlu122 = Gtl112*gtu21 + Gtl122*gtu22 + Gtl123*gtu32;
+ CCTK_REAL Gtl313 = khalf*PDstandardNth1gt33;
- CCTK_REAL const Gtlu123 = Gtl112*gtu31 + Gtl122*gtu32 + Gtl123*gtu33;
+ CCTK_REAL Gtl322 = PDstandardNth2gt23 - khalf*PDstandardNth3gt22;
- CCTK_REAL const Gtlu131 = Gtl113*gtu11 + Gtl123*gtu21 + Gtl133*gtu31;
+ CCTK_REAL Gtl323 = khalf*PDstandardNth2gt33;
- CCTK_REAL const Gtlu132 = Gtl113*gtu21 + Gtl123*gtu22 + Gtl133*gtu32;
+ CCTK_REAL Gtl333 = khalf*PDstandardNth3gt33;
- CCTK_REAL const Gtlu133 = Gtl113*gtu31 + Gtl123*gtu32 + Gtl133*gtu33;
+ CCTK_REAL Gtlu111 = Gtl111*gtu11 + Gtl112*gtu21 + Gtl113*gtu31;
- CCTK_REAL const Gtlu211 = Gtl211*gtu11 + Gtl212*gtu21 + Gtl213*gtu31;
+ CCTK_REAL Gtlu112 = Gtl111*gtu21 + Gtl112*gtu22 + Gtl113*gtu32;
- CCTK_REAL const Gtlu212 = Gtl211*gtu21 + Gtl212*gtu22 + Gtl213*gtu32;
+ CCTK_REAL Gtlu113 = Gtl111*gtu31 + Gtl112*gtu32 + Gtl113*gtu33;
- CCTK_REAL const Gtlu213 = Gtl211*gtu31 + Gtl212*gtu32 + Gtl213*gtu33;
+ CCTK_REAL Gtlu121 = Gtl112*gtu11 + Gtl122*gtu21 + Gtl123*gtu31;
- CCTK_REAL const Gtlu221 = Gtl212*gtu11 + Gtl222*gtu21 + Gtl223*gtu31;
+ CCTK_REAL Gtlu122 = Gtl112*gtu21 + Gtl122*gtu22 + Gtl123*gtu32;
- CCTK_REAL const Gtlu222 = Gtl212*gtu21 + Gtl222*gtu22 + Gtl223*gtu32;
+ CCTK_REAL Gtlu123 = Gtl112*gtu31 + Gtl122*gtu32 + Gtl123*gtu33;
- CCTK_REAL const Gtlu223 = Gtl212*gtu31 + Gtl222*gtu32 + Gtl223*gtu33;
+ CCTK_REAL Gtlu131 = Gtl113*gtu11 + Gtl123*gtu21 + Gtl133*gtu31;
- CCTK_REAL const Gtlu231 = Gtl213*gtu11 + Gtl223*gtu21 + Gtl233*gtu31;
+ CCTK_REAL Gtlu132 = Gtl113*gtu21 + Gtl123*gtu22 + Gtl133*gtu32;
- CCTK_REAL const Gtlu232 = Gtl213*gtu21 + Gtl223*gtu22 + Gtl233*gtu32;
+ CCTK_REAL Gtlu133 = Gtl113*gtu31 + Gtl123*gtu32 + Gtl133*gtu33;
- CCTK_REAL const Gtlu233 = Gtl213*gtu31 + Gtl223*gtu32 + Gtl233*gtu33;
+ CCTK_REAL Gtlu211 = Gtl211*gtu11 + Gtl212*gtu21 + Gtl213*gtu31;
- CCTK_REAL const Gtlu311 = Gtl311*gtu11 + Gtl312*gtu21 + Gtl313*gtu31;
+ CCTK_REAL Gtlu212 = Gtl211*gtu21 + Gtl212*gtu22 + Gtl213*gtu32;
- CCTK_REAL const Gtlu312 = Gtl311*gtu21 + Gtl312*gtu22 + Gtl313*gtu32;
+ CCTK_REAL Gtlu213 = Gtl211*gtu31 + Gtl212*gtu32 + Gtl213*gtu33;
- CCTK_REAL const Gtlu313 = Gtl311*gtu31 + Gtl312*gtu32 + Gtl313*gtu33;
+ CCTK_REAL Gtlu221 = Gtl212*gtu11 + Gtl222*gtu21 + Gtl223*gtu31;
- CCTK_REAL const Gtlu321 = Gtl312*gtu11 + Gtl322*gtu21 + Gtl323*gtu31;
+ CCTK_REAL Gtlu222 = Gtl212*gtu21 + Gtl222*gtu22 + Gtl223*gtu32;
- CCTK_REAL const Gtlu322 = Gtl312*gtu21 + Gtl322*gtu22 + Gtl323*gtu32;
+ CCTK_REAL Gtlu223 = Gtl212*gtu31 + Gtl222*gtu32 + Gtl223*gtu33;
- CCTK_REAL const Gtlu323 = Gtl312*gtu31 + Gtl322*gtu32 + Gtl323*gtu33;
+ CCTK_REAL Gtlu231 = Gtl213*gtu11 + Gtl223*gtu21 + Gtl233*gtu31;
- CCTK_REAL const Gtlu331 = Gtl313*gtu11 + Gtl323*gtu21 + Gtl333*gtu31;
+ CCTK_REAL Gtlu232 = Gtl213*gtu21 + Gtl223*gtu22 + Gtl233*gtu32;
- CCTK_REAL const Gtlu332 = Gtl313*gtu21 + Gtl323*gtu22 + Gtl333*gtu32;
+ CCTK_REAL Gtlu233 = Gtl213*gtu31 + Gtl223*gtu32 + Gtl233*gtu33;
- CCTK_REAL const Gtlu333 = Gtl313*gtu31 + Gtl323*gtu32 + Gtl333*gtu33;
+ CCTK_REAL Gtlu311 = Gtl311*gtu11 + Gtl312*gtu21 + Gtl313*gtu31;
- CCTK_REAL const Gt111 = Gtl111*gtu11 + Gtl211*gtu21 + Gtl311*gtu31;
+ CCTK_REAL Gtlu312 = Gtl311*gtu21 + Gtl312*gtu22 + Gtl313*gtu32;
- CCTK_REAL const Gt211 = Gtl111*gtu21 + Gtl211*gtu22 + Gtl311*gtu32;
+ CCTK_REAL Gtlu313 = Gtl311*gtu31 + Gtl312*gtu32 + Gtl313*gtu33;
- CCTK_REAL const Gt311 = Gtl111*gtu31 + Gtl211*gtu32 + Gtl311*gtu33;
+ CCTK_REAL Gtlu321 = Gtl312*gtu11 + Gtl322*gtu21 + Gtl323*gtu31;
- CCTK_REAL const Gt112 = Gtl112*gtu11 + Gtl212*gtu21 + Gtl312*gtu31;
+ CCTK_REAL Gtlu322 = Gtl312*gtu21 + Gtl322*gtu22 + Gtl323*gtu32;
- CCTK_REAL const Gt212 = Gtl112*gtu21 + Gtl212*gtu22 + Gtl312*gtu32;
+ CCTK_REAL Gtlu323 = Gtl312*gtu31 + Gtl322*gtu32 + Gtl323*gtu33;
- CCTK_REAL const Gt312 = Gtl112*gtu31 + Gtl212*gtu32 + Gtl312*gtu33;
+ CCTK_REAL Gtlu331 = Gtl313*gtu11 + Gtl323*gtu21 + Gtl333*gtu31;
- CCTK_REAL const Gt113 = Gtl113*gtu11 + Gtl213*gtu21 + Gtl313*gtu31;
+ CCTK_REAL Gtlu332 = Gtl313*gtu21 + Gtl323*gtu22 + Gtl333*gtu32;
- CCTK_REAL const Gt213 = Gtl113*gtu21 + Gtl213*gtu22 + Gtl313*gtu32;
+ CCTK_REAL Gtlu333 = Gtl313*gtu31 + Gtl323*gtu32 + Gtl333*gtu33;
- CCTK_REAL const Gt313 = Gtl113*gtu31 + Gtl213*gtu32 + Gtl313*gtu33;
+ CCTK_REAL Gt111 = Gtl111*gtu11 + Gtl211*gtu21 + Gtl311*gtu31;
- CCTK_REAL const Gt122 = Gtl122*gtu11 + Gtl222*gtu21 + Gtl322*gtu31;
+ CCTK_REAL Gt211 = Gtl111*gtu21 + Gtl211*gtu22 + Gtl311*gtu32;
- CCTK_REAL const Gt222 = Gtl122*gtu21 + Gtl222*gtu22 + Gtl322*gtu32;
+ CCTK_REAL Gt311 = Gtl111*gtu31 + Gtl211*gtu32 + Gtl311*gtu33;
- CCTK_REAL const Gt322 = Gtl122*gtu31 + Gtl222*gtu32 + Gtl322*gtu33;
+ CCTK_REAL Gt112 = Gtl112*gtu11 + Gtl212*gtu21 + Gtl312*gtu31;
- CCTK_REAL const Gt123 = Gtl123*gtu11 + Gtl223*gtu21 + Gtl323*gtu31;
+ CCTK_REAL Gt212 = Gtl112*gtu21 + Gtl212*gtu22 + Gtl312*gtu32;
- CCTK_REAL const Gt223 = Gtl123*gtu21 + Gtl223*gtu22 + Gtl323*gtu32;
+ CCTK_REAL Gt312 = Gtl112*gtu31 + Gtl212*gtu32 + Gtl312*gtu33;
- CCTK_REAL const Gt323 = Gtl123*gtu31 + Gtl223*gtu32 + Gtl323*gtu33;
+ CCTK_REAL Gt113 = Gtl113*gtu11 + Gtl213*gtu21 + Gtl313*gtu31;
- CCTK_REAL const Gt133 = Gtl133*gtu11 + Gtl233*gtu21 + Gtl333*gtu31;
+ CCTK_REAL Gt213 = Gtl113*gtu21 + Gtl213*gtu22 + Gtl313*gtu32;
- CCTK_REAL const Gt233 = Gtl133*gtu21 + Gtl233*gtu22 + Gtl333*gtu32;
+ CCTK_REAL Gt313 = Gtl113*gtu31 + Gtl213*gtu32 + Gtl313*gtu33;
- CCTK_REAL const Gt333 = Gtl133*gtu31 + Gtl233*gtu32 + Gtl333*gtu33;
+ CCTK_REAL Gt122 = Gtl122*gtu11 + Gtl222*gtu21 + Gtl322*gtu31;
- CCTK_REAL const Xtn1 = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 + Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
+ CCTK_REAL Gt222 = Gtl122*gtu21 + Gtl222*gtu22 + Gtl322*gtu32;
- CCTK_REAL const Xtn2 = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 + Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
+ CCTK_REAL Gt322 = Gtl122*gtu31 + Gtl222*gtu32 + Gtl322*gtu33;
- CCTK_REAL const Xtn3 = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 + Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
+ CCTK_REAL Gt123 = Gtl123*gtu11 + Gtl223*gtu21 + Gtl323*gtu31;
- CCTK_REAL const Rt11 = 3*(Gt111*Gtlu111 + Gt112*Gtlu112 + Gt113*Gtlu113) +
- 2*(Gt211*Gtlu121 + Gt212*Gtlu122 + Gt213*Gtlu123 + Gt311*Gtlu131 + Gt312*Gtlu132 + Gt313*Gtlu133) + Gt211*Gtlu211 +
- Gt212*Gtlu212 + Gt213*Gtlu213 + Gt311*Gtlu311 + Gt312*Gtlu312 + Gt313*Gtlu313 + gt11L*PDstandardNth1Xt1 +
- gt12L*PDstandardNth1Xt2 + gt13L*PDstandardNth1Xt3 +
- khalf*(-(gtu11*PDstandardNth11gt11) - 2*gtu21*PDstandardNth12gt11 - 2*gtu31*PDstandardNth13gt11 -
- gtu22*PDstandardNth22gt11 - 2*gtu32*PDstandardNth23gt11 - gtu33*PDstandardNth33gt11) + Gtl111*Xtn1 +
- Gtl112*Xtn2 + Gtl113*Xtn3;
+ CCTK_REAL Gt223 = Gtl123*gtu21 + Gtl223*gtu22 + Gtl323*gtu32;
- CCTK_REAL const Rt12 = khalf*(4*(Gt211*Gtlu221 + Gt212*Gtlu222 + Gt213*Gtlu223) +
- 2*(Gt112*Gtlu111 + Gt122*Gtlu112 + Gt123*Gtlu113 + Gt111*Gtlu121 + Gt212*Gtlu121 + Gt112*Gtlu122 +
- Gt222*Gtlu122 + Gt113*Gtlu123 + Gt223*Gtlu123 + Gt312*Gtlu131 + Gt322*Gtlu132 + Gt323*Gtlu133 +
- Gt111*Gtlu211 + Gt112*Gtlu212 + Gt113*Gtlu213 + Gt311*Gtlu231 + Gt312*Gtlu232 + Gt313*Gtlu233 +
- Gt311*Gtlu321 + Gt312*Gtlu322 + Gt313*Gtlu323) - gtu11*PDstandardNth11gt12 - 2*gtu21*PDstandardNth12gt12 -
- 2*gtu31*PDstandardNth13gt12 + gt12L*PDstandardNth1Xt1 + gt22L*PDstandardNth1Xt2 + gt23L*PDstandardNth1Xt3 -
- gtu22*PDstandardNth22gt12 - 2*gtu32*PDstandardNth23gt12 + gt11L*PDstandardNth2Xt1 + gt12L*PDstandardNth2Xt2 +
- gt13L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt12 + Gtl112*Xtn1 + Gtl211*Xtn1 + Gtl122*Xtn2 + Gtl212*Xtn2 +
- Gtl123*Xtn3 + Gtl213*Xtn3);
+ CCTK_REAL Gt323 = Gtl123*gtu31 + Gtl223*gtu32 + Gtl323*gtu33;
- CCTK_REAL const Rt13 = khalf*(2*(Gt113*Gtlu111 + Gt123*Gtlu112 + Gt133*Gtlu113 + Gt213*Gtlu121 + Gt223*Gtlu122 + Gt233*Gtlu123 +
- Gt111*Gtlu131 + Gt313*Gtlu131 + Gt112*Gtlu132 + Gt323*Gtlu132 + Gt113*Gtlu133 + Gt333*Gtlu133 +
- Gt211*Gtlu231 + Gt212*Gtlu232 + Gt213*Gtlu233 + Gt111*Gtlu311 + Gt112*Gtlu312 + Gt113*Gtlu313 +
- Gt211*Gtlu321 + Gt212*Gtlu322 + Gt213*Gtlu323) + 4*(Gt311*Gtlu331 + Gt312*Gtlu332 + Gt313*Gtlu333) -
- gtu11*PDstandardNth11gt13 - 2*gtu21*PDstandardNth12gt13 - 2*gtu31*PDstandardNth13gt13 + gt13L*PDstandardNth1Xt1 +
- gt23L*PDstandardNth1Xt2 + gt33L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt13 - 2*gtu32*PDstandardNth23gt13 -
- gtu33*PDstandardNth33gt13 + gt11L*PDstandardNth3Xt1 + gt12L*PDstandardNth3Xt2 + gt13L*PDstandardNth3Xt3 +
- Gtl113*Xtn1 + Gtl311*Xtn1 + Gtl123*Xtn2 + Gtl312*Xtn2 + Gtl133*Xtn3 + Gtl313*Xtn3);
+ CCTK_REAL Gt133 = Gtl133*gtu11 + Gtl233*gtu21 + Gtl333*gtu31;
- CCTK_REAL const Rt22 = Gt112*(Gtlu121 + 2*Gtlu211) + Gt122*(Gtlu122 + 2*Gtlu212) + Gt123*(Gtlu123 + 2*Gtlu213) +
- 3*(Gt212*Gtlu221 + Gt222*Gtlu222 + Gt223*Gtlu223) + 2*(Gt312*Gtlu231 + Gt322*Gtlu232 + Gt323*Gtlu233) +
- Gt312*Gtlu321 + Gt322*Gtlu322 + Gt323*Gtlu323 + gt12L*PDstandardNth2Xt1 + gt22L*PDstandardNth2Xt2 +
- gt23L*PDstandardNth2Xt3 + khalf*(-(gtu11*PDstandardNth11gt22) - 2*gtu21*PDstandardNth12gt22 -
- 2*gtu31*PDstandardNth13gt22 - gtu22*PDstandardNth22gt22 - 2*gtu32*PDstandardNth23gt22 - gtu33*PDstandardNth33gt22
- ) + Gtl212*Xtn1 + Gtl222*Xtn2 + Gtl223*Xtn3;
+ CCTK_REAL Gt233 = Gtl133*gtu21 + Gtl233*gtu22 + Gtl333*gtu32;
- CCTK_REAL const Rt23 = khalf*(2*(Gt112*Gtlu131 + Gt122*Gtlu132 + Gt123*Gtlu133 + Gt113*Gtlu211 + Gt123*Gtlu212 + Gt133*Gtlu213 +
- Gt213*Gtlu221 + Gt223*Gtlu222 + Gt233*Gtlu223 + Gt212*Gtlu231 + Gt313*Gtlu231 + Gt222*Gtlu232 +
- Gt323*Gtlu232 + Gt223*Gtlu233 + Gt333*Gtlu233 + Gt112*Gtlu311 + Gt122*Gtlu312 + Gt123*Gtlu313 +
- Gt212*Gtlu321 + Gt222*Gtlu322 + Gt223*Gtlu323) + 4*(Gt312*Gtlu331 + Gt322*Gtlu332 + Gt323*Gtlu333) -
- gtu11*PDstandardNth11gt23 - 2*gtu21*PDstandardNth12gt23 - 2*gtu31*PDstandardNth13gt23 -
- gtu22*PDstandardNth22gt23 - 2*gtu32*PDstandardNth23gt23 + gt13L*PDstandardNth2Xt1 + gt23L*PDstandardNth2Xt2 +
- gt33L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt23 + gt12L*PDstandardNth3Xt1 + gt22L*PDstandardNth3Xt2 +
- gt23L*PDstandardNth3Xt3 + Gtl213*Xtn1 + Gtl312*Xtn1 + Gtl223*Xtn2 + Gtl322*Xtn2 + Gtl233*Xtn3 + Gtl323*Xtn3);
+ CCTK_REAL Gt333 = Gtl133*gtu31 + Gtl233*gtu32 + Gtl333*gtu33;
- CCTK_REAL const Rt33 = Gt113*(Gtlu131 + 2*Gtlu311) + Gt123*(Gtlu132 + 2*Gtlu312) + Gt133*(Gtlu133 + 2*Gtlu313) +
- Gt213*(Gtlu231 + 2*Gtlu321) + Gt223*(Gtlu232 + 2*Gtlu322) + Gt233*(Gtlu233 + 2*Gtlu323) +
- 3*(Gt313*Gtlu331 + Gt323*Gtlu332 + Gt333*Gtlu333) +
- khalf*(-(gtu11*PDstandardNth11gt33) - 2*gtu21*PDstandardNth12gt33 - 2*gtu31*PDstandardNth13gt33 -
- gtu22*PDstandardNth22gt33 - 2*gtu32*PDstandardNth23gt33 - gtu33*PDstandardNth33gt33) + gt13L*PDstandardNth3Xt1 +
- gt23L*PDstandardNth3Xt2 + gt33L*PDstandardNth3Xt3 + Gtl313*Xtn1 + Gtl323*Xtn2 + Gtl333*Xtn3;
+ CCTK_REAL Xtn1 = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 +
+ Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
- CCTK_REAL const fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
+ CCTK_REAL Xtn2 = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 +
+ Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
- CCTK_REAL const cdphi1 = fac1*PDstandardNth1phi;
+ CCTK_REAL Xtn3 = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 +
+ Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
- CCTK_REAL const cdphi2 = fac1*PDstandardNth2phi;
+ CCTK_REAL Rt11 = 3*(Gt111*Gtlu111 + Gt112*Gtlu112 + Gt113*Gtlu113) +
+ 2*(Gt211*Gtlu121 + Gt212*Gtlu122 + Gt213*Gtlu123 + Gt311*Gtlu131 +
+ Gt312*Gtlu132 + Gt313*Gtlu133) + Gt211*Gtlu211 + Gt212*Gtlu212 +
+ Gt213*Gtlu213 + Gt311*Gtlu311 + Gt312*Gtlu312 + Gt313*Gtlu313 +
+ gt11L*PDstandardNth1Xt1 + gt12L*PDstandardNth1Xt2 +
+ gt13L*PDstandardNth1Xt3 + khalf*(-(gtu11*PDstandardNth11gt11) -
+ 2*gtu21*PDstandardNth12gt11 - 2*gtu31*PDstandardNth13gt11 -
+ gtu22*PDstandardNth22gt11 - 2*gtu32*PDstandardNth23gt11 -
+ gtu33*PDstandardNth33gt11) + Gtl111*Xtn1 + Gtl112*Xtn2 + Gtl113*Xtn3;
- CCTK_REAL const cdphi3 = fac1*PDstandardNth3phi;
+ CCTK_REAL Rt12 = khalf*(4*(Gt211*Gtlu221 + Gt212*Gtlu222 +
+ Gt213*Gtlu223) + 2*(Gt112*Gtlu111 + Gt122*Gtlu112 + Gt123*Gtlu113 +
+ Gt111*Gtlu121 + Gt212*Gtlu121 + Gt112*Gtlu122 + Gt222*Gtlu122 +
+ Gt113*Gtlu123 + Gt223*Gtlu123 + Gt312*Gtlu131 + Gt322*Gtlu132 +
+ Gt323*Gtlu133 + Gt111*Gtlu211 + Gt112*Gtlu212 + Gt113*Gtlu213 +
+ Gt311*Gtlu231 + Gt312*Gtlu232 + Gt313*Gtlu233 + Gt311*Gtlu321 +
+ Gt312*Gtlu322 + Gt313*Gtlu323) - gtu11*PDstandardNth11gt12 -
+ 2*gtu21*PDstandardNth12gt12 - 2*gtu31*PDstandardNth13gt12 +
+ gt12L*PDstandardNth1Xt1 + gt22L*PDstandardNth1Xt2 +
+ gt23L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt12 -
+ 2*gtu32*PDstandardNth23gt12 + gt11L*PDstandardNth2Xt1 +
+ gt12L*PDstandardNth2Xt2 + gt13L*PDstandardNth2Xt3 -
+ gtu33*PDstandardNth33gt12 + Gtl112*Xtn1 + Gtl211*Xtn1 + Gtl122*Xtn2 +
+ Gtl212*Xtn2 + Gtl123*Xtn3 + Gtl213*Xtn3);
- CCTK_REAL const fac2 = IfThen(conformalMethod,khalf*pow(phiL,-2),0);
+ CCTK_REAL Rt13 = khalf*(2*(Gt113*Gtlu111 + Gt123*Gtlu112 +
+ Gt133*Gtlu113 + Gt213*Gtlu121 + Gt223*Gtlu122 + Gt233*Gtlu123 +
+ Gt111*Gtlu131 + Gt313*Gtlu131 + Gt112*Gtlu132 + Gt323*Gtlu132 +
+ Gt113*Gtlu133 + Gt333*Gtlu133 + Gt211*Gtlu231 + Gt212*Gtlu232 +
+ Gt213*Gtlu233 + Gt111*Gtlu311 + Gt112*Gtlu312 + Gt113*Gtlu313 +
+ Gt211*Gtlu321 + Gt212*Gtlu322 + Gt213*Gtlu323) + 4*(Gt311*Gtlu331 +
+ Gt312*Gtlu332 + Gt313*Gtlu333) - gtu11*PDstandardNth11gt13 -
+ 2*gtu21*PDstandardNth12gt13 - 2*gtu31*PDstandardNth13gt13 +
+ gt13L*PDstandardNth1Xt1 + gt23L*PDstandardNth1Xt2 +
+ gt33L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt13 -
+ 2*gtu32*PDstandardNth23gt13 - gtu33*PDstandardNth33gt13 +
+ gt11L*PDstandardNth3Xt1 + gt12L*PDstandardNth3Xt2 +
+ gt13L*PDstandardNth3Xt3 + Gtl113*Xtn1 + Gtl311*Xtn1 + Gtl123*Xtn2 +
+ Gtl312*Xtn2 + Gtl133*Xtn3 + Gtl313*Xtn3);
- CCTK_REAL const cdphi211 = -(fac1*(-PDstandardNth11phi + Gt111*PDstandardNth1phi + Gt211*PDstandardNth2phi +
- Gt311*PDstandardNth3phi)) + fac2*SQR(PDstandardNth1phi);
+ CCTK_REAL Rt22 = Gt112*(Gtlu121 + 2*Gtlu211) + Gt122*(Gtlu122 +
+ 2*Gtlu212) + Gt123*(Gtlu123 + 2*Gtlu213) + 3*(Gt212*Gtlu221 +
+ Gt222*Gtlu222 + Gt223*Gtlu223) + 2*(Gt312*Gtlu231 + Gt322*Gtlu232 +
+ Gt323*Gtlu233) + Gt312*Gtlu321 + Gt322*Gtlu322 + Gt323*Gtlu323 +
+ gt12L*PDstandardNth2Xt1 + gt22L*PDstandardNth2Xt2 +
+ gt23L*PDstandardNth2Xt3 + khalf*(-(gtu11*PDstandardNth11gt22) -
+ 2*gtu21*PDstandardNth12gt22 - 2*gtu31*PDstandardNth13gt22 -
+ gtu22*PDstandardNth22gt22 - 2*gtu32*PDstandardNth23gt22 -
+ gtu33*PDstandardNth33gt22) + Gtl212*Xtn1 + Gtl222*Xtn2 + Gtl223*Xtn3;
+
+ CCTK_REAL Rt23 = khalf*(2*(Gt112*Gtlu131 + Gt122*Gtlu132 +
+ Gt123*Gtlu133 + Gt113*Gtlu211 + Gt123*Gtlu212 + Gt133*Gtlu213 +
+ Gt213*Gtlu221 + Gt223*Gtlu222 + Gt233*Gtlu223 + Gt212*Gtlu231 +
+ Gt313*Gtlu231 + Gt222*Gtlu232 + Gt323*Gtlu232 + Gt223*Gtlu233 +
+ Gt333*Gtlu233 + Gt112*Gtlu311 + Gt122*Gtlu312 + Gt123*Gtlu313 +
+ Gt212*Gtlu321 + Gt222*Gtlu322 + Gt223*Gtlu323) + 4*(Gt312*Gtlu331 +
+ Gt322*Gtlu332 + Gt323*Gtlu333) - gtu11*PDstandardNth11gt23 -
+ 2*gtu21*PDstandardNth12gt23 - 2*gtu31*PDstandardNth13gt23 -
+ gtu22*PDstandardNth22gt23 - 2*gtu32*PDstandardNth23gt23 +
+ gt13L*PDstandardNth2Xt1 + gt23L*PDstandardNth2Xt2 +
+ gt33L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt23 +
+ gt12L*PDstandardNth3Xt1 + gt22L*PDstandardNth3Xt2 +
+ gt23L*PDstandardNth3Xt3 + Gtl213*Xtn1 + Gtl312*Xtn1 + Gtl223*Xtn2 +
+ Gtl322*Xtn2 + Gtl233*Xtn3 + Gtl323*Xtn3);
- CCTK_REAL const cdphi212 = fac2*PDstandardNth1phi*PDstandardNth2phi -
- fac1*(-PDstandardNth12phi + Gt112*PDstandardNth1phi + Gt212*PDstandardNth2phi + Gt312*PDstandardNth3phi);
+ CCTK_REAL Rt33 = Gt113*(Gtlu131 + 2*Gtlu311) + Gt123*(Gtlu132 +
+ 2*Gtlu312) + Gt133*(Gtlu133 + 2*Gtlu313) + Gt213*(Gtlu231 + 2*Gtlu321)
+ + Gt223*(Gtlu232 + 2*Gtlu322) + Gt233*(Gtlu233 + 2*Gtlu323) +
+ 3*(Gt313*Gtlu331 + Gt323*Gtlu332 + Gt333*Gtlu333) +
+ khalf*(-(gtu11*PDstandardNth11gt33) - 2*gtu21*PDstandardNth12gt33 -
+ 2*gtu31*PDstandardNth13gt33 - gtu22*PDstandardNth22gt33 -
+ 2*gtu32*PDstandardNth23gt33 - gtu33*PDstandardNth33gt33) +
+ gt13L*PDstandardNth3Xt1 + gt23L*PDstandardNth3Xt2 +
+ gt33L*PDstandardNth3Xt3 + Gtl313*Xtn1 + Gtl323*Xtn2 + Gtl333*Xtn3;
- CCTK_REAL const cdphi213 = fac2*PDstandardNth1phi*PDstandardNth3phi -
- fac1*(-PDstandardNth13phi + Gt113*PDstandardNth1phi + Gt213*PDstandardNth2phi + Gt313*PDstandardNth3phi);
+ CCTK_REAL fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
- CCTK_REAL const cdphi222 = -(fac1*(Gt122*PDstandardNth1phi - PDstandardNth22phi + Gt222*PDstandardNth2phi +
- Gt322*PDstandardNth3phi)) + fac2*SQR(PDstandardNth2phi);
+ CCTK_REAL cdphi1 = fac1*PDstandardNth1phi;
- CCTK_REAL const cdphi223 = fac2*PDstandardNth2phi*PDstandardNth3phi -
- fac1*(Gt123*PDstandardNth1phi - PDstandardNth23phi + Gt223*PDstandardNth2phi + Gt323*PDstandardNth3phi);
+ CCTK_REAL cdphi2 = fac1*PDstandardNth2phi;
- CCTK_REAL const cdphi233 = -(fac1*(Gt133*PDstandardNth1phi + Gt233*PDstandardNth2phi - PDstandardNth33phi +
- Gt333*PDstandardNth3phi)) + fac2*SQR(PDstandardNth3phi);
+ CCTK_REAL cdphi3 = fac1*PDstandardNth3phi;
- CCTK_REAL const Rphi11 = -2*(cdphi211 + 2*(-1 + gt11L*gtu11)*SQR(cdphi1) +
- gt11L*(cdphi211*gtu11 + 4*(cdphi1*(cdphi2*gtu21 + cdphi3*gtu31) + cdphi2*cdphi3*gtu32) + cdphi233*gtu33 +
- gtu22*(cdphi222 + 2*SQR(cdphi2)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu33*SQR(cdphi3))));
+ CCTK_REAL fac2 = IfThen(conformalMethod,khalf*pow(phiL,-2),0);
- CCTK_REAL const Rphi12 = -2*(cdphi212 + cdphi1*(cdphi2*(-2 + 4*gt12L*gtu21) + 4*cdphi3*gt12L*gtu31) +
- gt12L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32 +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) +
- gtu33*(cdphi233 + 2*SQR(cdphi3))));
+ CCTK_REAL cdphi211 = -(fac1*(-PDstandardNth11phi +
+ Gt111*PDstandardNth1phi + Gt211*PDstandardNth2phi +
+ Gt311*PDstandardNth3phi)) + fac2*SQR(PDstandardNth1phi);
- CCTK_REAL const Rphi13 = -2*(cdphi213 + cdphi1*(4*cdphi2*gt13L*gtu21 + cdphi3*(-2 + 4*gt13L*gtu31)) +
- gt13L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32 +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) +
- gtu33*(cdphi233 + 2*SQR(cdphi3))));
+ CCTK_REAL cdphi212 = fac2*PDstandardNth1phi*PDstandardNth2phi -
+ fac1*(-PDstandardNth12phi + Gt112*PDstandardNth1phi +
+ Gt212*PDstandardNth2phi + Gt312*PDstandardNth3phi);
+
+ CCTK_REAL cdphi213 = fac2*PDstandardNth1phi*PDstandardNth3phi -
+ fac1*(-PDstandardNth13phi + Gt113*PDstandardNth1phi +
+ Gt213*PDstandardNth2phi + Gt313*PDstandardNth3phi);
- CCTK_REAL const Rphi22 = -2*(cdphi222 + 2*(-1 + gt22L*gtu22)*SQR(cdphi2) +
- gt22L*(cdphi222*gtu22 + 4*(cdphi1*cdphi3*gtu31 + cdphi2*(cdphi1*gtu21 + cdphi3*gtu32)) + cdphi233*gtu33 +
- gtu11*(cdphi211 + 2*SQR(cdphi1)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu33*SQR(cdphi3))));
+ CCTK_REAL cdphi222 = -(fac1*(Gt122*PDstandardNth1phi -
+ PDstandardNth22phi + Gt222*PDstandardNth2phi +
+ Gt322*PDstandardNth3phi)) + fac2*SQR(PDstandardNth2phi);
+
+ CCTK_REAL cdphi223 = fac2*PDstandardNth2phi*PDstandardNth3phi -
+ fac1*(Gt123*PDstandardNth1phi - PDstandardNth23phi +
+ Gt223*PDstandardNth2phi + Gt323*PDstandardNth3phi);
- CCTK_REAL const Rphi23 = -2*(cdphi223 + cdphi2*(4*cdphi1*gt23L*gtu21 + cdphi3*(-2 + 4*gt23L*gtu32)) +
- gt23L*(cdphi222*gtu22 + 4*cdphi1*cdphi3*gtu31 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu22*SQR(cdphi2)) + gtu33*(cdphi233 + 2*SQR(cdphi3))));
+ CCTK_REAL cdphi233 = -(fac1*(Gt133*PDstandardNth1phi +
+ Gt233*PDstandardNth2phi - PDstandardNth33phi +
+ Gt333*PDstandardNth3phi)) + fac2*SQR(PDstandardNth3phi);
- CCTK_REAL const Rphi33 = -2*(cdphi233 + gt33L*((4*cdphi1*cdphi2 + 2*cdphi212)*gtu21 + 4*cdphi3*(cdphi1*gtu31 + cdphi2*gtu32) +
- 2*(cdphi213*gtu31 + cdphi223*gtu32) + cdphi233*gtu33 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
- gtu22*(cdphi222 + 2*SQR(cdphi2))) + 2*(-1 + gt33L*gtu33)*SQR(cdphi3));
+ CCTK_REAL Rphi11 = -2*(cdphi211 + 2*(-1 + gt11L*gtu11)*SQR(cdphi1) +
+ gt11L*(cdphi211*gtu11 + 4*(cdphi1*(cdphi2*gtu21 + cdphi3*gtu31) +
+ cdphi2*cdphi3*gtu32) + cdphi233*gtu33 + gtu22*(cdphi222 +
+ 2*SQR(cdphi2)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu33*SQR(cdphi3))));
- CCTK_REAL const Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
+ CCTK_REAL Rphi12 = -2*(cdphi212 + cdphi1*(cdphi2*(-2 + 4*gt12L*gtu21)
+ + 4*cdphi3*gt12L*gtu31) + gt12L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32
+ + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) + gtu33*(cdphi233
+ + 2*SQR(cdphi3))));
- CCTK_REAL const Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
+ CCTK_REAL Rphi13 = -2*(cdphi213 + cdphi1*(4*cdphi2*gt13L*gtu21 +
+ cdphi3*(-2 + 4*gt13L*gtu31)) + gt13L*(cdphi211*gtu11 +
+ 4*cdphi2*cdphi3*gtu32 + 2*(cdphi212*gtu21 + cdphi213*gtu31 +
+ cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2))
+ + gtu33*(cdphi233 + 2*SQR(cdphi3))));
- CCTK_REAL const Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
+ CCTK_REAL Rphi22 = -2*(cdphi222 + 2*(-1 + gt22L*gtu22)*SQR(cdphi2) +
+ gt22L*(cdphi222*gtu22 + 4*(cdphi1*cdphi3*gtu31 + cdphi2*(cdphi1*gtu21 +
+ cdphi3*gtu32)) + cdphi233*gtu33 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
+ 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu33*SQR(cdphi3))));
- CCTK_REAL const Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
+ CCTK_REAL Rphi23 = -2*(cdphi223 + cdphi2*(4*cdphi1*gt23L*gtu21 +
+ cdphi3*(-2 + 4*gt23L*gtu32)) + gt23L*(cdphi222*gtu22 +
+ 4*cdphi1*cdphi3*gtu31 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
+ 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu22*SQR(cdphi2)) + gtu33*(cdphi233 + 2*SQR(cdphi3))));
- CCTK_REAL const Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
+ CCTK_REAL Rphi33 = -2*(cdphi233 + gt33L*((4*cdphi1*cdphi2 +
+ 2*cdphi212)*gtu21 + 4*cdphi3*(cdphi1*gtu31 + cdphi2*gtu32) +
+ 2*(cdphi213*gtu31 + cdphi223*gtu32) + cdphi233*gtu33 + gtu11*(cdphi211
+ + 2*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2))) + 2*(-1 +
+ gt33L*gtu33)*SQR(cdphi3));
- CCTK_REAL const Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
+ CCTK_REAL Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
- CCTK_REAL const Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
+ CCTK_REAL Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
- CCTK_REAL const Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
+ CCTK_REAL Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
- CCTK_REAL const Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
+ CCTK_REAL Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
- CCTK_REAL const e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
+ CCTK_REAL Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
- CCTK_REAL const em4phi = INV(e4phi);
+ CCTK_REAL Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
- CCTK_REAL const g11 = e4phi*gt11L;
+ CCTK_REAL Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
- CCTK_REAL const g12 = e4phi*gt12L;
+ CCTK_REAL Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
- CCTK_REAL const g13 = e4phi*gt13L;
+ CCTK_REAL Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
- CCTK_REAL const g22 = e4phi*gt22L;
+ CCTK_REAL e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
- CCTK_REAL const g23 = e4phi*gt23L;
+ CCTK_REAL em4phi = INV(e4phi);
- CCTK_REAL const g33 = e4phi*gt33L;
+ CCTK_REAL g11 = e4phi*gt11L;
- CCTK_REAL const gu11 = em4phi*gtu11;
+ CCTK_REAL g12 = e4phi*gt12L;
- CCTK_REAL const gu21 = em4phi*gtu21;
+ CCTK_REAL g13 = e4phi*gt13L;
- CCTK_REAL const gu31 = em4phi*gtu31;
+ CCTK_REAL g22 = e4phi*gt22L;
- CCTK_REAL const gu22 = em4phi*gtu22;
+ CCTK_REAL g23 = e4phi*gt23L;
- CCTK_REAL const gu32 = em4phi*gtu32;
+ CCTK_REAL g33 = e4phi*gt33L;
- CCTK_REAL const gu33 = em4phi*gtu33;
+ CCTK_REAL gu11 = em4phi*gtu11;
- CCTK_REAL const G111 = Gt111 + cdphi1*(4 - 2*gt11L*gtu11) - 2*gt11L*(cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL gu21 = em4phi*gtu21;
- CCTK_REAL const G211 = Gt211 - 2*gt11L*(cdphi1*gtu21 + cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL gu31 = em4phi*gtu31;
- CCTK_REAL const G311 = Gt311 - 2*gt11L*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL gu22 = em4phi*gtu22;
- CCTK_REAL const G112 = Gt112 + cdphi2*(2 - 2*gt12L*gtu21) - 2*gt12L*(cdphi1*gtu11 + cdphi3*gtu31);
+ CCTK_REAL gu32 = em4phi*gtu32;
- CCTK_REAL const G212 = Gt212 + cdphi1*(2 - 2*gt12L*gtu21) - 2*gt12L*(cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL gu33 = em4phi*gtu33;
- CCTK_REAL const G312 = Gt312 - 2*gt12L*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G111 = Gt111 + cdphi1*(4 - 2*gt11L*gtu11) -
+ 2*gt11L*(cdphi2*gtu21 + cdphi3*gtu31);
- CCTK_REAL const G113 = Gt113 - 2*gt13L*(cdphi1*gtu11 + cdphi2*gtu21) + cdphi3*(2 - 2*gt13L*gtu31);
+ CCTK_REAL G211 = Gt211 - 2*gt11L*(cdphi1*gtu21 + cdphi2*gtu22 +
+ cdphi3*gtu32);
- CCTK_REAL const G213 = Gt213 - 2*gt13L*(cdphi1*gtu21 + cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL G311 = Gt311 - 2*gt11L*(cdphi1*gtu31 + cdphi2*gtu32 +
+ cdphi3*gtu33);
- CCTK_REAL const G313 = Gt313 + cdphi1*(2 - 2*gt13L*gtu31) - 2*gt13L*(cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G112 = Gt112 + cdphi2*(2 - 2*gt12L*gtu21) -
+ 2*gt12L*(cdphi1*gtu11 + cdphi3*gtu31);
- CCTK_REAL const G122 = Gt122 - 2*gt22L*(cdphi1*gtu11 + cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL G212 = Gt212 + cdphi1*(2 - 2*gt12L*gtu21) -
+ 2*gt12L*(cdphi2*gtu22 + cdphi3*gtu32);
- CCTK_REAL const G222 = Gt222 + cdphi2*(4 - 2*gt22L*gtu22) - 2*gt22L*(cdphi1*gtu21 + cdphi3*gtu32);
+ CCTK_REAL G312 = Gt312 - 2*gt12L*(cdphi1*gtu31 + cdphi2*gtu32 +
+ cdphi3*gtu33);
- CCTK_REAL const G322 = Gt322 - 2*gt22L*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33);
+ CCTK_REAL G113 = Gt113 - 2*gt13L*(cdphi1*gtu11 + cdphi2*gtu21) +
+ cdphi3*(2 - 2*gt13L*gtu31);
- CCTK_REAL const G123 = Gt123 - 2*gt23L*(cdphi1*gtu11 + cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL G213 = Gt213 - 2*gt13L*(cdphi1*gtu21 + cdphi2*gtu22 +
+ cdphi3*gtu32);
- CCTK_REAL const G223 = Gt223 - 2*gt23L*(cdphi1*gtu21 + cdphi2*gtu22) + cdphi3*(2 - 2*gt23L*gtu32);
+ CCTK_REAL G313 = Gt313 + cdphi1*(2 - 2*gt13L*gtu31) -
+ 2*gt13L*(cdphi2*gtu32 + cdphi3*gtu33);
- CCTK_REAL const G323 = Gt323 + cdphi2*(2 - 2*gt23L*gtu32) - 2*gt23L*(cdphi1*gtu31 + cdphi3*gtu33);
+ CCTK_REAL G122 = Gt122 - 2*gt22L*(cdphi1*gtu11 + cdphi2*gtu21 +
+ cdphi3*gtu31);
- CCTK_REAL const G133 = Gt133 - 2*gt33L*(cdphi1*gtu11 + cdphi2*gtu21 + cdphi3*gtu31);
+ CCTK_REAL G222 = Gt222 + cdphi2*(4 - 2*gt22L*gtu22) -
+ 2*gt22L*(cdphi1*gtu21 + cdphi3*gtu32);
- CCTK_REAL const G233 = Gt233 - 2*gt33L*(cdphi1*gtu21 + cdphi2*gtu22 + cdphi3*gtu32);
+ CCTK_REAL G322 = Gt322 - 2*gt22L*(cdphi1*gtu31 + cdphi2*gtu32 +
+ cdphi3*gtu33);
- CCTK_REAL const G333 = Gt333 - 2*gt33L*(cdphi1*gtu31 + cdphi2*gtu32) + cdphi3*(4 - 2*gt33L*gtu33);
+ CCTK_REAL G123 = Gt123 - 2*gt23L*(cdphi1*gtu11 + cdphi2*gtu21 +
+ cdphi3*gtu31);
- CCTK_REAL const R11 = Rphi11 + Rt11;
+ CCTK_REAL G223 = Gt223 - 2*gt23L*(cdphi1*gtu21 + cdphi2*gtu22) +
+ cdphi3*(2 - 2*gt23L*gtu32);
- CCTK_REAL const R12 = Rphi12 + Rt12;
+ CCTK_REAL G323 = Gt323 + cdphi2*(2 - 2*gt23L*gtu32) -
+ 2*gt23L*(cdphi1*gtu31 + cdphi3*gtu33);
- CCTK_REAL const R13 = Rphi13 + Rt13;
+ CCTK_REAL G133 = Gt133 - 2*gt33L*(cdphi1*gtu11 + cdphi2*gtu21 +
+ cdphi3*gtu31);
- CCTK_REAL const R22 = Rphi22 + Rt22;
+ CCTK_REAL G233 = Gt233 - 2*gt33L*(cdphi1*gtu21 + cdphi2*gtu22 +
+ cdphi3*gtu32);
- CCTK_REAL const R23 = Rphi23 + Rt23;
+ CCTK_REAL G333 = Gt333 - 2*gt33L*(cdphi1*gtu31 + cdphi2*gtu32) +
+ cdphi3*(4 - 2*gt33L*gtu33);
- CCTK_REAL const R33 = Rphi33 + Rt33;
+ CCTK_REAL R11 = Rphi11 + Rt11;
- CCTK_REAL const rho = pow(alphaL,-2)*(eTttL - 2*(beta2L*eTtyL + beta3L*eTtzL) +
- 2*(beta1L*(-eTtxL + beta2L*eTxyL + beta3L*eTxzL) + beta2L*beta3L*eTyzL) + eTxxL*SQR(beta1L) + eTyyL*SQR(beta2L) +
- eTzzL*SQR(beta3L));
+ CCTK_REAL R12 = Rphi12 + Rt12;
- CCTK_REAL const trS = eTxxL*gu11 + eTyyL*gu22 + 2*(eTxyL*gu21 + eTxzL*gu31 + eTyzL*gu32) + eTzzL*gu33;
+ CCTK_REAL R13 = Rphi13 + Rt13;
- CCTK_REAL const trKrhsL = PDupwindNth1(trK, i, j, k)*beta1L + PDupwindNth2(trK, i, j, k)*beta2L +
- PDupwindNth3(trK, i, j, k)*beta3L + (G111*gu11 + G122*gu22 + 2.*(G112*gu21 + G113*gu31 + G123*gu32) + G133*gu33)*
- PDstandardNth1alpha - 2.*(gu21*PDstandardNth12alpha + gu31*PDstandardNth13alpha + gu32*PDstandardNth23alpha) +
- (G211*gu11 + G222*gu22 + 2.*(G212*gu21 + G213*gu31 + G223*gu32) + G233*gu33)*PDstandardNth2alpha -
- 1.*(gu11*PDstandardNth11alpha + gu22*PDstandardNth22alpha + gu33*PDstandardNth33alpha) +
- (G311*gu11 + G322*gu22 + 2.*(G313*gu31 + G323*gu32) + G333*gu33)*PDstandardNth3alpha +
- 2.*(alphaL*(Atm12*Atm21 + Atm13*Atm31 + Atm23*Atm32) + G312*gu21*PDstandardNth3alpha) +
- alphaL*(12.56637061435917295385057353311801153679*(rho + trS) + SQR(Atm11) + SQR(Atm22) + SQR(Atm33) +
- 0.3333333333333333333333333333333333333333*SQR(trKL));
+ CCTK_REAL R22 = Rphi22 + Rt22;
- CCTK_REAL const Ats11 = -PDstandardNth11alpha + G111*PDstandardNth1alpha + G211*PDstandardNth2alpha + G311*PDstandardNth3alpha +
- alphaL*R11;
+ CCTK_REAL R23 = Rphi23 + Rt23;
- CCTK_REAL const Ats12 = -PDstandardNth12alpha + G112*PDstandardNth1alpha + G212*PDstandardNth2alpha + G312*PDstandardNth3alpha +
- alphaL*R12;
+ CCTK_REAL R33 = Rphi33 + Rt33;
- CCTK_REAL const Ats13 = -PDstandardNth13alpha + G113*PDstandardNth1alpha + G213*PDstandardNth2alpha + G313*PDstandardNth3alpha +
- alphaL*R13;
+ CCTK_REAL rho = pow(alphaL,-2)*(eTttL - 2*(beta2L*eTtyL +
+ beta3L*eTtzL) + 2*(beta1L*(-eTtxL + beta2L*eTxyL + beta3L*eTxzL) +
+ beta2L*beta3L*eTyzL) + eTxxL*SQR(beta1L) + eTyyL*SQR(beta2L) +
+ eTzzL*SQR(beta3L));
- CCTK_REAL const Ats22 = G122*PDstandardNth1alpha - PDstandardNth22alpha + G222*PDstandardNth2alpha + G322*PDstandardNth3alpha +
- alphaL*R22;
+ CCTK_REAL trS = eTxxL*gu11 + eTyyL*gu22 + 2*(eTxyL*gu21 + eTxzL*gu31 +
+ eTyzL*gu32) + eTzzL*gu33;
- CCTK_REAL const Ats23 = G123*PDstandardNth1alpha - PDstandardNth23alpha + G223*PDstandardNth2alpha + G323*PDstandardNth3alpha +
- alphaL*R23;
-
- CCTK_REAL const Ats33 = G133*PDstandardNth1alpha + G233*PDstandardNth2alpha - PDstandardNth33alpha + G333*PDstandardNth3alpha +
- alphaL*R33;
-
- CCTK_REAL const trAts = Ats11*gu11 + Ats22*gu22 + 2*(Ats12*gu21 + Ats13*gu31 + Ats23*gu32) + Ats33*gu33;
-
- CCTK_REAL const At11rhsL = -2.*alphaL*(At11L*Atm11 + At12L*Atm21 + At13L*Atm31) + PDupwindNth1(At11, i, j, k)*beta1L +
- PDupwindNth2(At11, i, j, k)*beta2L + PDupwindNth3(At11, i, j, k)*beta3L +
- 2.*(At12L*PDstandardNth1beta2 + At13L*PDstandardNth1beta3) +
- At11L*(1.333333333333333333333333333333333333333*PDstandardNth1beta1 -
- 0.6666666666666666666666666666666666666667*(PDstandardNth2beta2 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats11 - 0.3333333333333333333333333333333333333333*g11*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTxxL + 8.377580409572781969233715688745341024526*g11*trS));
-
- CCTK_REAL const At12rhsL = -2.*alphaL*(At11L*Atm12 + At12L*Atm22 + At13L*Atm32) + PDupwindNth1(At12, i, j, k)*beta1L +
- PDupwindNth2(At12, i, j, k)*beta2L + PDupwindNth3(At12, i, j, k)*beta3L + At22L*PDstandardNth1beta2 +
- At23L*PDstandardNth1beta3 + At11L*PDstandardNth2beta1 + At13L*PDstandardNth2beta3 +
- At12L*(0.3333333333333333333333333333333333333333*(PDstandardNth1beta1 + PDstandardNth2beta2) -
- 0.6666666666666666666666666666666666666667*PDstandardNth3beta3 + alphaL*trKL) +
- em4phi*(Ats12 - 0.3333333333333333333333333333333333333333*g12*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTxyL + 8.377580409572781969233715688745341024526*g12*trS));
-
- CCTK_REAL const At13rhsL = -2.*alphaL*(At11L*Atm13 + At12L*Atm23 + At13L*Atm33) + PDupwindNth1(At13, i, j, k)*beta1L +
- PDupwindNth2(At13, i, j, k)*beta2L + PDupwindNth3(At13, i, j, k)*beta3L + At23L*PDstandardNth1beta2 +
- At33L*PDstandardNth1beta3 + At11L*PDstandardNth3beta1 + At12L*PDstandardNth3beta2 +
- At13L*(-0.6666666666666666666666666666666666666667*PDstandardNth2beta2 +
- 0.3333333333333333333333333333333333333333*(PDstandardNth1beta1 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats13 - 0.3333333333333333333333333333333333333333*g13*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTxzL + 8.377580409572781969233715688745341024526*g13*trS));
-
- CCTK_REAL const At22rhsL = -2.*alphaL*(At12L*Atm12 + At22L*Atm22 + At23L*Atm32) + PDupwindNth1(At22, i, j, k)*beta1L +
- PDupwindNth2(At22, i, j, k)*beta2L + PDupwindNth3(At22, i, j, k)*beta3L +
- 2.*(At12L*PDstandardNth2beta1 + At23L*PDstandardNth2beta3) +
- At22L*(1.333333333333333333333333333333333333333*PDstandardNth2beta2 -
- 0.6666666666666666666666666666666666666667*(PDstandardNth1beta1 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats22 - 0.3333333333333333333333333333333333333333*g22*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTyyL + 8.377580409572781969233715688745341024526*g22*trS));
-
- CCTK_REAL const At23rhsL = -2.*alphaL*(At12L*Atm13 + At22L*Atm23 + At23L*Atm33) + PDupwindNth1(At23, i, j, k)*beta1L +
- PDupwindNth2(At23, i, j, k)*beta2L + PDupwindNth3(At23, i, j, k)*beta3L + At13L*PDstandardNth2beta1 +
- At33L*PDstandardNth2beta3 + At12L*PDstandardNth3beta1 + At22L*PDstandardNth3beta2 +
- At23L*(-0.6666666666666666666666666666666666666667*PDstandardNth1beta1 +
- 0.3333333333333333333333333333333333333333*(PDstandardNth2beta2 + PDstandardNth3beta3) + alphaL*trKL) +
- em4phi*(Ats23 - 0.3333333333333333333333333333333333333333*g23*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTyzL + 8.377580409572781969233715688745341024526*g23*trS));
-
- CCTK_REAL const At33rhsL = -2.*alphaL*(At13L*Atm13 + At23L*Atm23 + At33L*Atm33) + PDupwindNth1(At33, i, j, k)*beta1L +
- PDupwindNth2(At33, i, j, k)*beta2L + PDupwindNth3(At33, i, j, k)*beta3L +
- 2.*(At13L*PDstandardNth3beta1 + At23L*PDstandardNth3beta2) +
- At33L*(-0.6666666666666666666666666666666666666667*(PDstandardNth1beta1 + PDstandardNth2beta2) +
- 1.333333333333333333333333333333333333333*PDstandardNth3beta3 + alphaL*trKL) +
- em4phi*(Ats33 - 0.3333333333333333333333333333333333333333*g33*trAts +
- alphaL*(-25.13274122871834590770114706623602307358*eTzzL + 8.377580409572781969233715688745341024526*g33*trS));
-
- CCTK_REAL const alpharhsL = (PDupwindNth1(alpha, i, j, k)*beta1L + PDupwindNth2(alpha, i, j, k)*beta2L +
- PDupwindNth3(alpha, i, j, k)*beta3L)*LapseAdvectionCoeff +
- harmonicF*(AL*(-1 + LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
-
- CCTK_REAL const ArhsL = (-1 + LapseAdvectionCoeff)*(AL*AlphaDriver - trKrhsL);
+ trKrhsL = PDupwindNth1(trK, i, j, k)*beta1L + PDupwindNth2(trK, i,
+ j, k)*beta2L + PDupwindNth3(trK, i, j, k)*beta3L + (G111*gu11 +
+ G122*gu22 + 2.*(G112*gu21 + G113*gu31 + G123*gu32) +
+ G133*gu33)*PDstandardNth1alpha - 2.*(gu21*PDstandardNth12alpha +
+ gu31*PDstandardNth13alpha + gu32*PDstandardNth23alpha) + (G211*gu11 +
+ G222*gu22 + 2.*(G212*gu21 + G213*gu31 + G223*gu32) +
+ G233*gu33)*PDstandardNth2alpha - 1.*(gu11*PDstandardNth11alpha +
+ gu22*PDstandardNth22alpha + gu33*PDstandardNth33alpha) + (G311*gu11 +
+ G322*gu22 + 2.*(G313*gu31 + G323*gu32) + G333*gu33)*PDstandardNth3alpha
+ + 2.*(alphaL*(Atm12*Atm21 + Atm13*Atm31 + Atm23*Atm32) +
+ G312*gu21*PDstandardNth3alpha) +
+ alphaL*(12.56637061435917295385057353311801153679*(rho + trS) +
+ SQR(Atm11) + SQR(Atm22) + SQR(Atm33) +
+ 0.3333333333333333333333333333333333333333*SQR(trKL));
+
+ CCTK_REAL Ats11 = -PDstandardNth11alpha + G111*PDstandardNth1alpha +
+ G211*PDstandardNth2alpha + G311*PDstandardNth3alpha + alphaL*R11;
+
+ CCTK_REAL Ats12 = -PDstandardNth12alpha + G112*PDstandardNth1alpha +
+ G212*PDstandardNth2alpha + G312*PDstandardNth3alpha + alphaL*R12;
+
+ CCTK_REAL Ats13 = -PDstandardNth13alpha + G113*PDstandardNth1alpha +
+ G213*PDstandardNth2alpha + G313*PDstandardNth3alpha + alphaL*R13;
+
+ CCTK_REAL Ats22 = G122*PDstandardNth1alpha - PDstandardNth22alpha +
+ G222*PDstandardNth2alpha + G322*PDstandardNth3alpha + alphaL*R22;
+
+ CCTK_REAL Ats23 = G123*PDstandardNth1alpha - PDstandardNth23alpha +
+ G223*PDstandardNth2alpha + G323*PDstandardNth3alpha + alphaL*R23;
+
+ CCTK_REAL Ats33 = G133*PDstandardNth1alpha + G233*PDstandardNth2alpha
+ - PDstandardNth33alpha + G333*PDstandardNth3alpha + alphaL*R33;
+
+ CCTK_REAL trAts = Ats11*gu11 + Ats22*gu22 + 2*(Ats12*gu21 + Ats13*gu31
+ + Ats23*gu32) + Ats33*gu33;
+
+ CCTK_REAL At11rhsL = -2.*alphaL*(At11L*Atm11 + At12L*Atm21 +
+ At13L*Atm31) + PDupwindNth1(At11, i, j, k)*beta1L +
+ PDupwindNth2(At11, i, j, k)*beta2L + PDupwindNth3(At11, i, j,
+ k)*beta3L + 2.*(At12L*PDstandardNth1beta2 + At13L*PDstandardNth1beta3)
+ + At11L*(1.333333333333333333333333333333333333333*PDstandardNth1beta1
+ - 0.6666666666666666666666666666666666666667*(PDstandardNth2beta2 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats11 -
+ 0.3333333333333333333333333333333333333333*g11*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTxxL +
+ 8.377580409572781969233715688745341024526*g11*trS));
+
+ CCTK_REAL At12rhsL = -2.*alphaL*(At11L*Atm12 + At12L*Atm22 +
+ At13L*Atm32) + PDupwindNth1(At12, i, j, k)*beta1L +
+ PDupwindNth2(At12, i, j, k)*beta2L + PDupwindNth3(At12, i, j,
+ k)*beta3L + At22L*PDstandardNth1beta2 + At23L*PDstandardNth1beta3 +
+ At11L*PDstandardNth2beta1 + At13L*PDstandardNth2beta3 +
+ At12L*(0.3333333333333333333333333333333333333333*(PDstandardNth1beta1
+ + PDstandardNth2beta2) -
+ 0.6666666666666666666666666666666666666667*PDstandardNth3beta3 +
+ alphaL*trKL) + em4phi*(Ats12 -
+ 0.3333333333333333333333333333333333333333*g12*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTxyL +
+ 8.377580409572781969233715688745341024526*g12*trS));
+
+ CCTK_REAL At13rhsL = -2.*alphaL*(At11L*Atm13 + At12L*Atm23 +
+ At13L*Atm33) + PDupwindNth1(At13, i, j, k)*beta1L +
+ PDupwindNth2(At13, i, j, k)*beta2L + PDupwindNth3(At13, i, j,
+ k)*beta3L + At23L*PDstandardNth1beta2 + At33L*PDstandardNth1beta3 +
+ At11L*PDstandardNth3beta1 + At12L*PDstandardNth3beta2 +
+ At13L*(-0.6666666666666666666666666666666666666667*PDstandardNth2beta2
+ + 0.3333333333333333333333333333333333333333*(PDstandardNth1beta1 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats13 -
+ 0.3333333333333333333333333333333333333333*g13*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTxzL +
+ 8.377580409572781969233715688745341024526*g13*trS));
+
+ CCTK_REAL At22rhsL = -2.*alphaL*(At12L*Atm12 + At22L*Atm22 +
+ At23L*Atm32) + PDupwindNth1(At22, i, j, k)*beta1L +
+ PDupwindNth2(At22, i, j, k)*beta2L + PDupwindNth3(At22, i, j,
+ k)*beta3L + 2.*(At12L*PDstandardNth2beta1 + At23L*PDstandardNth2beta3)
+ + At22L*(1.333333333333333333333333333333333333333*PDstandardNth2beta2
+ - 0.6666666666666666666666666666666666666667*(PDstandardNth1beta1 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats22 -
+ 0.3333333333333333333333333333333333333333*g22*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTyyL +
+ 8.377580409572781969233715688745341024526*g22*trS));
+
+ CCTK_REAL At23rhsL = -2.*alphaL*(At12L*Atm13 + At22L*Atm23 +
+ At23L*Atm33) + PDupwindNth1(At23, i, j, k)*beta1L +
+ PDupwindNth2(At23, i, j, k)*beta2L + PDupwindNth3(At23, i, j,
+ k)*beta3L + At13L*PDstandardNth2beta1 + At33L*PDstandardNth2beta3 +
+ At12L*PDstandardNth3beta1 + At22L*PDstandardNth3beta2 +
+ At23L*(-0.6666666666666666666666666666666666666667*PDstandardNth1beta1
+ + 0.3333333333333333333333333333333333333333*(PDstandardNth2beta2 +
+ PDstandardNth3beta3) + alphaL*trKL) + em4phi*(Ats23 -
+ 0.3333333333333333333333333333333333333333*g23*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTyzL +
+ 8.377580409572781969233715688745341024526*g23*trS));
+
+ CCTK_REAL At33rhsL = -2.*alphaL*(At13L*Atm13 + At23L*Atm23 +
+ At33L*Atm33) + PDupwindNth1(At33, i, j, k)*beta1L +
+ PDupwindNth2(At33, i, j, k)*beta2L + PDupwindNth3(At33, i, j,
+ k)*beta3L + 2.*(At13L*PDstandardNth3beta1 + At23L*PDstandardNth3beta2)
+ +
+ At33L*(-0.6666666666666666666666666666666666666667*(PDstandardNth1beta1
+ + PDstandardNth2beta2) +
+ 1.333333333333333333333333333333333333333*PDstandardNth3beta3 +
+ alphaL*trKL) + em4phi*(Ats33 -
+ 0.3333333333333333333333333333333333333333*g33*trAts +
+ alphaL*(-25.13274122871834590770114706623602307358*eTzzL +
+ 8.377580409572781969233715688745341024526*g33*trS));
+
+ CCTK_REAL alpharhsL = (PDupwindNth1(alpha, i, j, k)*beta1L +
+ PDupwindNth2(alpha, i, j, k)*beta2L + PDupwindNth3(alpha, i, j,
+ k)*beta3L)*LapseAdvectionCoeff + harmonicF*(AL*(-1 +
+ LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
+
+ CCTK_REAL ArhsL = (-1 + LapseAdvectionCoeff)*(AL*AlphaDriver -
+ trKrhsL);
/* Copy local copies back to grid functions */
@@ -841,8 +853,6 @@ void ML_BSSN_RHS2_Body(cGH const * restrict const cctkGH, int const dir, int con
At23rhs[index] = At23rhsL;
At33rhs[index] = At33rhsL;
trKrhs[index] = trKrhsL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_RHS2);
}
diff --git a/ML_BSSN/src/ML_BSSN_RHSRadiativeBoundary.c b/ML_BSSN/src/ML_BSSN_RHSRadiativeBoundary.c
index d85f2c8..4f2563f 100644
--- a/ML_BSSN/src/ML_BSSN_RHSRadiativeBoundary.c
+++ b/ML_BSSN/src/ML_BSSN_RHSRadiativeBoundary.c
@@ -28,20 +28,6 @@ void ML_BSSN_RHSRadiativeBoundary_Body(cGH const * restrict const cctkGH, int co
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_RHSRadiativeBoundary_Body");
@@ -94,186 +80,174 @@ void ML_BSSN_RHSRadiativeBoundary_Body(cGH const * restrict const cctkGH, int co
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL dir1 = INITVALUE, dir2 = INITVALUE, dir3 = INITVALUE;
- // CCTK_REAL em4phi = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
- // CCTK_REAL gu11 = INITVALUE, gu21 = INITVALUE, gu22 = INITVALUE, gu31 = INITVALUE, gu32 = INITVALUE, gu33 = INITVALUE;
- // CCTK_REAL nlen = INITVALUE, nlen2 = INITVALUE;
- // CCTK_REAL nn1 = INITVALUE, nn2 = INITVALUE, nn3 = INITVALUE;
- // CCTK_REAL nu1 = INITVALUE, nu2 = INITVALUE, nu3 = INITVALUE;
- // CCTK_REAL su1 = INITVALUE, su2 = INITVALUE, su3 = INITVALUE;
- // CCTK_REAL vg = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE, alpharhsL = INITVALUE;
- // CCTK_REAL ArhsL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At11rhsL = INITVALUE, At12L = INITVALUE, At12rhsL = INITVALUE, At13L = INITVALUE, At13rhsL = INITVALUE;
- // CCTK_REAL At22L = INITVALUE, At22rhsL = INITVALUE, At23L = INITVALUE, At23rhsL = INITVALUE, At33L = INITVALUE, At33rhsL = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B1rhsL = INITVALUE, B2L = INITVALUE, B2rhsL = INITVALUE, B3L = INITVALUE, B3rhsL = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta1rhsL = INITVALUE, beta2L = INITVALUE, beta2rhsL = INITVALUE, beta3L = INITVALUE, beta3rhsL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt11rhsL = INITVALUE, gt12L = INITVALUE, gt12rhsL = INITVALUE, gt13L = INITVALUE, gt13rhsL = INITVALUE;
- // CCTK_REAL gt22L = INITVALUE, gt22rhsL = INITVALUE, gt23L = INITVALUE, gt23rhsL = INITVALUE, gt33L = INITVALUE, gt33rhsL = INITVALUE;
- // CCTK_REAL phiL = INITVALUE, phirhsL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE, trKrhsL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt1rhsL = INITVALUE, Xt2L = INITVALUE, Xt2rhsL = INITVALUE, Xt3L = INITVALUE, Xt3rhsL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const AL = A[index];
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const B1L = B1[index];
- CCTK_REAL const B2L = B2[index];
- CCTK_REAL const B3L = B3[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
- CCTK_REAL const phiL = phi[index];
- CCTK_REAL const trKL = trK[index];
- CCTK_REAL const Xt1L = Xt1[index];
- CCTK_REAL const Xt2L = Xt2[index];
- CCTK_REAL const Xt3L = Xt3[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL AL = A[index];
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL B1L = B1[index];
+ CCTK_REAL B2L = B2[index];
+ CCTK_REAL B3L = B3[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL trKL = trK[index];
+ CCTK_REAL Xt1L = Xt1[index];
+ CCTK_REAL Xt2L = Xt2[index];
+ CCTK_REAL Xt3L = Xt3[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- int const dir1 = Sign(normal[0]);
+ int dir1 = Sign(normal[0]);
- int const dir2 = Sign(normal[1]);
+ int dir2 = Sign(normal[1]);
- int const dir3 = Sign(normal[2]);
+ int dir3 = Sign(normal[2]);
- CCTK_REAL const detgt = 1;
+ CCTK_REAL detgt = 1;
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
- CCTK_REAL const em4phi = IfThen(conformalMethod,SQR(phiL),exp(-4*phiL));
+ CCTK_REAL em4phi = IfThen(conformalMethod,SQR(phiL),exp(-4*phiL));
- CCTK_REAL const gu11 = em4phi*gtu11;
+ CCTK_REAL gu11 = em4phi*gtu11;
- CCTK_REAL const gu21 = em4phi*gtu21;
+ CCTK_REAL gu21 = em4phi*gtu21;
- CCTK_REAL const gu31 = em4phi*gtu31;
+ CCTK_REAL gu31 = em4phi*gtu31;
- CCTK_REAL const gu22 = em4phi*gtu22;
+ CCTK_REAL gu22 = em4phi*gtu22;
- CCTK_REAL const gu32 = em4phi*gtu32;
+ CCTK_REAL gu32 = em4phi*gtu32;
- CCTK_REAL const gu33 = em4phi*gtu33;
+ CCTK_REAL gu33 = em4phi*gtu33;
- CCTK_REAL const nn1 = normal[0];
+ CCTK_REAL nn1 = normal[0];
- CCTK_REAL const nn2 = normal[1];
+ CCTK_REAL nn2 = normal[1];
- CCTK_REAL const nn3 = normal[2];
+ CCTK_REAL nn3 = normal[2];
- CCTK_REAL const nu1 = gu11*nn1 + gu21*nn2 + gu31*nn3;
+ CCTK_REAL nu1 = gu11*nn1 + gu21*nn2 + gu31*nn3;
- CCTK_REAL const nu2 = gu21*nn1 + gu22*nn2 + gu32*nn3;
+ CCTK_REAL nu2 = gu21*nn1 + gu22*nn2 + gu32*nn3;
- CCTK_REAL const nu3 = gu31*nn1 + gu32*nn2 + gu33*nn3;
+ CCTK_REAL nu3 = gu31*nn1 + gu32*nn2 + gu33*nn3;
- CCTK_REAL const nlen2 = nn1*nu1 + nn2*nu2 + nn3*nu3;
+ CCTK_REAL nlen2 = nn1*nu1 + nn2*nu2 + nn3*nu3;
- CCTK_REAL const nlen = pow(nlen2,0.5);
+ CCTK_REAL nlen = pow(nlen2,0.5);
- CCTK_REAL const su1 = nu1*INV(nlen);
+ CCTK_REAL su1 = nu1*INV(nlen);
- CCTK_REAL const su2 = nu2*INV(nlen);
+ CCTK_REAL su2 = nu2*INV(nlen);
- CCTK_REAL const su3 = nu3*INV(nlen);
+ CCTK_REAL su3 = nu3*INV(nlen);
- CCTK_REAL const vg = pow(harmonicF,0.5);
+ CCTK_REAL vg = pow(harmonicF,0.5);
- CCTK_REAL const phirhsL = -((PDonesided1(phi, i, j, k)*su1 + PDonesided2(phi, i, j, k)*su2 + PDonesided3(phi, i, j, k)*su3)*vg);
+ CCTK_REAL phirhsL = -((PDonesided1(phi, i, j, k)*su1 +
+ PDonesided2(phi, i, j, k)*su2 + PDonesided3(phi, i, j, k)*su3)*vg);
- CCTK_REAL const gt11rhsL = -(PDonesided1(gt11, i, j, k)*su1) - PDonesided2(gt11, i, j, k)*su2 - PDonesided3(gt11, i, j, k)*su3;
+ CCTK_REAL gt11rhsL = -(PDonesided1(gt11, i, j, k)*su1) -
+ PDonesided2(gt11, i, j, k)*su2 - PDonesided3(gt11, i, j, k)*su3;
- CCTK_REAL const gt12rhsL = -(PDonesided1(gt12, i, j, k)*su1) - PDonesided2(gt12, i, j, k)*su2 - PDonesided3(gt12, i, j, k)*su3;
+ CCTK_REAL gt12rhsL = -(PDonesided1(gt12, i, j, k)*su1) -
+ PDonesided2(gt12, i, j, k)*su2 - PDonesided3(gt12, i, j, k)*su3;
- CCTK_REAL const gt13rhsL = -(PDonesided1(gt13, i, j, k)*su1) - PDonesided2(gt13, i, j, k)*su2 - PDonesided3(gt13, i, j, k)*su3;
+ CCTK_REAL gt13rhsL = -(PDonesided1(gt13, i, j, k)*su1) -
+ PDonesided2(gt13, i, j, k)*su2 - PDonesided3(gt13, i, j, k)*su3;
- CCTK_REAL const gt22rhsL = -(PDonesided1(gt22, i, j, k)*su1) - PDonesided2(gt22, i, j, k)*su2 - PDonesided3(gt22, i, j, k)*su3;
+ CCTK_REAL gt22rhsL = -(PDonesided1(gt22, i, j, k)*su1) -
+ PDonesided2(gt22, i, j, k)*su2 - PDonesided3(gt22, i, j, k)*su3;
- CCTK_REAL const gt23rhsL = -(PDonesided1(gt23, i, j, k)*su1) - PDonesided2(gt23, i, j, k)*su2 - PDonesided3(gt23, i, j, k)*su3;
+ CCTK_REAL gt23rhsL = -(PDonesided1(gt23, i, j, k)*su1) -
+ PDonesided2(gt23, i, j, k)*su2 - PDonesided3(gt23, i, j, k)*su3;
- CCTK_REAL const gt33rhsL = -(PDonesided1(gt33, i, j, k)*su1) - PDonesided2(gt33, i, j, k)*su2 - PDonesided3(gt33, i, j, k)*su3;
+ CCTK_REAL gt33rhsL = -(PDonesided1(gt33, i, j, k)*su1) -
+ PDonesided2(gt33, i, j, k)*su2 - PDonesided3(gt33, i, j, k)*su3;
- CCTK_REAL const trKrhsL = -((PDonesided1(trK, i, j, k)*su1 + PDonesided2(trK, i, j, k)*su2 + PDonesided3(trK, i, j, k)*su3)*vg);
+ CCTK_REAL trKrhsL = -((PDonesided1(trK, i, j, k)*su1 +
+ PDonesided2(trK, i, j, k)*su2 + PDonesided3(trK, i, j, k)*su3)*vg);
- CCTK_REAL const At11rhsL = -(PDonesided1(At11, i, j, k)*su1) - PDonesided2(At11, i, j, k)*su2 - PDonesided3(At11, i, j, k)*su3;
+ CCTK_REAL At11rhsL = -(PDonesided1(At11, i, j, k)*su1) -
+ PDonesided2(At11, i, j, k)*su2 - PDonesided3(At11, i, j, k)*su3;
- CCTK_REAL const At12rhsL = -(PDonesided1(At12, i, j, k)*su1) - PDonesided2(At12, i, j, k)*su2 - PDonesided3(At12, i, j, k)*su3;
+ CCTK_REAL At12rhsL = -(PDonesided1(At12, i, j, k)*su1) -
+ PDonesided2(At12, i, j, k)*su2 - PDonesided3(At12, i, j, k)*su3;
- CCTK_REAL const At13rhsL = -(PDonesided1(At13, i, j, k)*su1) - PDonesided2(At13, i, j, k)*su2 - PDonesided3(At13, i, j, k)*su3;
+ CCTK_REAL At13rhsL = -(PDonesided1(At13, i, j, k)*su1) -
+ PDonesided2(At13, i, j, k)*su2 - PDonesided3(At13, i, j, k)*su3;
- CCTK_REAL const At22rhsL = -(PDonesided1(At22, i, j, k)*su1) - PDonesided2(At22, i, j, k)*su2 - PDonesided3(At22, i, j, k)*su3;
+ CCTK_REAL At22rhsL = -(PDonesided1(At22, i, j, k)*su1) -
+ PDonesided2(At22, i, j, k)*su2 - PDonesided3(At22, i, j, k)*su3;
- CCTK_REAL const At23rhsL = -(PDonesided1(At23, i, j, k)*su1) - PDonesided2(At23, i, j, k)*su2 - PDonesided3(At23, i, j, k)*su3;
+ CCTK_REAL At23rhsL = -(PDonesided1(At23, i, j, k)*su1) -
+ PDonesided2(At23, i, j, k)*su2 - PDonesided3(At23, i, j, k)*su3;
- CCTK_REAL const At33rhsL = -(PDonesided1(At33, i, j, k)*su1) - PDonesided2(At33, i, j, k)*su2 - PDonesided3(At33, i, j, k)*su3;
+ CCTK_REAL At33rhsL = -(PDonesided1(At33, i, j, k)*su1) -
+ PDonesided2(At33, i, j, k)*su2 - PDonesided3(At33, i, j, k)*su3;
- CCTK_REAL const Xt1rhsL = -(PDonesided1(Xt1, i, j, k)*su1) - PDonesided2(Xt1, i, j, k)*su2 - PDonesided3(Xt1, i, j, k)*su3;
+ CCTK_REAL Xt1rhsL = -(PDonesided1(Xt1, i, j, k)*su1) -
+ PDonesided2(Xt1, i, j, k)*su2 - PDonesided3(Xt1, i, j, k)*su3;
- CCTK_REAL const Xt2rhsL = -(PDonesided1(Xt2, i, j, k)*su1) - PDonesided2(Xt2, i, j, k)*su2 - PDonesided3(Xt2, i, j, k)*su3;
+ CCTK_REAL Xt2rhsL = -(PDonesided1(Xt2, i, j, k)*su1) -
+ PDonesided2(Xt2, i, j, k)*su2 - PDonesided3(Xt2, i, j, k)*su3;
- CCTK_REAL const Xt3rhsL = -(PDonesided1(Xt3, i, j, k)*su1) - PDonesided2(Xt3, i, j, k)*su2 - PDonesided3(Xt3, i, j, k)*su3;
+ CCTK_REAL Xt3rhsL = -(PDonesided1(Xt3, i, j, k)*su1) -
+ PDonesided2(Xt3, i, j, k)*su2 - PDonesided3(Xt3, i, j, k)*su3;
- CCTK_REAL const alpharhsL = -((PDonesided1(alpha, i, j, k)*su1 + PDonesided2(alpha, i, j, k)*su2 +
- PDonesided3(alpha, i, j, k)*su3)*vg);
+ CCTK_REAL alpharhsL = -((PDonesided1(alpha, i, j, k)*su1 +
+ PDonesided2(alpha, i, j, k)*su2 + PDonesided3(alpha, i, j,
+ k)*su3)*vg);
- CCTK_REAL const ArhsL = -((PDonesided1(A, i, j, k)*su1 + PDonesided2(A, i, j, k)*su2 + PDonesided3(A, i, j, k)*su3)*vg);
+ CCTK_REAL ArhsL = -((PDonesided1(A, i, j, k)*su1 + PDonesided2(A,
+ i, j, k)*su2 + PDonesided3(A, i, j, k)*su3)*vg);
- CCTK_REAL const beta1rhsL = -(PDonesided1(beta1, i, j, k)*su1) - PDonesided2(beta1, i, j, k)*su2 -
- PDonesided3(beta1, i, j, k)*su3;
+ CCTK_REAL beta1rhsL = -(PDonesided1(beta1, i, j, k)*su1) -
+ PDonesided2(beta1, i, j, k)*su2 - PDonesided3(beta1, i, j, k)*su3;
- CCTK_REAL const beta2rhsL = -(PDonesided1(beta2, i, j, k)*su1) - PDonesided2(beta2, i, j, k)*su2 -
- PDonesided3(beta2, i, j, k)*su3;
+ CCTK_REAL beta2rhsL = -(PDonesided1(beta2, i, j, k)*su1) -
+ PDonesided2(beta2, i, j, k)*su2 - PDonesided3(beta2, i, j, k)*su3;
- CCTK_REAL const beta3rhsL = -(PDonesided1(beta3, i, j, k)*su1) - PDonesided2(beta3, i, j, k)*su2 -
- PDonesided3(beta3, i, j, k)*su3;
+ CCTK_REAL beta3rhsL = -(PDonesided1(beta3, i, j, k)*su1) -
+ PDonesided2(beta3, i, j, k)*su2 - PDonesided3(beta3, i, j, k)*su3;
- CCTK_REAL const B1rhsL = -(PDonesided1(B1, i, j, k)*su1) - PDonesided2(B1, i, j, k)*su2 - PDonesided3(B1, i, j, k)*su3;
+ CCTK_REAL B1rhsL = -(PDonesided1(B1, i, j, k)*su1) -
+ PDonesided2(B1, i, j, k)*su2 - PDonesided3(B1, i, j, k)*su3;
- CCTK_REAL const B2rhsL = -(PDonesided1(B2, i, j, k)*su1) - PDonesided2(B2, i, j, k)*su2 - PDonesided3(B2, i, j, k)*su3;
+ CCTK_REAL B2rhsL = -(PDonesided1(B2, i, j, k)*su1) -
+ PDonesided2(B2, i, j, k)*su2 - PDonesided3(B2, i, j, k)*su3;
- CCTK_REAL const B3rhsL = -(PDonesided1(B3, i, j, k)*su1) - PDonesided2(B3, i, j, k)*su2 - PDonesided3(B3, i, j, k)*su3;
+ CCTK_REAL B3rhsL = -(PDonesided1(B3, i, j, k)*su1) -
+ PDonesided2(B3, i, j, k)*su2 - PDonesided3(B3, i, j, k)*su3;
/* Copy local copies back to grid functions */
@@ -302,8 +276,6 @@ void ML_BSSN_RHSRadiativeBoundary_Body(cGH const * restrict const cctkGH, int co
Xt1rhs[index] = Xt1rhsL;
Xt2rhs[index] = Xt2rhsL;
Xt3rhs[index] = Xt3rhsL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_RHSRadiativeBoundary);
}
diff --git a/ML_BSSN/src/ML_BSSN_RHSStaticBoundary.c b/ML_BSSN/src/ML_BSSN_RHSStaticBoundary.c
index f1a6c0a..ad57753 100644
--- a/ML_BSSN/src/ML_BSSN_RHSStaticBoundary.c
+++ b/ML_BSSN/src/ML_BSSN_RHSStaticBoundary.c
@@ -28,20 +28,6 @@ void ML_BSSN_RHSStaticBoundary_Body(cGH const * restrict const cctkGH, int const
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_RHSStaticBoundary_Body");
@@ -94,86 +80,65 @@ void ML_BSSN_RHSStaticBoundary_Body(cGH const * restrict const cctkGH, int const
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alpharhsL = INITVALUE;
- // CCTK_REAL ArhsL = INITVALUE;
- // CCTK_REAL At11rhsL = INITVALUE, At12rhsL = INITVALUE, At13rhsL = INITVALUE, At22rhsL = INITVALUE, At23rhsL = INITVALUE, At33rhsL = INITVALUE;
- // CCTK_REAL B1rhsL = INITVALUE, B2rhsL = INITVALUE, B3rhsL = INITVALUE;
- // CCTK_REAL beta1rhsL = INITVALUE, beta2rhsL = INITVALUE, beta3rhsL = INITVALUE;
- // CCTK_REAL gt11rhsL = INITVALUE, gt12rhsL = INITVALUE, gt13rhsL = INITVALUE, gt22rhsL = INITVALUE, gt23rhsL = INITVALUE, gt33rhsL = INITVALUE;
- // CCTK_REAL phirhsL = INITVALUE;
- // CCTK_REAL trKrhsL = INITVALUE;
- // CCTK_REAL Xt1rhsL = INITVALUE, Xt2rhsL = INITVALUE, Xt3rhsL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- /* Assign local copies of subblock grid functions */
-
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const phirhsL = 0;
+ CCTK_REAL phirhsL = 0;
- CCTK_REAL const gt11rhsL = 0;
+ CCTK_REAL gt11rhsL = 0;
- CCTK_REAL const gt12rhsL = 0;
+ CCTK_REAL gt12rhsL = 0;
- CCTK_REAL const gt13rhsL = 0;
+ CCTK_REAL gt13rhsL = 0;
- CCTK_REAL const gt22rhsL = 0;
+ CCTK_REAL gt22rhsL = 0;
- CCTK_REAL const gt23rhsL = 0;
+ CCTK_REAL gt23rhsL = 0;
- CCTK_REAL const gt33rhsL = 0;
+ CCTK_REAL gt33rhsL = 0;
- CCTK_REAL const trKrhsL = 0;
+ CCTK_REAL trKrhsL = 0;
- CCTK_REAL const At11rhsL = 0;
+ CCTK_REAL At11rhsL = 0;
- CCTK_REAL const At12rhsL = 0;
+ CCTK_REAL At12rhsL = 0;
- CCTK_REAL const At13rhsL = 0;
+ CCTK_REAL At13rhsL = 0;
- CCTK_REAL const At22rhsL = 0;
+ CCTK_REAL At22rhsL = 0;
- CCTK_REAL const At23rhsL = 0;
+ CCTK_REAL At23rhsL = 0;
- CCTK_REAL const At33rhsL = 0;
+ CCTK_REAL At33rhsL = 0;
- CCTK_REAL const Xt1rhsL = 0;
+ CCTK_REAL Xt1rhsL = 0;
- CCTK_REAL const Xt2rhsL = 0;
+ CCTK_REAL Xt2rhsL = 0;
- CCTK_REAL const Xt3rhsL = 0;
+ CCTK_REAL Xt3rhsL = 0;
- CCTK_REAL const alpharhsL = 0;
+ CCTK_REAL alpharhsL = 0;
- CCTK_REAL const ArhsL = 0;
+ CCTK_REAL ArhsL = 0;
- CCTK_REAL const beta1rhsL = 0;
+ CCTK_REAL beta1rhsL = 0;
- CCTK_REAL const beta2rhsL = 0;
+ CCTK_REAL beta2rhsL = 0;
- CCTK_REAL const beta3rhsL = 0;
+ CCTK_REAL beta3rhsL = 0;
- CCTK_REAL const B1rhsL = 0;
+ CCTK_REAL B1rhsL = 0;
- CCTK_REAL const B2rhsL = 0;
+ CCTK_REAL B2rhsL = 0;
- CCTK_REAL const B3rhsL = 0;
+ CCTK_REAL B3rhsL = 0;
/* Copy local copies back to grid functions */
@@ -202,8 +167,6 @@ void ML_BSSN_RHSStaticBoundary_Body(cGH const * restrict const cctkGH, int const
Xt1rhs[index] = Xt1rhsL;
Xt2rhs[index] = Xt2rhsL;
Xt3rhs[index] = Xt3rhsL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_RHSStaticBoundary);
}
diff --git a/ML_BSSN/src/ML_BSSN_boundary.c b/ML_BSSN/src/ML_BSSN_boundary.c
index a2ad643..6997b2e 100644
--- a/ML_BSSN/src/ML_BSSN_boundary.c
+++ b/ML_BSSN/src/ML_BSSN_boundary.c
@@ -28,20 +28,6 @@ void ML_BSSN_boundary_Body(cGH const * restrict const cctkGH, int const dir, int
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_boundary_Body");
@@ -94,86 +80,65 @@ void ML_BSSN_boundary_Body(cGH const * restrict const cctkGH, int const dir, int
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At12L = INITVALUE, At13L = INITVALUE, At22L = INITVALUE, At23L = INITVALUE, At33L = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B2L = INITVALUE, B3L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL phiL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt2L = INITVALUE, Xt3L = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- /* Assign local copies of subblock grid functions */
-
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const phiL = IfThen(conformalMethod,1,0);
+ CCTK_REAL phiL = IfThen(conformalMethod,1,0);
- CCTK_REAL const gt11L = 1;
+ CCTK_REAL gt11L = 1;
- CCTK_REAL const gt12L = 0;
+ CCTK_REAL gt12L = 0;
- CCTK_REAL const gt13L = 0;
+ CCTK_REAL gt13L = 0;
- CCTK_REAL const gt22L = 1;
+ CCTK_REAL gt22L = 1;
- CCTK_REAL const gt23L = 0;
+ CCTK_REAL gt23L = 0;
- CCTK_REAL const gt33L = 1;
+ CCTK_REAL gt33L = 1;
- CCTK_REAL const trKL = 0;
+ CCTK_REAL trKL = 0;
- CCTK_REAL const At11L = 0;
+ CCTK_REAL At11L = 0;
- CCTK_REAL const At12L = 0;
+ CCTK_REAL At12L = 0;
- CCTK_REAL const At13L = 0;
+ CCTK_REAL At13L = 0;
- CCTK_REAL const At22L = 0;
+ CCTK_REAL At22L = 0;
- CCTK_REAL const At23L = 0;
+ CCTK_REAL At23L = 0;
- CCTK_REAL const At33L = 0;
+ CCTK_REAL At33L = 0;
- CCTK_REAL const Xt1L = 0;
+ CCTK_REAL Xt1L = 0;
- CCTK_REAL const Xt2L = 0;
+ CCTK_REAL Xt2L = 0;
- CCTK_REAL const Xt3L = 0;
+ CCTK_REAL Xt3L = 0;
- CCTK_REAL const alphaL = 1;
+ CCTK_REAL alphaL = 1;
- CCTK_REAL const AL = 0;
+ CCTK_REAL AL = 0;
- CCTK_REAL const beta1L = 0;
+ CCTK_REAL beta1L = 0;
- CCTK_REAL const beta2L = 0;
+ CCTK_REAL beta2L = 0;
- CCTK_REAL const beta3L = 0;
+ CCTK_REAL beta3L = 0;
- CCTK_REAL const B1L = 0;
+ CCTK_REAL B1L = 0;
- CCTK_REAL const B2L = 0;
+ CCTK_REAL B2L = 0;
- CCTK_REAL const B3L = 0;
+ CCTK_REAL B3L = 0;
/* Copy local copies back to grid functions */
@@ -202,8 +167,6 @@ void ML_BSSN_boundary_Body(cGH const * restrict const cctkGH, int const dir, int
Xt1[index] = Xt1L;
Xt2[index] = Xt2L;
Xt3[index] = Xt3L;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_boundary);
}
diff --git a/ML_BSSN/src/ML_BSSN_constraints.c b/ML_BSSN/src/ML_BSSN_constraints.c
index 6dadf1e..22c8b3d 100644
--- a/ML_BSSN/src/ML_BSSN_constraints.c
+++ b/ML_BSSN/src/ML_BSSN_constraints.c
@@ -28,20 +28,6 @@ void ML_BSSN_constraints_Body(cGH const * restrict const cctkGH, int const dir,
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_constraints_Body");
@@ -94,56 +80,7 @@ void ML_BSSN_constraints_Body(cGH const * restrict const cctkGH, int const dir,
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL Atm11 = INITVALUE, Atm12 = INITVALUE, Atm13 = INITVALUE, Atm21 = INITVALUE, Atm22 = INITVALUE, Atm23 = INITVALUE;
- // CCTK_REAL Atm31 = INITVALUE, Atm32 = INITVALUE, Atm33 = INITVALUE;
- // CCTK_REAL cdphi1 = INITVALUE, cdphi2 = INITVALUE, cdphi211 = INITVALUE, cdphi212 = INITVALUE, cdphi213 = INITVALUE, cdphi222 = INITVALUE;
- // CCTK_REAL cdphi223 = INITVALUE, cdphi233 = INITVALUE, cdphi3 = INITVALUE;
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL e4phi = INITVALUE;
- // CCTK_REAL em4phi = INITVALUE;
- // CCTK_REAL fac1 = INITVALUE, fac2 = INITVALUE;
- // CCTK_REAL Gt111 = INITVALUE, Gt112 = INITVALUE, Gt113 = INITVALUE, Gt122 = INITVALUE, Gt123 = INITVALUE, Gt133 = INITVALUE;
- // CCTK_REAL Gt211 = INITVALUE, Gt212 = INITVALUE, Gt213 = INITVALUE, Gt222 = INITVALUE, Gt223 = INITVALUE, Gt233 = INITVALUE;
- // CCTK_REAL Gt311 = INITVALUE, Gt312 = INITVALUE, Gt313 = INITVALUE, Gt322 = INITVALUE, Gt323 = INITVALUE, Gt333 = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
- // CCTK_REAL gu11 = INITVALUE, gu21 = INITVALUE, gu22 = INITVALUE, gu31 = INITVALUE, gu32 = INITVALUE, gu33 = INITVALUE;
- // CCTK_REAL R11 = INITVALUE, R12 = INITVALUE, R13 = INITVALUE, R22 = INITVALUE, R23 = INITVALUE, R33 = INITVALUE;
- // CCTK_REAL rho = INITVALUE;
- // CCTK_REAL Rphi11 = INITVALUE, Rphi12 = INITVALUE, Rphi13 = INITVALUE, Rphi22 = INITVALUE, Rphi23 = INITVALUE, Rphi33 = INITVALUE;
- // CCTK_REAL Rt11 = INITVALUE, Rt12 = INITVALUE, Rt13 = INITVALUE, Rt22 = INITVALUE, Rt23 = INITVALUE, Rt33 = INITVALUE;
- // CCTK_REAL S1 = INITVALUE, S2 = INITVALUE, S3 = INITVALUE;
- // CCTK_REAL trR = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At12L = INITVALUE, At13L = INITVALUE, At22L = INITVALUE, At23L = INITVALUE, At33L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL cAL = INITVALUE;
- // CCTK_REAL cSL = INITVALUE;
- // CCTK_REAL cXt1L = INITVALUE, cXt2L = INITVALUE, cXt3L = INITVALUE;
- // CCTK_REAL eTttL = INITVALUE;
- // CCTK_REAL eTtxL = INITVALUE;
- // CCTK_REAL eTtyL = INITVALUE;
- // CCTK_REAL eTtzL = INITVALUE;
- // CCTK_REAL eTxxL = INITVALUE;
- // CCTK_REAL eTxyL = INITVALUE;
- // CCTK_REAL eTxzL = INITVALUE;
- // CCTK_REAL eTyyL = INITVALUE;
- // CCTK_REAL eTyzL = INITVALUE;
- // CCTK_REAL eTzzL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL HL = INITVALUE;
- // CCTK_REAL M1L = INITVALUE, M2L = INITVALUE, M3L = INITVALUE;
- // CCTK_REAL phiL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt2L = INITVALUE, Xt3L = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
// CCTK_REAL PDstandardNth1At11 = INITVALUE;
// CCTK_REAL PDstandardNth2At11 = INITVALUE;
@@ -240,43 +177,41 @@ void ML_BSSN_constraints_Body(cGH const * restrict const cctkGH, int const dir,
// CCTK_REAL PDstandardNth3Xt3 = INITVALUE;
/* Assign local copies of grid functions */
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const eTttL = (*stress_energy_state) ? (eTtt[index]) : 0.0;
- CCTK_REAL const eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
- CCTK_REAL const eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
- CCTK_REAL const eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
- CCTK_REAL const eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
- CCTK_REAL const eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
- CCTK_REAL const eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
- CCTK_REAL const eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
- CCTK_REAL const eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
- CCTK_REAL const eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
- CCTK_REAL const phiL = phi[index];
- CCTK_REAL const trKL = trK[index];
- CCTK_REAL const Xt1L = Xt1[index];
- CCTK_REAL const Xt2L = Xt2[index];
- CCTK_REAL const Xt3L = Xt3[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL eTttL = (*stress_energy_state) ? (eTtt[index]) : 0.0;
+ CCTK_REAL eTtxL = (*stress_energy_state) ? (eTtx[index]) : 0.0;
+ CCTK_REAL eTtyL = (*stress_energy_state) ? (eTty[index]) : 0.0;
+ CCTK_REAL eTtzL = (*stress_energy_state) ? (eTtz[index]) : 0.0;
+ CCTK_REAL eTxxL = (*stress_energy_state) ? (eTxx[index]) : 0.0;
+ CCTK_REAL eTxyL = (*stress_energy_state) ? (eTxy[index]) : 0.0;
+ CCTK_REAL eTxzL = (*stress_energy_state) ? (eTxz[index]) : 0.0;
+ CCTK_REAL eTyyL = (*stress_energy_state) ? (eTyy[index]) : 0.0;
+ CCTK_REAL eTyzL = (*stress_energy_state) ? (eTyz[index]) : 0.0;
+ CCTK_REAL eTzzL = (*stress_energy_state) ? (eTzz[index]) : 0.0;
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL trKL = trK[index];
+ CCTK_REAL Xt1L = Xt1[index];
+ CCTK_REAL Xt2L = Xt2[index];
+ CCTK_REAL Xt3L = Xt3[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
+ /* Precompute derivatives */
CCTK_REAL const PDstandardNth1At11 = PDstandardNth1(At11, i, j, k);
CCTK_REAL const PDstandardNth2At11 = PDstandardNth2(At11, i, j, k);
CCTK_REAL const PDstandardNth3At11 = PDstandardNth3(At11, i, j, k);
@@ -371,490 +306,680 @@ void ML_BSSN_constraints_Body(cGH const * restrict const cctkGH, int const dir,
CCTK_REAL const PDstandardNth2Xt3 = PDstandardNth2(Xt3, i, j, k);
CCTK_REAL const PDstandardNth3Xt3 = PDstandardNth3(Xt3, i, j, k);
- /* Precompute derivatives (old style) */
-
/* Calculate temporaries and grid functions */
- CCTK_REAL const detgt = 1;
-
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
-
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
-
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
-
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
-
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
-
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
-
- CCTK_REAL const Gt111 = khalf*(gtu11*PDstandardNth1gt11 + 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
- gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
-
- CCTK_REAL const Gt211 = khalf*(gtu21*PDstandardNth1gt11 + 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
- gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
-
- CCTK_REAL const Gt311 = khalf*(gtu31*PDstandardNth1gt11 + 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
- gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
-
- CCTK_REAL const Gt112 = khalf*(gtu21*PDstandardNth1gt22 + gtu11*PDstandardNth2gt11 +
- gtu31*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
-
- CCTK_REAL const Gt212 = khalf*(gtu22*PDstandardNth1gt22 + gtu21*PDstandardNth2gt11 +
- gtu32*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
-
- CCTK_REAL const Gt312 = khalf*(gtu32*PDstandardNth1gt22 + gtu31*PDstandardNth2gt11 +
- gtu33*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
-
- CCTK_REAL const Gt113 = khalf*(gtu31*PDstandardNth1gt33 + gtu11*PDstandardNth3gt11 +
- gtu21*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
-
- CCTK_REAL const Gt213 = khalf*(gtu32*PDstandardNth1gt33 + gtu21*PDstandardNth3gt11 +
- gtu22*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
-
- CCTK_REAL const Gt313 = khalf*(gtu33*PDstandardNth1gt33 + gtu31*PDstandardNth3gt11 +
- gtu32*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
-
- CCTK_REAL const Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
- gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
-
- CCTK_REAL const Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
- gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
-
- CCTK_REAL const Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
- gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
-
- CCTK_REAL const Gt123 = khalf*(gtu31*PDstandardNth2gt33 + gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu21*PDstandardNth3gt22);
-
- CCTK_REAL const Gt223 = khalf*(gtu32*PDstandardNth2gt33 + gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu22*PDstandardNth3gt22);
-
- CCTK_REAL const Gt323 = khalf*(gtu33*PDstandardNth2gt33 + gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu32*PDstandardNth3gt22);
-
- CCTK_REAL const Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) - gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
- 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
-
- CCTK_REAL const Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) - gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
- 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
-
- CCTK_REAL const Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) - gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
- 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
-
- CCTK_REAL const Rt11 = -(gtu11*khalf*PDstandardNth11gt11) + gtu21*
- (2*Gt211*Gt212*gt22L + 4*Gt112*gt13L*Gt311 + 2*Gt113*gt11L*Gt312 + 2*gt13L*Gt312*Gt313 + 2*gt13L*Gt211*Gt322 +
- 2*gt13L*Gt311*Gt323 + 2*Gt311*Gt312*gt33L - PDstandardNth12gt11) - gtu31*PDstandardNth13gt11 +
- gt11L*PDstandardNth1Xt1 + gt12L*(4*Gt111*Gt212*gtu21 + 2*Gt211*Gt222*gtu21 + 2*Gt212*Gt222*gtu22 +
- 4*Gt113*Gt211*gtu31 + 4*Gt113*Gt212*gtu32 + 4*Gt113*Gt213*gtu33 + PDstandardNth1Xt2) +
- gt13L*(4*Gt111*Gt312*gtu21 + 2*Gt212*Gt312*gtu21 + 4*Gt112*Gt312*gtu22 + 4*Gt113*Gt311*gtu31 +
- 4*Gt113*Gt312*gtu32 + 4*Gt113*Gt313*gtu33 + PDstandardNth1Xt3) - gtu22*khalf*PDstandardNth22gt11 -
- gtu32*PDstandardNth23gt11 - gtu33*khalf*PDstandardNth33gt11 +
- Gt111*(6*Gt113*gt11L*gtu31 + 4*gt12L*Gt213*gtu31 + gt11L*Xt1L) +
- Gt211*(2*Gt112*gt11L*gtu11 + 4*Gt111*gt12L*gtu11 + 2*gt11L*Gt122*gtu21 + 2*gt11L*Gt123*gtu31 + gt12L*Xt1L) +
- Gt311*(4*Gt111*gt13L*gtu11 + 2*gt12L*Gt213*gtu11 + 2*gt13L*Gt313*gtu11 + 2*gt11L*Gt123*gtu21 +
- 2*gt11L*Gt133*gtu31 + gt13L*Xt1L) + gt12L*Gt212*Xt2L + gt13L*Gt312*Xt2L +
- Gt112*(6*Gt111*gt11L*gtu21 + 4*gt12L*Gt211*gtu21 + 4*gt12L*Gt212*gtu22 + 2*gt11L*Gt213*gtu31 +
- 6*Gt113*gt11L*gtu32 + gt11L*Xt2L) + Gt113*gt11L*Xt3L +
- Gt213*(2*gt11L*Gt122*gtu32 + 4*Gt112*gt12L*gtu32 + 2*gt11L*Gt123*gtu33 + gt12L*Xt3L) +
- Gt313*(4*Gt111*gt13L*gtu31 + 2*gt12L*Gt213*gtu31 + 2*gt11L*Gt123*gtu32 + 4*Gt112*gt13L*gtu32 +
- 2*gt12L*Gt223*gtu32 + 2*gt11L*Gt133*gtu33 + gt13L*Xt3L) + 3*gt11L*gtu11*SQR(Gt111) + 3*gt11L*gtu22*SQR(Gt112) +
- 3*gt11L*gtu33*SQR(Gt113) + gt22L*gtu11*SQR(Gt211) + gt22L*gtu22*SQR(Gt212) +
- 2*(gt12L*Gt211*Gt212*gtu11 + Gt113*gt11L*Gt311*gtu11 + Gt211*gt23L*Gt311*gtu11 + gt13L*Gt211*Gt312*gtu11 +
- Gt112*gt11L*Gt212*gtu21 + gt12L*Gt223*Gt311*gtu21 + Gt212*gt23L*Gt311*gtu21 + gt12L*Gt213*Gt312*gtu21 +
- Gt211*gt23L*Gt312*gtu21 + gt11L*Gt122*Gt212*gtu22 + gt11L*Gt123*Gt312*gtu22 + gt12L*Gt223*Gt312*gtu22 +
- Gt212*gt23L*Gt312*gtu22 + gt13L*Gt212*Gt322*gtu22 + gt13L*Gt312*Gt323*gtu22 + gt12L*Gt212*Gt213*gtu31 +
- gt12L*Gt211*Gt223*gtu31 + Gt211*Gt213*gt22L*gtu31 + gt12L*Gt233*Gt311*gtu31 + Gt213*gt23L*Gt311*gtu31 +
- gt13L*Gt213*Gt312*gtu31 + Gt113*gt11L*Gt313*gtu31 + Gt211*gt23L*Gt313*gtu31 + gt13L*Gt211*Gt323*gtu31 +
- gt13L*Gt311*Gt333*gtu31 + Gt311*Gt313*gt33L*gtu31 + gt11L*Gt123*Gt212*gtu32 + gt12L*Gt213*Gt222*gtu32 +
- gt12L*Gt212*Gt223*gtu32 + Gt212*Gt213*gt22L*gtu32 + gt11L*Gt133*Gt312*gtu32 + gt12L*Gt233*Gt312*gtu32 +
- Gt213*gt23L*Gt312*gtu32 + Gt212*gt23L*Gt313*gtu32 + gt13L*Gt213*Gt322*gtu32 + gt13L*Gt212*Gt323*gtu32 +
- gt13L*Gt313*Gt323*gtu32 + gt13L*Gt312*Gt333*gtu32 + Gt312*Gt313*gt33L*gtu32 + gt12L*Gt213*Gt223*gtu33 +
- gt12L*Gt233*Gt313*gtu33 + Gt213*gt23L*Gt313*gtu33 + gt13L*Gt213*Gt323*gtu33 + gt13L*Gt313*Gt333*gtu33 +
- gt12L*gtu21*SQR(Gt212)) + gt22L*gtu33*SQR(Gt213) + gt33L*gtu11*SQR(Gt311) + gt33L*gtu22*SQR(Gt312) +
- 2*gt13L*gtu31*SQR(Gt313) + gt33L*gtu33*SQR(Gt313);
-
- CCTK_REAL const Rt12 = khalf*(-(gtu11*PDstandardNth11gt12) - 2*gtu21*PDstandardNth12gt12 - 2*gtu31*PDstandardNth13gt12 +
- gt12L*PDstandardNth1Xt1 + gt22L*PDstandardNth1Xt2 + gt23L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt12 -
- 2*gtu32*PDstandardNth23gt12 + gt11L*PDstandardNth2Xt1 + gt12L*PDstandardNth2Xt2 + gt13L*PDstandardNth2Xt3 -
- gtu33*PDstandardNth33gt12 + (Gt111*gt12L + Gt211*gt22L + gt23L*Gt311)*Xt1L +
- (Gt112*gt11L + gt12L*Gt212 + gt13L*Gt312)*Xt1L + (Gt112*gt12L + Gt212*gt22L + gt23L*Gt312)*Xt2L +
- (gt11L*Gt122 + gt12L*Gt222 + gt13L*Gt322)*Xt2L + (Gt113*gt12L + Gt213*gt22L + gt23L*Gt313)*Xt3L +
- (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xt3L +
- 2*gtu21*(Gt112*gt11L*Gt222 + Gt112*Gt211*gt22L + Gt211*Gt222*gt22L + 2*Gt122*gt13L*Gt311 + Gt112*gt23L*Gt311 +
- Gt222*gt23L*Gt311 + gt13L*Gt222*Gt312 + Gt213*gt22L*Gt312 + Gt212*gt23L*Gt312 + gt23L*Gt312*Gt313 +
- Gt113*gt11L*Gt322 + Gt211*gt23L*Gt322 + gt13L*Gt313*Gt322 +
- Gt111*(2*gt11L*Gt122 + Gt112*gt12L + gt12L*Gt222 + gt13L*Gt322) +
- gt12L*(2*Gt122*Gt211 + Gt112*Gt212 + Gt212*Gt222 + Gt113*Gt312 + Gt213*Gt322) + Gt311*Gt322*gt33L +
- gt22L*SQR(Gt212)) + 2*((Gt123*gt12L*Gt211 + Gt113*gt12L*Gt212 + 2*Gt112*gt12L*Gt213 + gt12L*Gt212*Gt223 +
- Gt212*Gt213*gt22L + Gt211*Gt223*gt22L + gt12L*Gt133*Gt311 + gt22L*Gt233*Gt311 + Gt113*gt13L*Gt312 +
- gt12L*Gt233*Gt312 + Gt213*gt23L*Gt312 + gt11L*(2*Gt112*Gt113 + Gt123*Gt212 + Gt133*Gt312) +
- 2*Gt112*gt13L*Gt313 + Gt212*gt23L*Gt313 + Gt111*(Gt113*gt12L + Gt213*gt22L + gt23L*Gt313) +
- gt13L*Gt212*Gt323 + Gt211*gt23L*Gt323 + gt23L*Gt311*Gt333 + gt13L*Gt312*Gt333 + Gt312*Gt313*gt33L)*gtu31 +
- (Gt123*gt12L*Gt212 + 2*Gt122*gt12L*Gt213 + Gt113*gt12L*Gt222 + gt12L*Gt222*Gt223 + Gt213*Gt222*gt22L +
- Gt212*Gt223*gt22L + gt12L*Gt133*Gt312 + gt22L*Gt233*Gt312 + 2*Gt122*gt13L*Gt313 + Gt222*gt23L*Gt313 +
- Gt112*(Gt113*gt12L + Gt213*gt22L + gt23L*Gt313) + Gt113*gt13L*Gt322 + gt12L*Gt233*Gt322 +
- Gt213*gt23L*Gt322 + gt11L*(2*Gt113*Gt122 + Gt123*Gt222 + Gt133*Gt322) + gt13L*Gt222*Gt323 +
- Gt212*gt23L*Gt323 + gt23L*Gt312*Gt333 + gt13L*Gt322*Gt333 + Gt313*Gt322*gt33L)*gtu32 +
- gtu11*(3*Gt112*gt12L*Gt211 + 2*Gt211*Gt212*gt22L + Gt113*gt12L*Gt311 + 2*Gt112*gt13L*Gt311 +
- Gt213*gt22L*Gt311 + Gt212*gt23L*Gt311 + gt13L*Gt212*Gt312 + gt12L*Gt213*Gt312 + 2*Gt211*gt23L*Gt312 +
- gt11L*(2*Gt111*Gt112 + Gt112*Gt212 + Gt113*Gt312) +
- Gt111*(gt12L*Gt212 + Gt211*gt22L + gt23L*Gt311 + gt13L*Gt312) + gt23L*Gt311*Gt313 + gt13L*Gt312*Gt313 +
- Gt311*Gt312*gt33L + gt12L*SQR(Gt111) + gt12L*SQR(Gt212))) +
- 2*gtu22*(gt11L*Gt122*Gt222 + 2*Gt212*Gt222*gt22L + 2*Gt122*gt13L*Gt312 + Gt223*gt22L*Gt312 + Gt222*gt23L*Gt312 +
- gt11L*Gt123*Gt322 + gt13L*Gt222*Gt322 + 2*Gt212*gt23L*Gt322 +
- Gt112*(2*gt11L*Gt122 + gt12L*Gt222 + Gt212*gt22L + gt23L*Gt312 + gt13L*Gt322) + gt23L*Gt312*Gt323 +
- gt13L*Gt322*Gt323 + Gt312*Gt322*gt33L + gt12L*SQR(Gt112) +
- gt12L*(3*Gt122*Gt212 + Gt123*Gt312 + Gt223*Gt322 + SQR(Gt222))) +
- 2*gtu33*(gt11L*Gt123*Gt223 + 2*Gt213*Gt223*gt22L + 2*Gt123*gt13L*Gt313 + gt22L*Gt233*Gt313 + Gt223*gt23L*Gt313 +
- gt11L*Gt133*Gt323 + gt13L*Gt223*Gt323 + 2*Gt213*gt23L*Gt323 +
- Gt113*(2*gt11L*Gt123 + gt12L*Gt223 + Gt213*gt22L + gt23L*Gt313 + gt13L*Gt323) + gt23L*Gt313*Gt333 +
- gt13L*Gt323*Gt333 + Gt313*Gt323*gt33L + gt12L*SQR(Gt113) +
- gt12L*(3*Gt123*Gt213 + Gt133*Gt313 + Gt233*Gt323 + SQR(Gt223))) +
- 2*gtu21*(Gt122*gt12L*Gt211 + 3*Gt112*gt12L*Gt212 + gt12L*Gt212*Gt222 + Gt211*Gt222*gt22L + Gt123*gt12L*Gt311 +
- Gt223*gt22L*Gt311 + 3*Gt112*gt13L*Gt312 + gt12L*Gt223*Gt312 + 2*Gt212*gt23L*Gt312 +
- Gt111*(Gt112*gt12L + Gt212*gt22L + gt23L*Gt312) + gt13L*Gt212*Gt322 + Gt211*gt23L*Gt322 + gt23L*Gt311*Gt323 +
- gt13L*Gt312*Gt323 + gt11L*(Gt122*Gt212 + Gt123*Gt312 + 2*SQR(Gt112)) + gt22L*SQR(Gt212) + gt33L*SQR(Gt312)) +
- 2*gtu31*(Gt112*gt11L*Gt223 + Gt113*Gt211*gt22L + Gt212*Gt213*gt22L + Gt211*Gt223*gt22L + 2*Gt123*gt13L*Gt311 +
- Gt113*gt23L*Gt311 + Gt223*gt23L*Gt311 + gt13L*Gt223*Gt312 + Gt213*gt23L*Gt312 + Gt213*gt22L*Gt313 +
- Gt113*gt11L*Gt323 + Gt211*gt23L*Gt323 + gt13L*Gt313*Gt323 +
- Gt111*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 + gt13L*Gt323) +
- gt12L*(2*Gt123*Gt211 + Gt112*Gt213 + Gt212*Gt223 + Gt113*Gt313 + Gt213*Gt323) + Gt311*Gt323*gt33L +
- gt23L*SQR(Gt313)) + 2*gtu32*(gt11L*Gt122*Gt223 + Gt113*Gt212*gt22L + Gt213*Gt222*gt22L + Gt212*Gt223*gt22L +
- 2*Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 + Gt223*gt23L*Gt312 + Gt223*gt22L*Gt313 + gt13L*Gt223*Gt322 +
- Gt213*gt23L*Gt322 + gt11L*Gt123*Gt323 + Gt212*gt23L*Gt323 + gt23L*Gt313*Gt323 +
- Gt112*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 + gt13L*Gt323) +
- gt12L*(Gt122*Gt213 + Gt123*(2*Gt212 + Gt313) + Gt223*(Gt222 + Gt323)) + Gt312*Gt323*gt33L + gt13L*SQR(Gt323)));
-
- CCTK_REAL const Rt13 = khalf*(-(gtu11*PDstandardNth11gt13) - 2*gtu21*PDstandardNth12gt13 - 2*gtu31*PDstandardNth13gt13 +
- gt13L*PDstandardNth1Xt1 + gt23L*PDstandardNth1Xt2 + gt33L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt13 -
- 2*gtu32*PDstandardNth23gt13 - gtu33*PDstandardNth33gt13 + gt11L*PDstandardNth3Xt1 + gt12L*PDstandardNth3Xt2 +
- gt13L*PDstandardNth3Xt3 + (Gt113*gt11L + gt12L*Gt213 + gt13L*Gt313)*Xt1L +
- (Gt111*gt13L + Gt211*gt23L + Gt311*gt33L)*Xt1L + (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xt2L +
- (Gt112*gt13L + Gt212*gt23L + Gt312*gt33L)*Xt2L + (gt11L*Gt133 + gt12L*Gt233 + gt13L*Gt333)*Xt3L +
- (Gt113*gt13L + Gt213*gt23L + Gt313*gt33L)*Xt3L +
- 2*((Gt122*gt13L*Gt211 + 2*Gt113*gt12L*Gt212 + Gt112*gt12L*Gt213 + gt12L*Gt213*Gt222 + Gt212*Gt213*gt22L +
- Gt211*Gt222*gt23L + Gt123*gt13L*Gt311 + Gt223*gt23L*Gt311 + 2*Gt113*gt13L*Gt312 + Gt213*gt23L*Gt312 +
- Gt112*gt13L*Gt313 + gt12L*Gt223*Gt313 + Gt212*gt23L*Gt313 +
- gt11L*(2*Gt112*Gt113 + Gt122*Gt213 + Gt123*Gt313) + gt13L*Gt213*Gt322 + gt13L*Gt313*Gt323 +
- Gt312*Gt313*gt33L + Gt211*Gt322*gt33L + Gt311*Gt323*gt33L + Gt111*(Gt112*gt13L + Gt212*gt23L + Gt312*gt33L))
- *gtu21 + (Gt122*gt13L*Gt213 + gt11L*Gt122*Gt233 + Gt212*gt22L*Gt233 + Gt113*Gt212*gt23L +
- Gt213*Gt222*gt23L + 2*Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + Gt123*gt13L*Gt313 + Gt223*gt23L*Gt313 +
- gt13L*Gt233*Gt322 + gt11L*Gt123*Gt333 + Gt212*gt23L*Gt333 + gt13L*Gt323*Gt333 +
- Gt112*(2*gt11L*Gt133 + Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) +
- gt12L*(2*Gt133*Gt212 + Gt222*Gt233 + Gt223*Gt333) + Gt113*Gt312*gt33L + Gt213*Gt322*gt33L +
- Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu32 +
- gtu21*(2*Gt123*gt12L*Gt211 + Gt112*gt13L*Gt212 + gt12L*Gt212*Gt223 + Gt211*Gt223*gt22L + Gt112*Gt211*gt23L +
- 2*Gt123*gt13L*Gt311 + Gt223*gt23L*Gt311 + Gt113*gt13L*Gt312 + gt13L*Gt223*Gt312 + Gt213*gt23L*Gt312 +
- gt12L*Gt213*Gt323 + Gt211*gt23L*Gt323 + gt13L*Gt313*Gt323 +
- gt11L*(2*Gt111*Gt123 + Gt112*Gt223 + Gt113*Gt323) + Gt111*(Gt112*gt13L + gt12L*Gt223 + gt13L*Gt323) +
- Gt112*Gt311*gt33L + Gt212*Gt312*gt33L + Gt312*Gt313*gt33L + Gt311*Gt323*gt33L + gt23L*SQR(Gt212))) +
- 2*gtu32*(Gt123*gt13L*Gt212 + 2*Gt123*gt12L*Gt213 + Gt113*gt12L*Gt223 + Gt213*Gt223*gt22L + Gt212*Gt223*gt23L +
- Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + 2*Gt123*gt13L*Gt313 + Gt223*gt23L*Gt313 + Gt113*gt13L*Gt323 +
- gt13L*Gt223*Gt323 + gt12L*Gt233*Gt323 + Gt213*gt23L*Gt323 +
- gt11L*(2*Gt113*Gt123 + Gt123*Gt223 + Gt133*Gt323) + gt13L*Gt323*Gt333 + Gt212*Gt323*gt33L +
- Gt313*Gt323*gt33L + Gt312*Gt333*gt33L + Gt112*(Gt113*gt13L + Gt213*gt23L + Gt313*gt33L) + gt12L*SQR(Gt223)) +
- 2*gtu11*(2*Gt113*gt12L*Gt211 + Gt112*gt13L*Gt211 + gt12L*Gt212*Gt213 + Gt211*Gt213*gt22L + Gt211*Gt212*gt23L +
- 3*Gt113*gt13L*Gt311 + 2*Gt213*gt23L*Gt311 + gt13L*Gt213*Gt312 + gt12L*Gt213*Gt313 + Gt211*gt23L*Gt313 +
- gt11L*(2*Gt111*Gt113 + Gt112*Gt213 + Gt113*Gt313) + Gt211*Gt312*gt33L + 2*Gt311*Gt313*gt33L +
- Gt111*(gt12L*Gt213 + Gt211*gt23L + gt13L*Gt313 + Gt311*gt33L) + gt13L*SQR(Gt111) + gt13L*SQR(Gt313)) +
- 2*gtu31*(Gt112*gt13L*Gt213 + Gt112*gt11L*Gt233 + Gt211*gt22L*Gt233 + Gt113*Gt211*gt23L + Gt212*Gt213*gt23L +
- 2*Gt133*gt13L*Gt311 + Gt233*gt23L*Gt311 + gt13L*Gt233*Gt312 + Gt113*gt13L*Gt313 + Gt213*gt23L*Gt313 +
- Gt113*gt11L*Gt333 + Gt211*gt23L*Gt333 + gt13L*Gt313*Gt333 +
- Gt111*(2*gt11L*Gt133 + Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) +
- gt12L*(2*Gt133*Gt211 + Gt212*Gt233 + Gt213*Gt333) + Gt113*Gt311*gt33L + Gt213*Gt312*gt33L +
- Gt311*Gt333*gt33L + gt33L*SQR(Gt313)) +
- 2*gtu31*(Gt123*gt13L*Gt211 + 3*Gt113*gt12L*Gt213 + gt12L*Gt213*Gt223 + Gt211*Gt223*gt23L + Gt133*gt13L*Gt311 +
- Gt233*gt23L*Gt311 + 3*Gt113*gt13L*Gt313 + gt12L*Gt233*Gt313 + 2*Gt213*gt23L*Gt313 + gt13L*Gt213*Gt323 +
- gt13L*Gt313*Gt333 + Gt211*Gt323*gt33L + Gt311*Gt333*gt33L + Gt111*(Gt113*gt13L + Gt213*gt23L + Gt313*gt33L) +
- gt11L*(Gt123*Gt213 + Gt133*Gt313 + 2*SQR(Gt113)) + gt22L*SQR(Gt213) + gt33L*SQR(Gt313)) +
- 2*gtu22*(2*Gt123*gt12L*Gt212 + Gt122*gt13L*Gt212 + gt12L*Gt222*Gt223 + Gt212*Gt223*gt22L + Gt212*Gt222*gt23L +
- 3*Gt123*gt13L*Gt312 + 2*Gt223*gt23L*Gt312 + gt13L*Gt223*Gt322 + gt12L*Gt223*Gt323 + Gt212*gt23L*Gt323 +
- gt11L*(2*Gt112*Gt123 + Gt122*Gt223 + Gt123*Gt323) + Gt212*Gt322*gt33L + 2*Gt312*Gt323*gt33L +
- Gt112*(gt12L*Gt223 + Gt212*gt23L + gt13L*Gt323 + Gt312*gt33L) + gt13L*SQR(Gt112) + gt13L*SQR(Gt323)) +
- 2*gtu33*(2*gt12L*Gt133*Gt213 + Gt123*gt13L*Gt213 + gt11L*Gt123*Gt233 + gt12L*Gt223*Gt233 + Gt213*gt22L*Gt233 +
- Gt213*Gt223*gt23L + 3*Gt133*gt13L*Gt313 + 2*Gt233*gt23L*Gt313 + gt13L*Gt233*Gt323 + gt11L*Gt133*Gt333 +
- gt12L*Gt233*Gt333 + Gt213*gt23L*Gt333 + Gt213*Gt323*gt33L + 2*Gt313*Gt333*gt33L +
- Gt113*(2*gt11L*Gt133 + gt12L*Gt233 + Gt213*gt23L + gt13L*Gt333 + Gt313*gt33L) + gt13L*SQR(Gt113) +
- gt13L*SQR(Gt333)));
-
- CCTK_REAL const Rt22 = 4*(Gt122*gt12L*Gt212*gtu21 + Gt112*gt12L*Gt222*gtu21 + Gt122*gt12L*Gt222*gtu22 + Gt123*gt12L*Gt212*gtu31 +
- Gt123*gt12L*Gt222*gtu32 + Gt123*gt12L*Gt223*gtu33) - gtu11*khalf*PDstandardNth11gt22 +
- gtu21*(6*Gt212*Gt222*gt22L + 2*Gt122*gt23L*Gt311 + 2*Gt122*gt13L*Gt312 + 4*Gt222*gt23L*Gt312 +
- 2*Gt113*gt12L*Gt322 + 2*gt23L*Gt312*Gt323 + 2*Gt312*Gt322*gt33L - PDstandardNth12gt22) +
- gtu31*(6*Gt212*Gt223*gt22L + 2*Gt123*gt13L*Gt312 + 2*Gt112*gt23L*Gt313 + 2*Gt113*gt12L*Gt323 +
- 2*gt23L*Gt312*Gt333 + 2*Gt312*Gt323*gt33L - PDstandardNth13gt22) - gtu22*khalf*PDstandardNth22gt22 +
- gtu32*(4*Gt122*gt12L*Gt223 + 2*Gt123*Gt212*gt22L + 2*gt12L*Gt133*Gt322 + 4*Gt223*gt23L*Gt322 +
- 2*Gt123*gt12L*Gt323 + 4*Gt222*gt23L*Gt323 + 2*gt23L*Gt322*Gt333 + 2*Gt322*Gt323*gt33L - PDstandardNth23gt22) +
- gt12L*(2*Gt111*Gt123*gtu31 + 4*Gt112*Gt223*gtu31 + 2*Gt113*Gt122*gtu32 + 2*Gt113*Gt123*gtu33 + PDstandardNth2Xt1) +
- gt22L*(2*Gt122*Gt213*gtu32 + 6*Gt222*Gt223*gtu32 + 2*Gt123*Gt213*gtu33 + PDstandardNth2Xt2) +
- gt23L*(4*Gt212*Gt322*gtu21 + 2*Gt313*Gt322*gtu21 + 4*Gt222*Gt322*gtu22 + 2*Gt123*Gt311*gtu31 +
- 4*Gt212*Gt323*gtu31 + 2*Gt313*Gt323*gtu31 + 2*Gt122*Gt313*gtu32 + 2*Gt123*Gt313*gtu33 + 4*Gt223*Gt323*gtu33 +
- 2*Gt323*Gt333*gtu33 + PDstandardNth2Xt3) - gtu33*khalf*PDstandardNth33gt22 + Gt212*gt22L*Xt1L +
- Gt112*(2*Gt111*gt12L*gtu11 + 4*gt12L*Gt212*gtu11 + 2*gt11L*Gt122*gtu21 + 2*Gt122*gt12L*gtu22 +
- 2*gt11L*Gt123*gtu31 + 2*Gt123*gt12L*gtu32 + gt12L*Xt1L) +
- Gt312*(2*Gt213*gt22L*gtu11 + 4*Gt212*gt23L*gtu11 + 2*gt23L*Gt313*gtu11 + 2*Gt123*gt12L*gtu21 +
- 2*Gt122*gt23L*gtu22 + 2*gt12L*Gt133*gtu31 + 2*gt22L*Gt233*gtu31 + 4*Gt223*gt23L*gtu31 + 2*Gt123*gt23L*gtu32 +
- gt23L*Xt1L) + Gt122*gt12L*Xt2L + Gt222*gt22L*Xt2L + gt23L*Gt322*Xt2L + Gt123*gt12L*Xt3L + Gt223*gt22L*Xt3L +
- gt23L*Gt323*Xt3L + gt11L*gtu11*SQR(Gt112) + 2*
- (Gt112*Gt211*gt22L*gtu11 + Gt112*gt23L*Gt311*gtu11 + Gt113*gt12L*Gt312*gtu11 + Gt112*gt13L*Gt312*gtu11 +
- Gt111*Gt122*gt12L*gtu21 + Gt122*Gt211*gt22L*gtu21 + Gt112*Gt212*gt22L*gtu21 + Gt223*gt22L*Gt312*gtu21 +
- Gt112*gt23L*Gt312*gtu21 + Gt112*gt13L*Gt322*gtu21 + Gt213*gt22L*Gt322*gtu21 + Gt122*Gt212*gt22L*gtu22 +
- Gt123*gt12L*Gt322*gtu22 + Gt122*gt13L*Gt322*gtu22 + Gt223*gt22L*Gt322*gtu22 + gt23L*Gt322*Gt323*gtu22 +
- Gt112*Gt113*gt12L*gtu31 + Gt123*Gt211*gt22L*gtu31 + Gt112*Gt213*gt22L*gtu31 + Gt112*gt13L*Gt323*gtu31 +
- Gt213*gt22L*Gt323*gtu31 + gt11L*Gt122*Gt123*gtu32 + Gt123*gt13L*Gt322*gtu32 + gt22L*Gt233*Gt322*gtu32 +
- Gt122*gt13L*Gt323*gtu32 + Gt223*gt22L*Gt323*gtu32 + gt12L*Gt133*Gt323*gtu33 + Gt123*gt13L*Gt323*gtu33 +
- gt22L*Gt233*Gt323*gtu33 + gt12L*gtu21*SQR(Gt112)) + gt11L*gtu22*SQR(Gt122) + gt11L*gtu33*SQR(Gt123) +
- 3*gt22L*gtu11*SQR(Gt212) + 3*gt22L*gtu22*SQR(Gt222) + 3*gt22L*gtu33*SQR(Gt223) + gt33L*gtu11*SQR(Gt312) +
- gt33L*gtu22*SQR(Gt322) + 2*gt23L*gtu32*SQR(Gt323) + gt33L*gtu33*SQR(Gt323);
-
- CCTK_REAL const Rt23 = khalf*(-(gtu11*PDstandardNth11gt23) - 2*gtu21*PDstandardNth12gt23 - 2*gtu31*PDstandardNth13gt23 -
- gtu22*PDstandardNth22gt23 - 2*gtu32*PDstandardNth23gt23 + gt13L*PDstandardNth2Xt1 + gt23L*PDstandardNth2Xt2 +
- gt33L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt23 + gt12L*PDstandardNth3Xt1 + gt22L*PDstandardNth3Xt2 +
- gt23L*PDstandardNth3Xt3 + (Gt113*gt12L + Gt213*gt22L + gt23L*Gt313)*Xt1L +
- (Gt112*gt13L + Gt212*gt23L + Gt312*gt33L)*Xt1L + (Gt123*gt12L + Gt223*gt22L + gt23L*Gt323)*Xt2L +
- (Gt122*gt13L + Gt222*gt23L + Gt322*gt33L)*Xt2L + (gt12L*Gt133 + gt22L*Gt233 + gt23L*Gt333)*Xt3L +
- (Gt123*gt13L + Gt223*gt23L + Gt323*gt33L)*Xt3L +
- 2*((Gt112*gt11L*Gt123 + Gt111*Gt123*gt12L + Gt111*Gt122*gt13L + Gt123*gt12L*Gt212 + Gt112*gt13L*Gt222 +
- 2*Gt112*gt12L*Gt223 + Gt123*Gt211*gt22L + 2*Gt212*Gt223*gt22L + Gt122*Gt211*gt23L + Gt212*Gt222*gt23L +
- Gt123*gt23L*Gt311 + Gt123*gt13L*Gt312 + 2*Gt223*gt23L*Gt312 + Gt113*gt13L*Gt322 + Gt213*gt23L*Gt322 +
- Gt113*gt12L*Gt323 + Gt112*gt13L*Gt323 + Gt213*gt22L*Gt323 + Gt212*gt23L*Gt323 + gt23L*Gt313*Gt323 +
- Gt122*Gt311*gt33L + Gt222*Gt312*gt33L + Gt313*Gt322*gt33L + Gt312*Gt323*gt33L)*gtu21 +
- (Gt112*gt11L*Gt133 + Gt111*gt12L*Gt133 + Gt111*Gt123*gt13L + gt12L*Gt133*Gt212 + Gt112*gt13L*Gt223 +
- Gt133*Gt211*gt22L + 2*Gt112*gt12L*Gt233 + 2*Gt212*gt22L*Gt233 + Gt123*Gt211*gt23L + Gt212*Gt223*gt23L +
- Gt133*gt23L*Gt311 + Gt133*gt13L*Gt312 + 2*Gt233*gt23L*Gt312 + Gt113*gt13L*Gt323 + Gt213*gt23L*Gt323 +
- Gt113*gt12L*Gt333 + Gt112*gt13L*Gt333 + Gt213*gt22L*Gt333 + Gt212*gt23L*Gt333 + gt23L*Gt313*Gt333 +
- Gt123*Gt311*gt33L + Gt223*Gt312*gt33L + Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu31 +
- gtu21*(Gt113*gt11L*Gt122 + Gt122*gt13L*Gt212 + 2*Gt122*gt12L*Gt213 + Gt113*gt12L*Gt222 + Gt113*Gt212*gt22L +
- 2*Gt213*Gt222*gt22L + Gt212*Gt222*gt23L + Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 + Gt223*gt23L*Gt312 +
- Gt123*gt12L*Gt313 + Gt122*gt13L*Gt313 + Gt223*gt22L*Gt313 + Gt222*gt23L*Gt313 + Gt113*gt13L*Gt322 +
- 2*Gt213*gt23L*Gt322 + gt23L*Gt313*Gt323 + Gt212*Gt322*gt33L + Gt313*Gt322*gt33L + Gt312*Gt323*gt33L +
- Gt112*(Gt113*gt12L + Gt212*gt23L + Gt312*gt33L) + gt13L*SQR(Gt112))) +
- 2*gtu31*(2*Gt213*Gt223*gt22L + Gt112*Gt213*gt23L + Gt212*Gt223*gt23L + Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 +
- gt12L*Gt133*Gt313 + gt22L*Gt233*Gt313 + Gt223*gt23L*Gt313 + Gt123*(2*gt12L*Gt213 + gt13L*(Gt212 + Gt313)) +
- 2*Gt213*gt23L*Gt323 + Gt113*(gt11L*Gt123 + Gt112*gt13L + gt12L*Gt223 + Gt213*gt22L + gt23L*Gt313 +
- gt13L*Gt323) + gt23L*Gt313*Gt333 + Gt112*Gt313*gt33L + Gt212*Gt323*gt33L + Gt313*Gt323*gt33L +
- Gt312*Gt333*gt33L + gt12L*SQR(Gt113)) +
- 2*gtu11*(Gt112*Gt113*gt11L + Gt111*Gt113*gt12L + Gt111*Gt112*gt13L + Gt113*gt12L*Gt212 + Gt112*gt13L*Gt212 +
- 2*Gt112*gt12L*Gt213 + Gt113*Gt211*gt22L + 2*Gt212*Gt213*gt22L + Gt112*Gt211*gt23L + Gt113*gt23L*Gt311 +
- 2*Gt113*gt13L*Gt312 + 3*Gt213*gt23L*Gt312 + Gt113*gt12L*Gt313 + Gt112*gt13L*Gt313 + Gt213*gt22L*Gt313 +
- Gt212*gt23L*Gt313 + Gt112*Gt311*gt33L + Gt212*Gt312*gt33L + 2*Gt312*Gt313*gt33L + gt23L*SQR(Gt212) +
- gt23L*SQR(Gt313)) + 2*gtu22*(gt11L*Gt122*Gt123 + Gt112*Gt123*gt12L + Gt112*Gt122*gt13L + Gt123*gt12L*Gt222 +
- Gt122*gt13L*Gt222 + 2*Gt122*gt12L*Gt223 + Gt123*Gt212*gt22L + 2*Gt222*Gt223*gt22L + Gt122*Gt212*gt23L +
- Gt123*gt23L*Gt312 + 2*Gt123*gt13L*Gt322 + 3*Gt223*gt23L*Gt322 + Gt123*gt12L*Gt323 + Gt122*gt13L*Gt323 +
- Gt223*gt22L*Gt323 + Gt222*gt23L*Gt323 + Gt122*Gt312*gt33L + Gt222*Gt322*gt33L + 2*Gt322*Gt323*gt33L +
- gt23L*SQR(Gt222) + gt23L*SQR(Gt323)) + 2*gtu32*
- (gt11L*Gt122*Gt133 + Gt112*gt12L*Gt133 + Gt112*Gt123*gt13L + gt12L*Gt133*Gt222 + Gt122*gt13L*Gt223 +
- Gt133*Gt212*gt22L + 2*Gt122*gt12L*Gt233 + 2*Gt222*gt22L*Gt233 + Gt123*Gt212*gt23L + Gt222*Gt223*gt23L +
- Gt133*gt23L*Gt312 + Gt133*gt13L*Gt322 + 2*Gt233*gt23L*Gt322 + Gt123*gt13L*Gt323 + Gt223*gt23L*Gt323 +
- Gt123*gt12L*Gt333 + Gt122*gt13L*Gt333 + Gt223*gt22L*Gt333 + Gt222*gt23L*Gt333 + gt23L*Gt323*Gt333 +
- Gt123*Gt312*gt33L + Gt223*Gt322*gt33L + Gt322*Gt333*gt33L + gt33L*SQR(Gt323)) +
- 2*gtu32*(Gt113*Gt123*gt12L + Gt113*Gt122*gt13L + Gt123*gt13L*Gt222 + 3*Gt123*gt12L*Gt223 + Gt123*Gt213*gt22L +
- Gt122*Gt213*gt23L + Gt222*Gt223*gt23L + Gt123*gt23L*Gt313 + Gt133*gt13L*Gt322 + Gt233*gt23L*Gt322 +
- gt12L*Gt133*Gt323 + 2*Gt123*gt13L*Gt323 + gt22L*Gt233*Gt323 + 3*Gt223*gt23L*Gt323 + gt23L*Gt323*Gt333 +
- Gt122*Gt313*gt33L + Gt222*Gt323*gt33L + Gt322*Gt333*gt33L + gt11L*SQR(Gt123) + 2*gt22L*SQR(Gt223) +
- gt33L*SQR(Gt323)) + 2*gtu33*(gt11L*Gt123*Gt133 + Gt113*gt12L*Gt133 + Gt113*Gt123*gt13L + gt12L*Gt133*Gt223 +
- Gt123*gt13L*Gt223 + Gt133*Gt213*gt22L + 2*Gt123*gt12L*Gt233 + 2*Gt223*gt22L*Gt233 + Gt123*Gt213*gt23L +
- Gt133*gt23L*Gt313 + 2*Gt133*gt13L*Gt323 + 3*Gt233*gt23L*Gt323 + gt12L*Gt133*Gt333 + Gt123*gt13L*Gt333 +
- gt22L*Gt233*Gt333 + Gt223*gt23L*Gt333 + Gt123*Gt313*gt33L + Gt223*Gt323*gt33L + 2*Gt323*Gt333*gt33L +
- gt23L*SQR(Gt223) + gt23L*SQR(Gt333)));
-
- CCTK_REAL const Rt33 = 4*(Gt123*gt13L*Gt323*gtu22 + Gt223*gt23L*Gt323*gtu22 + Gt133*gt13L*Gt313*gtu31 + Gt233*gt23L*Gt313*gtu31 +
- Gt113*gt13L*Gt333*gtu31 + Gt133*gt13L*Gt323*gtu32 + Gt233*gt23L*Gt323*gtu32 + Gt123*gt13L*Gt333*gtu32 +
- Gt133*gt13L*Gt333*gtu33) + gtu21*(2*Gt212*Gt223*gt23L + 4*Gt123*gt13L*Gt313 + 4*Gt223*gt23L*Gt313 +
- 4*Gt113*gt13L*Gt323 + 4*Gt213*gt23L*Gt323 + 2*Gt123*Gt311*gt33L - PDstandardNth12gt33) +
- gtu31*(4*Gt213*gt23L*Gt333 + 2*Gt233*Gt312*gt33L + 6*Gt313*Gt333*gt33L - PDstandardNth13gt33) -
- gtu22*khalf*PDstandardNth22gt33 + gtu32*(4*Gt223*gt23L*Gt333 + 2*Gt123*Gt313*gt33L + 6*Gt323*Gt333*gt33L -
- PDstandardNth23gt33) - gtu33*khalf*PDstandardNth33gt33 + gt13L*PDstandardNth3Xt1 + gt23L*PDstandardNth3Xt2 +
- gt33L*(2*Gt213*Gt322*gtu21 + 6*Gt313*Gt323*gtu21 + 2*Gt123*Gt312*gtu22 + 2*Gt133*Gt311*gtu31 +
- 2*Gt133*Gt312*gtu32 + 2*Gt133*Gt313*gtu33 + PDstandardNth3Xt3) + Gt113*gt13L*Xt1L + Gt213*gt23L*Xt1L +
- Gt313*gt33L*Xt1L + Gt123*gt13L*Xt2L + Gt223*gt23L*Xt2L + Gt323*gt33L*Xt2L + Gt133*gt13L*Xt3L + Gt333*gt33L*Xt3L +
- Gt233*(4*gt23L*Gt333*gtu33 + 2*Gt323*gt33L*gtu33 + gt23L*Xt3L) +
- gtu11*(2*Gt212*Gt213*gt23L + 4*Gt113*gt13L*Gt313 + 4*Gt213*gt23L*Gt313 + 2*Gt113*Gt311*gt33L +
- 2*Gt213*Gt312*gt33L - khalf*PDstandardNth11gt33 + gt11L*SQR(Gt113)) +
- 2*(Gt111*Gt113*gt13L*gtu11 + Gt113*gt12L*Gt213*gtu11 + Gt112*gt13L*Gt213*gtu11 + Gt113*Gt211*gt23L*gtu11 +
- Gt113*gt11L*Gt123*gtu21 + Gt112*Gt113*gt13L*gtu21 + Gt111*Gt123*gt13L*gtu21 + Gt123*gt12L*Gt213*gtu21 +
- Gt122*gt13L*Gt213*gtu21 + Gt113*gt12L*Gt223*gtu21 + Gt112*gt13L*Gt223*gtu21 + Gt213*Gt223*gt22L*gtu21 +
- Gt123*Gt211*gt23L*gtu21 + Gt113*Gt212*gt23L*gtu21 + Gt213*Gt222*gt23L*gtu21 + Gt113*Gt312*gt33L*gtu21 +
- Gt223*Gt312*gt33L*gtu21 + Gt112*Gt123*gt13L*gtu22 + Gt123*gt12L*Gt223*gtu22 + Gt122*gt13L*Gt223*gtu22 +
- Gt123*Gt212*gt23L*gtu22 + Gt222*Gt223*gt23L*gtu22 + Gt223*Gt322*gt33L*gtu22 + Gt113*gt11L*Gt133*gtu31 +
- Gt111*Gt133*gt13L*gtu31 + gt12L*Gt133*Gt213*gtu31 + Gt123*gt13L*Gt213*gtu31 + Gt113*gt12L*Gt233*gtu31 +
- Gt112*gt13L*Gt233*gtu31 + Gt213*gt22L*Gt233*gtu31 + Gt133*Gt211*gt23L*gtu31 + Gt113*Gt213*gt23L*gtu31 +
- Gt213*Gt223*gt23L*gtu31 + Gt212*Gt233*gt23L*gtu31 + Gt113*Gt313*gt33L*gtu31 + Gt213*Gt323*gt33L*gtu31 +
- gt11L*Gt123*Gt133*gtu32 + Gt113*Gt123*gt13L*gtu32 + Gt112*Gt133*gt13L*gtu32 + gt12L*Gt133*Gt223*gtu32 +
- Gt123*gt13L*Gt223*gtu32 + Gt123*gt12L*Gt233*gtu32 + Gt122*gt13L*Gt233*gtu32 + Gt223*gt22L*Gt233*gtu32 +
- Gt133*Gt212*gt23L*gtu32 + Gt123*Gt213*gt23L*gtu32 + Gt222*Gt233*gt23L*gtu32 + Gt233*Gt322*gt33L*gtu32 +
- Gt223*Gt323*gt33L*gtu32 + Gt113*Gt133*gt13L*gtu33 + gt12L*Gt133*Gt233*gtu33 + Gt123*gt13L*Gt233*gtu33 +
- Gt133*Gt213*gt23L*gtu33 + Gt223*Gt233*gt23L*gtu33 + gt13L*gtu31*SQR(Gt113)) + gt11L*gtu22*SQR(Gt123) +
- gt11L*gtu33*SQR(Gt133) + gt22L*gtu11*SQR(Gt213) + gt22L*gtu22*SQR(Gt223) + 2*gt23L*gtu32*SQR(Gt223) +
- gt22L*gtu33*SQR(Gt233) + 3*gt33L*gtu11*SQR(Gt313) + 3*gt33L*gtu22*SQR(Gt323) + 3*gt33L*gtu33*SQR(Gt333);
-
- CCTK_REAL const fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
-
- CCTK_REAL const cdphi1 = fac1*PDstandardNth1phi;
-
- CCTK_REAL const cdphi2 = fac1*PDstandardNth2phi;
-
- CCTK_REAL const cdphi3 = fac1*PDstandardNth3phi;
-
- CCTK_REAL const fac2 = IfThen(conformalMethod,khalf*pow(phiL,-2),0);
-
- CCTK_REAL const cdphi211 = -(fac1*(-PDstandardNth11phi + Gt111*PDstandardNth1phi + Gt211*PDstandardNth2phi +
- Gt311*PDstandardNth3phi)) + fac2*SQR(PDstandardNth1phi);
-
- CCTK_REAL const cdphi212 = fac2*PDstandardNth1phi*PDstandardNth2phi -
- fac1*(-PDstandardNth12phi + Gt112*PDstandardNth1phi + Gt212*PDstandardNth2phi + Gt312*PDstandardNth3phi);
-
- CCTK_REAL const cdphi213 = fac2*PDstandardNth1phi*PDstandardNth3phi -
- fac1*(-PDstandardNth13phi + Gt113*PDstandardNth1phi + Gt213*PDstandardNth2phi + Gt313*PDstandardNth3phi);
-
- CCTK_REAL const cdphi222 = -(fac1*(Gt122*PDstandardNth1phi - PDstandardNth22phi + Gt222*PDstandardNth2phi +
- Gt322*PDstandardNth3phi)) + fac2*SQR(PDstandardNth2phi);
-
- CCTK_REAL const cdphi223 = fac2*PDstandardNth2phi*PDstandardNth3phi -
- fac1*(Gt123*PDstandardNth1phi - PDstandardNth23phi + Gt223*PDstandardNth2phi + Gt323*PDstandardNth3phi);
-
- CCTK_REAL const cdphi233 = -(fac1*(Gt133*PDstandardNth1phi + Gt233*PDstandardNth2phi - PDstandardNth33phi +
- Gt333*PDstandardNth3phi)) + fac2*SQR(PDstandardNth3phi);
-
- CCTK_REAL const Rphi11 = -2*(cdphi211 + 2*(-1 + gt11L*gtu11)*SQR(cdphi1) +
- gt11L*(cdphi211*gtu11 + 4*(cdphi1*(cdphi2*gtu21 + cdphi3*gtu31) + cdphi2*cdphi3*gtu32) + cdphi233*gtu33 +
- gtu22*(cdphi222 + 2*SQR(cdphi2)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu33*SQR(cdphi3))));
-
- CCTK_REAL const Rphi12 = -2*(cdphi212 + cdphi1*(cdphi2*(-2 + 4*gt12L*gtu21) + 4*cdphi3*gt12L*gtu31) +
- gt12L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32 +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) +
- gtu33*(cdphi233 + 2*SQR(cdphi3))));
-
- CCTK_REAL const Rphi13 = -2*(cdphi213 + cdphi1*(4*cdphi2*gt13L*gtu21 + cdphi3*(-2 + 4*gt13L*gtu31)) +
- gt13L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32 +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) +
- gtu33*(cdphi233 + 2*SQR(cdphi3))));
-
- CCTK_REAL const Rphi22 = -2*(cdphi222 + 2*(-1 + gt22L*gtu22)*SQR(cdphi2) +
- gt22L*(cdphi222*gtu22 + 4*(cdphi1*cdphi3*gtu31 + cdphi2*(cdphi1*gtu21 + cdphi3*gtu32)) + cdphi233*gtu33 +
- gtu11*(cdphi211 + 2*SQR(cdphi1)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu33*SQR(cdphi3))));
-
- CCTK_REAL const Rphi23 = -2*(cdphi223 + cdphi2*(4*cdphi1*gt23L*gtu21 + cdphi3*(-2 + 4*gt23L*gtu32)) +
- gt23L*(cdphi222*gtu22 + 4*cdphi1*cdphi3*gtu31 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
- 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 + gtu22*SQR(cdphi2)) + gtu33*(cdphi233 + 2*SQR(cdphi3))));
-
- CCTK_REAL const Rphi33 = -2*(cdphi233 + gt33L*((4*cdphi1*cdphi2 + 2*cdphi212)*gtu21 + 4*cdphi3*(cdphi1*gtu31 + cdphi2*gtu32) +
- 2*(cdphi213*gtu31 + cdphi223*gtu32) + cdphi233*gtu33 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
- gtu22*(cdphi222 + 2*SQR(cdphi2))) + 2*(-1 + gt33L*gtu33)*SQR(cdphi3));
-
- CCTK_REAL const e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
-
- CCTK_REAL const em4phi = INV(e4phi);
-
- CCTK_REAL const gu11 = em4phi*gtu11;
-
- CCTK_REAL const gu21 = em4phi*gtu21;
-
- CCTK_REAL const gu31 = em4phi*gtu31;
+ CCTK_REAL detgt = 1;
- CCTK_REAL const gu22 = em4phi*gtu22;
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
+
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
+
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
+
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
+
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
+
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
+
+ CCTK_REAL Gt111 = khalf*(gtu11*PDstandardNth1gt11 +
+ 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
+ gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
+
+ CCTK_REAL Gt211 = khalf*(gtu21*PDstandardNth1gt11 +
+ 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
+ gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
+
+ CCTK_REAL Gt311 = khalf*(gtu31*PDstandardNth1gt11 +
+ 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
+ gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
+
+ CCTK_REAL Gt112 = khalf*(gtu21*PDstandardNth1gt22 +
+ gtu11*PDstandardNth2gt11 + gtu31*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
+
+ CCTK_REAL Gt212 = khalf*(gtu22*PDstandardNth1gt22 +
+ gtu21*PDstandardNth2gt11 + gtu32*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
+
+ CCTK_REAL Gt312 = khalf*(gtu32*PDstandardNth1gt22 +
+ gtu31*PDstandardNth2gt11 + gtu33*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
+
+ CCTK_REAL Gt113 = khalf*(gtu31*PDstandardNth1gt33 +
+ gtu11*PDstandardNth3gt11 + gtu21*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
+
+ CCTK_REAL Gt213 = khalf*(gtu32*PDstandardNth1gt33 +
+ gtu21*PDstandardNth3gt11 + gtu22*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
+
+ CCTK_REAL Gt313 = khalf*(gtu33*PDstandardNth1gt33 +
+ gtu31*PDstandardNth3gt11 + gtu32*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
+
+ CCTK_REAL Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
+ gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+
+ CCTK_REAL Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
+ gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+
+ CCTK_REAL Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
+ gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+
+ CCTK_REAL Gt123 = khalf*(gtu31*PDstandardNth2gt33 +
+ gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu21*PDstandardNth3gt22);
+
+ CCTK_REAL Gt223 = khalf*(gtu32*PDstandardNth2gt33 +
+ gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu22*PDstandardNth3gt22);
+
+ CCTK_REAL Gt323 = khalf*(gtu33*PDstandardNth2gt33 +
+ gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu32*PDstandardNth3gt22);
+
+ CCTK_REAL Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) -
+ gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
+ 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
+
+ CCTK_REAL Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) -
+ gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
+ 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
+
+ CCTK_REAL Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) -
+ gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
+ 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
+
+ CCTK_REAL Rt11 = -(gtu11*khalf*PDstandardNth11gt11) +
+ gtu21*(2*Gt211*Gt212*gt22L + 4*Gt112*gt13L*Gt311 + 2*Gt113*gt11L*Gt312
+ + 2*gt13L*Gt312*Gt313 + 2*gt13L*Gt211*Gt322 + 2*gt13L*Gt311*Gt323 +
+ 2*Gt311*Gt312*gt33L - PDstandardNth12gt11) - gtu31*PDstandardNth13gt11
+ + gt11L*PDstandardNth1Xt1 + gt12L*(4*Gt111*Gt212*gtu21 +
+ 2*Gt211*Gt222*gtu21 + 2*Gt212*Gt222*gtu22 + 4*Gt113*Gt211*gtu31 +
+ 4*Gt113*Gt212*gtu32 + 4*Gt113*Gt213*gtu33 + PDstandardNth1Xt2) +
+ gt13L*(4*Gt111*Gt312*gtu21 + 2*Gt212*Gt312*gtu21 + 4*Gt112*Gt312*gtu22
+ + 4*Gt113*Gt311*gtu31 + 4*Gt113*Gt312*gtu32 + 4*Gt113*Gt313*gtu33 +
+ PDstandardNth1Xt3) - gtu22*khalf*PDstandardNth22gt11 -
+ gtu32*PDstandardNth23gt11 - gtu33*khalf*PDstandardNth33gt11 +
+ Gt111*(6*Gt113*gt11L*gtu31 + 4*gt12L*Gt213*gtu31 + gt11L*Xt1L) +
+ Gt211*(2*Gt112*gt11L*gtu11 + 4*Gt111*gt12L*gtu11 + 2*gt11L*Gt122*gtu21
+ + 2*gt11L*Gt123*gtu31 + gt12L*Xt1L) + Gt311*(4*Gt111*gt13L*gtu11 +
+ 2*gt12L*Gt213*gtu11 + 2*gt13L*Gt313*gtu11 + 2*gt11L*Gt123*gtu21 +
+ 2*gt11L*Gt133*gtu31 + gt13L*Xt1L) + gt12L*Gt212*Xt2L + gt13L*Gt312*Xt2L
+ + Gt112*(6*Gt111*gt11L*gtu21 + 4*gt12L*Gt211*gtu21 +
+ 4*gt12L*Gt212*gtu22 + 2*gt11L*Gt213*gtu31 + 6*Gt113*gt11L*gtu32 +
+ gt11L*Xt2L) + Gt113*gt11L*Xt3L + Gt213*(2*gt11L*Gt122*gtu32 +
+ 4*Gt112*gt12L*gtu32 + 2*gt11L*Gt123*gtu33 + gt12L*Xt3L) +
+ Gt313*(4*Gt111*gt13L*gtu31 + 2*gt12L*Gt213*gtu31 + 2*gt11L*Gt123*gtu32
+ + 4*Gt112*gt13L*gtu32 + 2*gt12L*Gt223*gtu32 + 2*gt11L*Gt133*gtu33 +
+ gt13L*Xt3L) + 3*gt11L*gtu11*SQR(Gt111) + 3*gt11L*gtu22*SQR(Gt112) +
+ 3*gt11L*gtu33*SQR(Gt113) + gt22L*gtu11*SQR(Gt211) +
+ gt22L*gtu22*SQR(Gt212) + 2*(gt12L*Gt211*Gt212*gtu11 +
+ Gt113*gt11L*Gt311*gtu11 + Gt211*gt23L*Gt311*gtu11 +
+ gt13L*Gt211*Gt312*gtu11 + Gt112*gt11L*Gt212*gtu21 +
+ gt12L*Gt223*Gt311*gtu21 + Gt212*gt23L*Gt311*gtu21 +
+ gt12L*Gt213*Gt312*gtu21 + Gt211*gt23L*Gt312*gtu21 +
+ gt11L*Gt122*Gt212*gtu22 + gt11L*Gt123*Gt312*gtu22 +
+ gt12L*Gt223*Gt312*gtu22 + Gt212*gt23L*Gt312*gtu22 +
+ gt13L*Gt212*Gt322*gtu22 + gt13L*Gt312*Gt323*gtu22 +
+ gt12L*Gt212*Gt213*gtu31 + gt12L*Gt211*Gt223*gtu31 +
+ Gt211*Gt213*gt22L*gtu31 + gt12L*Gt233*Gt311*gtu31 +
+ Gt213*gt23L*Gt311*gtu31 + gt13L*Gt213*Gt312*gtu31 +
+ Gt113*gt11L*Gt313*gtu31 + Gt211*gt23L*Gt313*gtu31 +
+ gt13L*Gt211*Gt323*gtu31 + gt13L*Gt311*Gt333*gtu31 +
+ Gt311*Gt313*gt33L*gtu31 + gt11L*Gt123*Gt212*gtu32 +
+ gt12L*Gt213*Gt222*gtu32 + gt12L*Gt212*Gt223*gtu32 +
+ Gt212*Gt213*gt22L*gtu32 + gt11L*Gt133*Gt312*gtu32 +
+ gt12L*Gt233*Gt312*gtu32 + Gt213*gt23L*Gt312*gtu32 +
+ Gt212*gt23L*Gt313*gtu32 + gt13L*Gt213*Gt322*gtu32 +
+ gt13L*Gt212*Gt323*gtu32 + gt13L*Gt313*Gt323*gtu32 +
+ gt13L*Gt312*Gt333*gtu32 + Gt312*Gt313*gt33L*gtu32 +
+ gt12L*Gt213*Gt223*gtu33 + gt12L*Gt233*Gt313*gtu33 +
+ Gt213*gt23L*Gt313*gtu33 + gt13L*Gt213*Gt323*gtu33 +
+ gt13L*Gt313*Gt333*gtu33 + gt12L*gtu21*SQR(Gt212)) +
+ gt22L*gtu33*SQR(Gt213) + gt33L*gtu11*SQR(Gt311) +
+ gt33L*gtu22*SQR(Gt312) + 2*gt13L*gtu31*SQR(Gt313) +
+ gt33L*gtu33*SQR(Gt313);
+
+ CCTK_REAL Rt12 = khalf*(-(gtu11*PDstandardNth11gt12) -
+ 2*gtu21*PDstandardNth12gt12 - 2*gtu31*PDstandardNth13gt12 +
+ gt12L*PDstandardNth1Xt1 + gt22L*PDstandardNth1Xt2 +
+ gt23L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt12 -
+ 2*gtu32*PDstandardNth23gt12 + gt11L*PDstandardNth2Xt1 +
+ gt12L*PDstandardNth2Xt2 + gt13L*PDstandardNth2Xt3 -
+ gtu33*PDstandardNth33gt12 + (Gt111*gt12L + Gt211*gt22L +
+ gt23L*Gt311)*Xt1L + (Gt112*gt11L + gt12L*Gt212 + gt13L*Gt312)*Xt1L +
+ (Gt112*gt12L + Gt212*gt22L + gt23L*Gt312)*Xt2L + (gt11L*Gt122 +
+ gt12L*Gt222 + gt13L*Gt322)*Xt2L + (Gt113*gt12L + Gt213*gt22L +
+ gt23L*Gt313)*Xt3L + (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xt3L +
+ 2*gtu21*(Gt112*gt11L*Gt222 + Gt112*Gt211*gt22L + Gt211*Gt222*gt22L +
+ 2*Gt122*gt13L*Gt311 + Gt112*gt23L*Gt311 + Gt222*gt23L*Gt311 +
+ gt13L*Gt222*Gt312 + Gt213*gt22L*Gt312 + Gt212*gt23L*Gt312 +
+ gt23L*Gt312*Gt313 + Gt113*gt11L*Gt322 + Gt211*gt23L*Gt322 +
+ gt13L*Gt313*Gt322 + Gt111*(2*gt11L*Gt122 + Gt112*gt12L + gt12L*Gt222 +
+ gt13L*Gt322) + gt12L*(2*Gt122*Gt211 + Gt112*Gt212 + Gt212*Gt222 +
+ Gt113*Gt312 + Gt213*Gt322) + Gt311*Gt322*gt33L + gt22L*SQR(Gt212)) +
+ 2*((Gt123*gt12L*Gt211 + Gt113*gt12L*Gt212 + 2*Gt112*gt12L*Gt213 +
+ gt12L*Gt212*Gt223 + Gt212*Gt213*gt22L + Gt211*Gt223*gt22L +
+ gt12L*Gt133*Gt311 + gt22L*Gt233*Gt311 + Gt113*gt13L*Gt312 +
+ gt12L*Gt233*Gt312 + Gt213*gt23L*Gt312 + gt11L*(2*Gt112*Gt113 +
+ Gt123*Gt212 + Gt133*Gt312) + 2*Gt112*gt13L*Gt313 + Gt212*gt23L*Gt313 +
+ Gt111*(Gt113*gt12L + Gt213*gt22L + gt23L*Gt313) + gt13L*Gt212*Gt323 +
+ Gt211*gt23L*Gt323 + gt23L*Gt311*Gt333 + gt13L*Gt312*Gt333 +
+ Gt312*Gt313*gt33L)*gtu31 + (Gt123*gt12L*Gt212 + 2*Gt122*gt12L*Gt213 +
+ Gt113*gt12L*Gt222 + gt12L*Gt222*Gt223 + Gt213*Gt222*gt22L +
+ Gt212*Gt223*gt22L + gt12L*Gt133*Gt312 + gt22L*Gt233*Gt312 +
+ 2*Gt122*gt13L*Gt313 + Gt222*gt23L*Gt313 + Gt112*(Gt113*gt12L +
+ Gt213*gt22L + gt23L*Gt313) + Gt113*gt13L*Gt322 + gt12L*Gt233*Gt322 +
+ Gt213*gt23L*Gt322 + gt11L*(2*Gt113*Gt122 + Gt123*Gt222 + Gt133*Gt322) +
+ gt13L*Gt222*Gt323 + Gt212*gt23L*Gt323 + gt23L*Gt312*Gt333 +
+ gt13L*Gt322*Gt333 + Gt313*Gt322*gt33L)*gtu32 +
+ gtu11*(3*Gt112*gt12L*Gt211 + 2*Gt211*Gt212*gt22L + Gt113*gt12L*Gt311 +
+ 2*Gt112*gt13L*Gt311 + Gt213*gt22L*Gt311 + Gt212*gt23L*Gt311 +
+ gt13L*Gt212*Gt312 + gt12L*Gt213*Gt312 + 2*Gt211*gt23L*Gt312 +
+ gt11L*(2*Gt111*Gt112 + Gt112*Gt212 + Gt113*Gt312) + Gt111*(gt12L*Gt212
+ + Gt211*gt22L + gt23L*Gt311 + gt13L*Gt312) + gt23L*Gt311*Gt313 +
+ gt13L*Gt312*Gt313 + Gt311*Gt312*gt33L + gt12L*SQR(Gt111) +
+ gt12L*SQR(Gt212))) + 2*gtu22*(gt11L*Gt122*Gt222 + 2*Gt212*Gt222*gt22L +
+ 2*Gt122*gt13L*Gt312 + Gt223*gt22L*Gt312 + Gt222*gt23L*Gt312 +
+ gt11L*Gt123*Gt322 + gt13L*Gt222*Gt322 + 2*Gt212*gt23L*Gt322 +
+ Gt112*(2*gt11L*Gt122 + gt12L*Gt222 + Gt212*gt22L + gt23L*Gt312 +
+ gt13L*Gt322) + gt23L*Gt312*Gt323 + gt13L*Gt322*Gt323 +
+ Gt312*Gt322*gt33L + gt12L*SQR(Gt112) + gt12L*(3*Gt122*Gt212 +
+ Gt123*Gt312 + Gt223*Gt322 + SQR(Gt222))) + 2*gtu33*(gt11L*Gt123*Gt223 +
+ 2*Gt213*Gt223*gt22L + 2*Gt123*gt13L*Gt313 + gt22L*Gt233*Gt313 +
+ Gt223*gt23L*Gt313 + gt11L*Gt133*Gt323 + gt13L*Gt223*Gt323 +
+ 2*Gt213*gt23L*Gt323 + Gt113*(2*gt11L*Gt123 + gt12L*Gt223 + Gt213*gt22L
+ + gt23L*Gt313 + gt13L*Gt323) + gt23L*Gt313*Gt333 + gt13L*Gt323*Gt333 +
+ Gt313*Gt323*gt33L + gt12L*SQR(Gt113) + gt12L*(3*Gt123*Gt213 +
+ Gt133*Gt313 + Gt233*Gt323 + SQR(Gt223))) + 2*gtu21*(Gt122*gt12L*Gt211 +
+ 3*Gt112*gt12L*Gt212 + gt12L*Gt212*Gt222 + Gt211*Gt222*gt22L +
+ Gt123*gt12L*Gt311 + Gt223*gt22L*Gt311 + 3*Gt112*gt13L*Gt312 +
+ gt12L*Gt223*Gt312 + 2*Gt212*gt23L*Gt312 + Gt111*(Gt112*gt12L +
+ Gt212*gt22L + gt23L*Gt312) + gt13L*Gt212*Gt322 + Gt211*gt23L*Gt322 +
+ gt23L*Gt311*Gt323 + gt13L*Gt312*Gt323 + gt11L*(Gt122*Gt212 +
+ Gt123*Gt312 + 2*SQR(Gt112)) + gt22L*SQR(Gt212) + gt33L*SQR(Gt312)) +
+ 2*gtu31*(Gt112*gt11L*Gt223 + Gt113*Gt211*gt22L + Gt212*Gt213*gt22L +
+ Gt211*Gt223*gt22L + 2*Gt123*gt13L*Gt311 + Gt113*gt23L*Gt311 +
+ Gt223*gt23L*Gt311 + gt13L*Gt223*Gt312 + Gt213*gt23L*Gt312 +
+ Gt213*gt22L*Gt313 + Gt113*gt11L*Gt323 + Gt211*gt23L*Gt323 +
+ gt13L*Gt313*Gt323 + Gt111*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 +
+ gt13L*Gt323) + gt12L*(2*Gt123*Gt211 + Gt112*Gt213 + Gt212*Gt223 +
+ Gt113*Gt313 + Gt213*Gt323) + Gt311*Gt323*gt33L + gt23L*SQR(Gt313)) +
+ 2*gtu32*(gt11L*Gt122*Gt223 + Gt113*Gt212*gt22L + Gt213*Gt222*gt22L +
+ Gt212*Gt223*gt22L + 2*Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 +
+ Gt223*gt23L*Gt312 + Gt223*gt22L*Gt313 + gt13L*Gt223*Gt322 +
+ Gt213*gt23L*Gt322 + gt11L*Gt123*Gt323 + Gt212*gt23L*Gt323 +
+ gt23L*Gt313*Gt323 + Gt112*(2*gt11L*Gt123 + Gt113*gt12L + gt12L*Gt223 +
+ gt13L*Gt323) + gt12L*(Gt122*Gt213 + Gt123*(2*Gt212 + Gt313) +
+ Gt223*(Gt222 + Gt323)) + Gt312*Gt323*gt33L + gt13L*SQR(Gt323)));
+
+ CCTK_REAL Rt13 = khalf*(-(gtu11*PDstandardNth11gt13) -
+ 2*gtu21*PDstandardNth12gt13 - 2*gtu31*PDstandardNth13gt13 +
+ gt13L*PDstandardNth1Xt1 + gt23L*PDstandardNth1Xt2 +
+ gt33L*PDstandardNth1Xt3 - gtu22*PDstandardNth22gt13 -
+ 2*gtu32*PDstandardNth23gt13 - gtu33*PDstandardNth33gt13 +
+ gt11L*PDstandardNth3Xt1 + gt12L*PDstandardNth3Xt2 +
+ gt13L*PDstandardNth3Xt3 + (Gt113*gt11L + gt12L*Gt213 +
+ gt13L*Gt313)*Xt1L + (Gt111*gt13L + Gt211*gt23L + Gt311*gt33L)*Xt1L +
+ (gt11L*Gt123 + gt12L*Gt223 + gt13L*Gt323)*Xt2L + (Gt112*gt13L +
+ Gt212*gt23L + Gt312*gt33L)*Xt2L + (gt11L*Gt133 + gt12L*Gt233 +
+ gt13L*Gt333)*Xt3L + (Gt113*gt13L + Gt213*gt23L + Gt313*gt33L)*Xt3L +
+ 2*((Gt122*gt13L*Gt211 + 2*Gt113*gt12L*Gt212 + Gt112*gt12L*Gt213 +
+ gt12L*Gt213*Gt222 + Gt212*Gt213*gt22L + Gt211*Gt222*gt23L +
+ Gt123*gt13L*Gt311 + Gt223*gt23L*Gt311 + 2*Gt113*gt13L*Gt312 +
+ Gt213*gt23L*Gt312 + Gt112*gt13L*Gt313 + gt12L*Gt223*Gt313 +
+ Gt212*gt23L*Gt313 + gt11L*(2*Gt112*Gt113 + Gt122*Gt213 + Gt123*Gt313) +
+ gt13L*Gt213*Gt322 + gt13L*Gt313*Gt323 + Gt312*Gt313*gt33L +
+ Gt211*Gt322*gt33L + Gt311*Gt323*gt33L + Gt111*(Gt112*gt13L +
+ Gt212*gt23L + Gt312*gt33L))*gtu21 + (Gt122*gt13L*Gt213 +
+ gt11L*Gt122*Gt233 + Gt212*gt22L*Gt233 + Gt113*Gt212*gt23L +
+ Gt213*Gt222*gt23L + 2*Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 +
+ Gt123*gt13L*Gt313 + Gt223*gt23L*Gt313 + gt13L*Gt233*Gt322 +
+ gt11L*Gt123*Gt333 + Gt212*gt23L*Gt333 + gt13L*Gt323*Gt333 +
+ Gt112*(2*gt11L*Gt133 + Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) +
+ gt12L*(2*Gt133*Gt212 + Gt222*Gt233 + Gt223*Gt333) + Gt113*Gt312*gt33L +
+ Gt213*Gt322*gt33L + Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu32 +
+ gtu21*(2*Gt123*gt12L*Gt211 + Gt112*gt13L*Gt212 + gt12L*Gt212*Gt223 +
+ Gt211*Gt223*gt22L + Gt112*Gt211*gt23L + 2*Gt123*gt13L*Gt311 +
+ Gt223*gt23L*Gt311 + Gt113*gt13L*Gt312 + gt13L*Gt223*Gt312 +
+ Gt213*gt23L*Gt312 + gt12L*Gt213*Gt323 + Gt211*gt23L*Gt323 +
+ gt13L*Gt313*Gt323 + gt11L*(2*Gt111*Gt123 + Gt112*Gt223 + Gt113*Gt323) +
+ Gt111*(Gt112*gt13L + gt12L*Gt223 + gt13L*Gt323) + Gt112*Gt311*gt33L +
+ Gt212*Gt312*gt33L + Gt312*Gt313*gt33L + Gt311*Gt323*gt33L +
+ gt23L*SQR(Gt212))) + 2*gtu32*(Gt123*gt13L*Gt212 + 2*Gt123*gt12L*Gt213 +
+ Gt113*gt12L*Gt223 + Gt213*Gt223*gt22L + Gt212*Gt223*gt23L +
+ Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + 2*Gt123*gt13L*Gt313 +
+ Gt223*gt23L*Gt313 + Gt113*gt13L*Gt323 + gt13L*Gt223*Gt323 +
+ gt12L*Gt233*Gt323 + Gt213*gt23L*Gt323 + gt11L*(2*Gt113*Gt123 +
+ Gt123*Gt223 + Gt133*Gt323) + gt13L*Gt323*Gt333 + Gt212*Gt323*gt33L +
+ Gt313*Gt323*gt33L + Gt312*Gt333*gt33L + Gt112*(Gt113*gt13L +
+ Gt213*gt23L + Gt313*gt33L) + gt12L*SQR(Gt223)) +
+ 2*gtu11*(2*Gt113*gt12L*Gt211 + Gt112*gt13L*Gt211 + gt12L*Gt212*Gt213 +
+ Gt211*Gt213*gt22L + Gt211*Gt212*gt23L + 3*Gt113*gt13L*Gt311 +
+ 2*Gt213*gt23L*Gt311 + gt13L*Gt213*Gt312 + gt12L*Gt213*Gt313 +
+ Gt211*gt23L*Gt313 + gt11L*(2*Gt111*Gt113 + Gt112*Gt213 + Gt113*Gt313) +
+ Gt211*Gt312*gt33L + 2*Gt311*Gt313*gt33L + Gt111*(gt12L*Gt213 +
+ Gt211*gt23L + gt13L*Gt313 + Gt311*gt33L) + gt13L*SQR(Gt111) +
+ gt13L*SQR(Gt313)) + 2*gtu31*(Gt112*gt13L*Gt213 + Gt112*gt11L*Gt233 +
+ Gt211*gt22L*Gt233 + Gt113*Gt211*gt23L + Gt212*Gt213*gt23L +
+ 2*Gt133*gt13L*Gt311 + Gt233*gt23L*Gt311 + gt13L*Gt233*Gt312 +
+ Gt113*gt13L*Gt313 + Gt213*gt23L*Gt313 + Gt113*gt11L*Gt333 +
+ Gt211*gt23L*Gt333 + gt13L*Gt313*Gt333 + Gt111*(2*gt11L*Gt133 +
+ Gt113*gt13L + gt12L*Gt233 + gt13L*Gt333) + gt12L*(2*Gt133*Gt211 +
+ Gt212*Gt233 + Gt213*Gt333) + Gt113*Gt311*gt33L + Gt213*Gt312*gt33L +
+ Gt311*Gt333*gt33L + gt33L*SQR(Gt313)) + 2*gtu31*(Gt123*gt13L*Gt211 +
+ 3*Gt113*gt12L*Gt213 + gt12L*Gt213*Gt223 + Gt211*Gt223*gt23L +
+ Gt133*gt13L*Gt311 + Gt233*gt23L*Gt311 + 3*Gt113*gt13L*Gt313 +
+ gt12L*Gt233*Gt313 + 2*Gt213*gt23L*Gt313 + gt13L*Gt213*Gt323 +
+ gt13L*Gt313*Gt333 + Gt211*Gt323*gt33L + Gt311*Gt333*gt33L +
+ Gt111*(Gt113*gt13L + Gt213*gt23L + Gt313*gt33L) + gt11L*(Gt123*Gt213 +
+ Gt133*Gt313 + 2*SQR(Gt113)) + gt22L*SQR(Gt213) + gt33L*SQR(Gt313)) +
+ 2*gtu22*(2*Gt123*gt12L*Gt212 + Gt122*gt13L*Gt212 + gt12L*Gt222*Gt223 +
+ Gt212*Gt223*gt22L + Gt212*Gt222*gt23L + 3*Gt123*gt13L*Gt312 +
+ 2*Gt223*gt23L*Gt312 + gt13L*Gt223*Gt322 + gt12L*Gt223*Gt323 +
+ Gt212*gt23L*Gt323 + gt11L*(2*Gt112*Gt123 + Gt122*Gt223 + Gt123*Gt323) +
+ Gt212*Gt322*gt33L + 2*Gt312*Gt323*gt33L + Gt112*(gt12L*Gt223 +
+ Gt212*gt23L + gt13L*Gt323 + Gt312*gt33L) + gt13L*SQR(Gt112) +
+ gt13L*SQR(Gt323)) + 2*gtu33*(2*gt12L*Gt133*Gt213 + Gt123*gt13L*Gt213 +
+ gt11L*Gt123*Gt233 + gt12L*Gt223*Gt233 + Gt213*gt22L*Gt233 +
+ Gt213*Gt223*gt23L + 3*Gt133*gt13L*Gt313 + 2*Gt233*gt23L*Gt313 +
+ gt13L*Gt233*Gt323 + gt11L*Gt133*Gt333 + gt12L*Gt233*Gt333 +
+ Gt213*gt23L*Gt333 + Gt213*Gt323*gt33L + 2*Gt313*Gt333*gt33L +
+ Gt113*(2*gt11L*Gt133 + gt12L*Gt233 + Gt213*gt23L + gt13L*Gt333 +
+ Gt313*gt33L) + gt13L*SQR(Gt113) + gt13L*SQR(Gt333)));
+
+ CCTK_REAL Rt22 = 4*(Gt122*gt12L*Gt212*gtu21 + Gt112*gt12L*Gt222*gtu21
+ + Gt122*gt12L*Gt222*gtu22 + Gt123*gt12L*Gt212*gtu31 +
+ Gt123*gt12L*Gt222*gtu32 + Gt123*gt12L*Gt223*gtu33) -
+ gtu11*khalf*PDstandardNth11gt22 + gtu21*(6*Gt212*Gt222*gt22L +
+ 2*Gt122*gt23L*Gt311 + 2*Gt122*gt13L*Gt312 + 4*Gt222*gt23L*Gt312 +
+ 2*Gt113*gt12L*Gt322 + 2*gt23L*Gt312*Gt323 + 2*Gt312*Gt322*gt33L -
+ PDstandardNth12gt22) + gtu31*(6*Gt212*Gt223*gt22L + 2*Gt123*gt13L*Gt312
+ + 2*Gt112*gt23L*Gt313 + 2*Gt113*gt12L*Gt323 + 2*gt23L*Gt312*Gt333 +
+ 2*Gt312*Gt323*gt33L - PDstandardNth13gt22) -
+ gtu22*khalf*PDstandardNth22gt22 + gtu32*(4*Gt122*gt12L*Gt223 +
+ 2*Gt123*Gt212*gt22L + 2*gt12L*Gt133*Gt322 + 4*Gt223*gt23L*Gt322 +
+ 2*Gt123*gt12L*Gt323 + 4*Gt222*gt23L*Gt323 + 2*gt23L*Gt322*Gt333 +
+ 2*Gt322*Gt323*gt33L - PDstandardNth23gt22) + gt12L*(2*Gt111*Gt123*gtu31
+ + 4*Gt112*Gt223*gtu31 + 2*Gt113*Gt122*gtu32 + 2*Gt113*Gt123*gtu33 +
+ PDstandardNth2Xt1) + gt22L*(2*Gt122*Gt213*gtu32 + 6*Gt222*Gt223*gtu32 +
+ 2*Gt123*Gt213*gtu33 + PDstandardNth2Xt2) + gt23L*(4*Gt212*Gt322*gtu21 +
+ 2*Gt313*Gt322*gtu21 + 4*Gt222*Gt322*gtu22 + 2*Gt123*Gt311*gtu31 +
+ 4*Gt212*Gt323*gtu31 + 2*Gt313*Gt323*gtu31 + 2*Gt122*Gt313*gtu32 +
+ 2*Gt123*Gt313*gtu33 + 4*Gt223*Gt323*gtu33 + 2*Gt323*Gt333*gtu33 +
+ PDstandardNth2Xt3) - gtu33*khalf*PDstandardNth33gt22 + Gt212*gt22L*Xt1L
+ + Gt112*(2*Gt111*gt12L*gtu11 + 4*gt12L*Gt212*gtu11 +
+ 2*gt11L*Gt122*gtu21 + 2*Gt122*gt12L*gtu22 + 2*gt11L*Gt123*gtu31 +
+ 2*Gt123*gt12L*gtu32 + gt12L*Xt1L) + Gt312*(2*Gt213*gt22L*gtu11 +
+ 4*Gt212*gt23L*gtu11 + 2*gt23L*Gt313*gtu11 + 2*Gt123*gt12L*gtu21 +
+ 2*Gt122*gt23L*gtu22 + 2*gt12L*Gt133*gtu31 + 2*gt22L*Gt233*gtu31 +
+ 4*Gt223*gt23L*gtu31 + 2*Gt123*gt23L*gtu32 + gt23L*Xt1L) +
+ Gt122*gt12L*Xt2L + Gt222*gt22L*Xt2L + gt23L*Gt322*Xt2L +
+ Gt123*gt12L*Xt3L + Gt223*gt22L*Xt3L + gt23L*Gt323*Xt3L +
+ gt11L*gtu11*SQR(Gt112) + 2*(Gt112*Gt211*gt22L*gtu11 +
+ Gt112*gt23L*Gt311*gtu11 + Gt113*gt12L*Gt312*gtu11 +
+ Gt112*gt13L*Gt312*gtu11 + Gt111*Gt122*gt12L*gtu21 +
+ Gt122*Gt211*gt22L*gtu21 + Gt112*Gt212*gt22L*gtu21 +
+ Gt223*gt22L*Gt312*gtu21 + Gt112*gt23L*Gt312*gtu21 +
+ Gt112*gt13L*Gt322*gtu21 + Gt213*gt22L*Gt322*gtu21 +
+ Gt122*Gt212*gt22L*gtu22 + Gt123*gt12L*Gt322*gtu22 +
+ Gt122*gt13L*Gt322*gtu22 + Gt223*gt22L*Gt322*gtu22 +
+ gt23L*Gt322*Gt323*gtu22 + Gt112*Gt113*gt12L*gtu31 +
+ Gt123*Gt211*gt22L*gtu31 + Gt112*Gt213*gt22L*gtu31 +
+ Gt112*gt13L*Gt323*gtu31 + Gt213*gt22L*Gt323*gtu31 +
+ gt11L*Gt122*Gt123*gtu32 + Gt123*gt13L*Gt322*gtu32 +
+ gt22L*Gt233*Gt322*gtu32 + Gt122*gt13L*Gt323*gtu32 +
+ Gt223*gt22L*Gt323*gtu32 + gt12L*Gt133*Gt323*gtu33 +
+ Gt123*gt13L*Gt323*gtu33 + gt22L*Gt233*Gt323*gtu33 +
+ gt12L*gtu21*SQR(Gt112)) + gt11L*gtu22*SQR(Gt122) +
+ gt11L*gtu33*SQR(Gt123) + 3*gt22L*gtu11*SQR(Gt212) +
+ 3*gt22L*gtu22*SQR(Gt222) + 3*gt22L*gtu33*SQR(Gt223) +
+ gt33L*gtu11*SQR(Gt312) + gt33L*gtu22*SQR(Gt322) +
+ 2*gt23L*gtu32*SQR(Gt323) + gt33L*gtu33*SQR(Gt323);
+
+ CCTK_REAL Rt23 = khalf*(-(gtu11*PDstandardNth11gt23) -
+ 2*gtu21*PDstandardNth12gt23 - 2*gtu31*PDstandardNth13gt23 -
+ gtu22*PDstandardNth22gt23 - 2*gtu32*PDstandardNth23gt23 +
+ gt13L*PDstandardNth2Xt1 + gt23L*PDstandardNth2Xt2 +
+ gt33L*PDstandardNth2Xt3 - gtu33*PDstandardNth33gt23 +
+ gt12L*PDstandardNth3Xt1 + gt22L*PDstandardNth3Xt2 +
+ gt23L*PDstandardNth3Xt3 + (Gt113*gt12L + Gt213*gt22L +
+ gt23L*Gt313)*Xt1L + (Gt112*gt13L + Gt212*gt23L + Gt312*gt33L)*Xt1L +
+ (Gt123*gt12L + Gt223*gt22L + gt23L*Gt323)*Xt2L + (Gt122*gt13L +
+ Gt222*gt23L + Gt322*gt33L)*Xt2L + (gt12L*Gt133 + gt22L*Gt233 +
+ gt23L*Gt333)*Xt3L + (Gt123*gt13L + Gt223*gt23L + Gt323*gt33L)*Xt3L +
+ 2*((Gt112*gt11L*Gt123 + Gt111*Gt123*gt12L + Gt111*Gt122*gt13L +
+ Gt123*gt12L*Gt212 + Gt112*gt13L*Gt222 + 2*Gt112*gt12L*Gt223 +
+ Gt123*Gt211*gt22L + 2*Gt212*Gt223*gt22L + Gt122*Gt211*gt23L +
+ Gt212*Gt222*gt23L + Gt123*gt23L*Gt311 + Gt123*gt13L*Gt312 +
+ 2*Gt223*gt23L*Gt312 + Gt113*gt13L*Gt322 + Gt213*gt23L*Gt322 +
+ Gt113*gt12L*Gt323 + Gt112*gt13L*Gt323 + Gt213*gt22L*Gt323 +
+ Gt212*gt23L*Gt323 + gt23L*Gt313*Gt323 + Gt122*Gt311*gt33L +
+ Gt222*Gt312*gt33L + Gt313*Gt322*gt33L + Gt312*Gt323*gt33L)*gtu21 +
+ (Gt112*gt11L*Gt133 + Gt111*gt12L*Gt133 + Gt111*Gt123*gt13L +
+ gt12L*Gt133*Gt212 + Gt112*gt13L*Gt223 + Gt133*Gt211*gt22L +
+ 2*Gt112*gt12L*Gt233 + 2*Gt212*gt22L*Gt233 + Gt123*Gt211*gt23L +
+ Gt212*Gt223*gt23L + Gt133*gt23L*Gt311 + Gt133*gt13L*Gt312 +
+ 2*Gt233*gt23L*Gt312 + Gt113*gt13L*Gt323 + Gt213*gt23L*Gt323 +
+ Gt113*gt12L*Gt333 + Gt112*gt13L*Gt333 + Gt213*gt22L*Gt333 +
+ Gt212*gt23L*Gt333 + gt23L*Gt313*Gt333 + Gt123*Gt311*gt33L +
+ Gt223*Gt312*gt33L + Gt313*Gt323*gt33L + Gt312*Gt333*gt33L)*gtu31 +
+ gtu21*(Gt113*gt11L*Gt122 + Gt122*gt13L*Gt212 + 2*Gt122*gt12L*Gt213 +
+ Gt113*gt12L*Gt222 + Gt113*Gt212*gt22L + 2*Gt213*Gt222*gt22L +
+ Gt212*Gt222*gt23L + Gt123*gt13L*Gt312 + Gt113*gt23L*Gt312 +
+ Gt223*gt23L*Gt312 + Gt123*gt12L*Gt313 + Gt122*gt13L*Gt313 +
+ Gt223*gt22L*Gt313 + Gt222*gt23L*Gt313 + Gt113*gt13L*Gt322 +
+ 2*Gt213*gt23L*Gt322 + gt23L*Gt313*Gt323 + Gt212*Gt322*gt33L +
+ Gt313*Gt322*gt33L + Gt312*Gt323*gt33L + Gt112*(Gt113*gt12L +
+ Gt212*gt23L + Gt312*gt33L) + gt13L*SQR(Gt112))) +
+ 2*gtu31*(2*Gt213*Gt223*gt22L + Gt112*Gt213*gt23L + Gt212*Gt223*gt23L +
+ Gt133*gt13L*Gt312 + Gt233*gt23L*Gt312 + gt12L*Gt133*Gt313 +
+ gt22L*Gt233*Gt313 + Gt223*gt23L*Gt313 + Gt123*(2*gt12L*Gt213 +
+ gt13L*(Gt212 + Gt313)) + 2*Gt213*gt23L*Gt323 + Gt113*(gt11L*Gt123 +
+ Gt112*gt13L + gt12L*Gt223 + Gt213*gt22L + gt23L*Gt313 + gt13L*Gt323) +
+ gt23L*Gt313*Gt333 + Gt112*Gt313*gt33L + Gt212*Gt323*gt33L +
+ Gt313*Gt323*gt33L + Gt312*Gt333*gt33L + gt12L*SQR(Gt113)) +
+ 2*gtu11*(Gt112*Gt113*gt11L + Gt111*Gt113*gt12L + Gt111*Gt112*gt13L +
+ Gt113*gt12L*Gt212 + Gt112*gt13L*Gt212 + 2*Gt112*gt12L*Gt213 +
+ Gt113*Gt211*gt22L + 2*Gt212*Gt213*gt22L + Gt112*Gt211*gt23L +
+ Gt113*gt23L*Gt311 + 2*Gt113*gt13L*Gt312 + 3*Gt213*gt23L*Gt312 +
+ Gt113*gt12L*Gt313 + Gt112*gt13L*Gt313 + Gt213*gt22L*Gt313 +
+ Gt212*gt23L*Gt313 + Gt112*Gt311*gt33L + Gt212*Gt312*gt33L +
+ 2*Gt312*Gt313*gt33L + gt23L*SQR(Gt212) + gt23L*SQR(Gt313)) +
+ 2*gtu22*(gt11L*Gt122*Gt123 + Gt112*Gt123*gt12L + Gt112*Gt122*gt13L +
+ Gt123*gt12L*Gt222 + Gt122*gt13L*Gt222 + 2*Gt122*gt12L*Gt223 +
+ Gt123*Gt212*gt22L + 2*Gt222*Gt223*gt22L + Gt122*Gt212*gt23L +
+ Gt123*gt23L*Gt312 + 2*Gt123*gt13L*Gt322 + 3*Gt223*gt23L*Gt322 +
+ Gt123*gt12L*Gt323 + Gt122*gt13L*Gt323 + Gt223*gt22L*Gt323 +
+ Gt222*gt23L*Gt323 + Gt122*Gt312*gt33L + Gt222*Gt322*gt33L +
+ 2*Gt322*Gt323*gt33L + gt23L*SQR(Gt222) + gt23L*SQR(Gt323)) +
+ 2*gtu32*(gt11L*Gt122*Gt133 + Gt112*gt12L*Gt133 + Gt112*Gt123*gt13L +
+ gt12L*Gt133*Gt222 + Gt122*gt13L*Gt223 + Gt133*Gt212*gt22L +
+ 2*Gt122*gt12L*Gt233 + 2*Gt222*gt22L*Gt233 + Gt123*Gt212*gt23L +
+ Gt222*Gt223*gt23L + Gt133*gt23L*Gt312 + Gt133*gt13L*Gt322 +
+ 2*Gt233*gt23L*Gt322 + Gt123*gt13L*Gt323 + Gt223*gt23L*Gt323 +
+ Gt123*gt12L*Gt333 + Gt122*gt13L*Gt333 + Gt223*gt22L*Gt333 +
+ Gt222*gt23L*Gt333 + gt23L*Gt323*Gt333 + Gt123*Gt312*gt33L +
+ Gt223*Gt322*gt33L + Gt322*Gt333*gt33L + gt33L*SQR(Gt323)) +
+ 2*gtu32*(Gt113*Gt123*gt12L + Gt113*Gt122*gt13L + Gt123*gt13L*Gt222 +
+ 3*Gt123*gt12L*Gt223 + Gt123*Gt213*gt22L + Gt122*Gt213*gt23L +
+ Gt222*Gt223*gt23L + Gt123*gt23L*Gt313 + Gt133*gt13L*Gt322 +
+ Gt233*gt23L*Gt322 + gt12L*Gt133*Gt323 + 2*Gt123*gt13L*Gt323 +
+ gt22L*Gt233*Gt323 + 3*Gt223*gt23L*Gt323 + gt23L*Gt323*Gt333 +
+ Gt122*Gt313*gt33L + Gt222*Gt323*gt33L + Gt322*Gt333*gt33L +
+ gt11L*SQR(Gt123) + 2*gt22L*SQR(Gt223) + gt33L*SQR(Gt323)) +
+ 2*gtu33*(gt11L*Gt123*Gt133 + Gt113*gt12L*Gt133 + Gt113*Gt123*gt13L +
+ gt12L*Gt133*Gt223 + Gt123*gt13L*Gt223 + Gt133*Gt213*gt22L +
+ 2*Gt123*gt12L*Gt233 + 2*Gt223*gt22L*Gt233 + Gt123*Gt213*gt23L +
+ Gt133*gt23L*Gt313 + 2*Gt133*gt13L*Gt323 + 3*Gt233*gt23L*Gt323 +
+ gt12L*Gt133*Gt333 + Gt123*gt13L*Gt333 + gt22L*Gt233*Gt333 +
+ Gt223*gt23L*Gt333 + Gt123*Gt313*gt33L + Gt223*Gt323*gt33L +
+ 2*Gt323*Gt333*gt33L + gt23L*SQR(Gt223) + gt23L*SQR(Gt333)));
+
+ CCTK_REAL Rt33 = 4*(Gt123*gt13L*Gt323*gtu22 + Gt223*gt23L*Gt323*gtu22
+ + Gt133*gt13L*Gt313*gtu31 + Gt233*gt23L*Gt313*gtu31 +
+ Gt113*gt13L*Gt333*gtu31 + Gt133*gt13L*Gt323*gtu32 +
+ Gt233*gt23L*Gt323*gtu32 + Gt123*gt13L*Gt333*gtu32 +
+ Gt133*gt13L*Gt333*gtu33) + gtu21*(2*Gt212*Gt223*gt23L +
+ 4*Gt123*gt13L*Gt313 + 4*Gt223*gt23L*Gt313 + 4*Gt113*gt13L*Gt323 +
+ 4*Gt213*gt23L*Gt323 + 2*Gt123*Gt311*gt33L - PDstandardNth12gt33) +
+ gtu31*(4*Gt213*gt23L*Gt333 + 2*Gt233*Gt312*gt33L + 6*Gt313*Gt333*gt33L
+ - PDstandardNth13gt33) - gtu22*khalf*PDstandardNth22gt33 +
+ gtu32*(4*Gt223*gt23L*Gt333 + 2*Gt123*Gt313*gt33L + 6*Gt323*Gt333*gt33L
+ - PDstandardNth23gt33) - gtu33*khalf*PDstandardNth33gt33 +
+ gt13L*PDstandardNth3Xt1 + gt23L*PDstandardNth3Xt2 +
+ gt33L*(2*Gt213*Gt322*gtu21 + 6*Gt313*Gt323*gtu21 + 2*Gt123*Gt312*gtu22
+ + 2*Gt133*Gt311*gtu31 + 2*Gt133*Gt312*gtu32 + 2*Gt133*Gt313*gtu33 +
+ PDstandardNth3Xt3) + Gt113*gt13L*Xt1L + Gt213*gt23L*Xt1L +
+ Gt313*gt33L*Xt1L + Gt123*gt13L*Xt2L + Gt223*gt23L*Xt2L +
+ Gt323*gt33L*Xt2L + Gt133*gt13L*Xt3L + Gt333*gt33L*Xt3L +
+ Gt233*(4*gt23L*Gt333*gtu33 + 2*Gt323*gt33L*gtu33 + gt23L*Xt3L) +
+ gtu11*(2*Gt212*Gt213*gt23L + 4*Gt113*gt13L*Gt313 + 4*Gt213*gt23L*Gt313
+ + 2*Gt113*Gt311*gt33L + 2*Gt213*Gt312*gt33L - khalf*PDstandardNth11gt33
+ + gt11L*SQR(Gt113)) + 2*(Gt111*Gt113*gt13L*gtu11 +
+ Gt113*gt12L*Gt213*gtu11 + Gt112*gt13L*Gt213*gtu11 +
+ Gt113*Gt211*gt23L*gtu11 + Gt113*gt11L*Gt123*gtu21 +
+ Gt112*Gt113*gt13L*gtu21 + Gt111*Gt123*gt13L*gtu21 +
+ Gt123*gt12L*Gt213*gtu21 + Gt122*gt13L*Gt213*gtu21 +
+ Gt113*gt12L*Gt223*gtu21 + Gt112*gt13L*Gt223*gtu21 +
+ Gt213*Gt223*gt22L*gtu21 + Gt123*Gt211*gt23L*gtu21 +
+ Gt113*Gt212*gt23L*gtu21 + Gt213*Gt222*gt23L*gtu21 +
+ Gt113*Gt312*gt33L*gtu21 + Gt223*Gt312*gt33L*gtu21 +
+ Gt112*Gt123*gt13L*gtu22 + Gt123*gt12L*Gt223*gtu22 +
+ Gt122*gt13L*Gt223*gtu22 + Gt123*Gt212*gt23L*gtu22 +
+ Gt222*Gt223*gt23L*gtu22 + Gt223*Gt322*gt33L*gtu22 +
+ Gt113*gt11L*Gt133*gtu31 + Gt111*Gt133*gt13L*gtu31 +
+ gt12L*Gt133*Gt213*gtu31 + Gt123*gt13L*Gt213*gtu31 +
+ Gt113*gt12L*Gt233*gtu31 + Gt112*gt13L*Gt233*gtu31 +
+ Gt213*gt22L*Gt233*gtu31 + Gt133*Gt211*gt23L*gtu31 +
+ Gt113*Gt213*gt23L*gtu31 + Gt213*Gt223*gt23L*gtu31 +
+ Gt212*Gt233*gt23L*gtu31 + Gt113*Gt313*gt33L*gtu31 +
+ Gt213*Gt323*gt33L*gtu31 + gt11L*Gt123*Gt133*gtu32 +
+ Gt113*Gt123*gt13L*gtu32 + Gt112*Gt133*gt13L*gtu32 +
+ gt12L*Gt133*Gt223*gtu32 + Gt123*gt13L*Gt223*gtu32 +
+ Gt123*gt12L*Gt233*gtu32 + Gt122*gt13L*Gt233*gtu32 +
+ Gt223*gt22L*Gt233*gtu32 + Gt133*Gt212*gt23L*gtu32 +
+ Gt123*Gt213*gt23L*gtu32 + Gt222*Gt233*gt23L*gtu32 +
+ Gt233*Gt322*gt33L*gtu32 + Gt223*Gt323*gt33L*gtu32 +
+ Gt113*Gt133*gt13L*gtu33 + gt12L*Gt133*Gt233*gtu33 +
+ Gt123*gt13L*Gt233*gtu33 + Gt133*Gt213*gt23L*gtu33 +
+ Gt223*Gt233*gt23L*gtu33 + gt13L*gtu31*SQR(Gt113)) +
+ gt11L*gtu22*SQR(Gt123) + gt11L*gtu33*SQR(Gt133) +
+ gt22L*gtu11*SQR(Gt213) + gt22L*gtu22*SQR(Gt223) +
+ 2*gt23L*gtu32*SQR(Gt223) + gt22L*gtu33*SQR(Gt233) +
+ 3*gt33L*gtu11*SQR(Gt313) + 3*gt33L*gtu22*SQR(Gt323) +
+ 3*gt33L*gtu33*SQR(Gt333);
+
+ CCTK_REAL fac1 = IfThen(conformalMethod,-(khalf*INV(phiL)),1);
+
+ CCTK_REAL cdphi1 = fac1*PDstandardNth1phi;
+
+ CCTK_REAL cdphi2 = fac1*PDstandardNth2phi;
+
+ CCTK_REAL cdphi3 = fac1*PDstandardNth3phi;
+
+ CCTK_REAL fac2 = IfThen(conformalMethod,khalf*pow(phiL,-2),0);
+
+ CCTK_REAL cdphi211 = -(fac1*(-PDstandardNth11phi +
+ Gt111*PDstandardNth1phi + Gt211*PDstandardNth2phi +
+ Gt311*PDstandardNth3phi)) + fac2*SQR(PDstandardNth1phi);
+
+ CCTK_REAL cdphi212 = fac2*PDstandardNth1phi*PDstandardNth2phi -
+ fac1*(-PDstandardNth12phi + Gt112*PDstandardNth1phi +
+ Gt212*PDstandardNth2phi + Gt312*PDstandardNth3phi);
+
+ CCTK_REAL cdphi213 = fac2*PDstandardNth1phi*PDstandardNth3phi -
+ fac1*(-PDstandardNth13phi + Gt113*PDstandardNth1phi +
+ Gt213*PDstandardNth2phi + Gt313*PDstandardNth3phi);
+
+ CCTK_REAL cdphi222 = -(fac1*(Gt122*PDstandardNth1phi -
+ PDstandardNth22phi + Gt222*PDstandardNth2phi +
+ Gt322*PDstandardNth3phi)) + fac2*SQR(PDstandardNth2phi);
+
+ CCTK_REAL cdphi223 = fac2*PDstandardNth2phi*PDstandardNth3phi -
+ fac1*(Gt123*PDstandardNth1phi - PDstandardNth23phi +
+ Gt223*PDstandardNth2phi + Gt323*PDstandardNth3phi);
+
+ CCTK_REAL cdphi233 = -(fac1*(Gt133*PDstandardNth1phi +
+ Gt233*PDstandardNth2phi - PDstandardNth33phi +
+ Gt333*PDstandardNth3phi)) + fac2*SQR(PDstandardNth3phi);
+
+ CCTK_REAL Rphi11 = -2*(cdphi211 + 2*(-1 + gt11L*gtu11)*SQR(cdphi1) +
+ gt11L*(cdphi211*gtu11 + 4*(cdphi1*(cdphi2*gtu21 + cdphi3*gtu31) +
+ cdphi2*cdphi3*gtu32) + cdphi233*gtu33 + gtu22*(cdphi222 +
+ 2*SQR(cdphi2)) + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu33*SQR(cdphi3))));
+
+ CCTK_REAL Rphi12 = -2*(cdphi212 + cdphi1*(cdphi2*(-2 + 4*gt12L*gtu21)
+ + 4*cdphi3*gt12L*gtu31) + gt12L*(cdphi211*gtu11 + 4*cdphi2*cdphi3*gtu32
+ + 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2)) + gtu33*(cdphi233
+ + 2*SQR(cdphi3))));
+
+ CCTK_REAL Rphi13 = -2*(cdphi213 + cdphi1*(4*cdphi2*gt13L*gtu21 +
+ cdphi3*(-2 + 4*gt13L*gtu31)) + gt13L*(cdphi211*gtu11 +
+ 4*cdphi2*cdphi3*gtu32 + 2*(cdphi212*gtu21 + cdphi213*gtu31 +
+ cdphi223*gtu32 + gtu11*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2))
+ + gtu33*(cdphi233 + 2*SQR(cdphi3))));
+
+ CCTK_REAL Rphi22 = -2*(cdphi222 + 2*(-1 + gt22L*gtu22)*SQR(cdphi2) +
+ gt22L*(cdphi222*gtu22 + 4*(cdphi1*cdphi3*gtu31 + cdphi2*(cdphi1*gtu21 +
+ cdphi3*gtu32)) + cdphi233*gtu33 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
+ 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu33*SQR(cdphi3))));
+
+ CCTK_REAL Rphi23 = -2*(cdphi223 + cdphi2*(4*cdphi1*gt23L*gtu21 +
+ cdphi3*(-2 + 4*gt23L*gtu32)) + gt23L*(cdphi222*gtu22 +
+ 4*cdphi1*cdphi3*gtu31 + gtu11*(cdphi211 + 2*SQR(cdphi1)) +
+ 2*(cdphi212*gtu21 + cdphi213*gtu31 + cdphi223*gtu32 +
+ gtu22*SQR(cdphi2)) + gtu33*(cdphi233 + 2*SQR(cdphi3))));
+
+ CCTK_REAL Rphi33 = -2*(cdphi233 + gt33L*((4*cdphi1*cdphi2 +
+ 2*cdphi212)*gtu21 + 4*cdphi3*(cdphi1*gtu31 + cdphi2*gtu32) +
+ 2*(cdphi213*gtu31 + cdphi223*gtu32) + cdphi233*gtu33 + gtu11*(cdphi211
+ + 2*SQR(cdphi1)) + gtu22*(cdphi222 + 2*SQR(cdphi2))) + 2*(-1 +
+ gt33L*gtu33)*SQR(cdphi3));
+
+ CCTK_REAL e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
+
+ CCTK_REAL em4phi = INV(e4phi);
+
+ CCTK_REAL gu11 = em4phi*gtu11;
+
+ CCTK_REAL gu21 = em4phi*gtu21;
+
+ CCTK_REAL gu31 = em4phi*gtu31;
+
+ CCTK_REAL gu22 = em4phi*gtu22;
+
+ CCTK_REAL gu32 = em4phi*gtu32;
+
+ CCTK_REAL gu33 = em4phi*gtu33;
+
+ CCTK_REAL R11 = Rphi11 + Rt11;
+
+ CCTK_REAL R12 = Rphi12 + Rt12;
+
+ CCTK_REAL R13 = Rphi13 + Rt13;
+
+ CCTK_REAL R22 = Rphi22 + Rt22;
- CCTK_REAL const gu32 = em4phi*gtu32;
+ CCTK_REAL R23 = Rphi23 + Rt23;
- CCTK_REAL const gu33 = em4phi*gtu33;
+ CCTK_REAL R33 = Rphi33 + Rt33;
- CCTK_REAL const R11 = Rphi11 + Rt11;
+ CCTK_REAL trR = gu11*R11 + gu22*R22 + 2*(gu21*R12 + gu31*R13 +
+ gu32*R23) + gu33*R33;
- CCTK_REAL const R12 = Rphi12 + Rt12;
+ CCTK_REAL Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
- CCTK_REAL const R13 = Rphi13 + Rt13;
+ CCTK_REAL Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
- CCTK_REAL const R22 = Rphi22 + Rt22;
+ CCTK_REAL Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
- CCTK_REAL const R23 = Rphi23 + Rt23;
+ CCTK_REAL Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
- CCTK_REAL const R33 = Rphi33 + Rt33;
+ CCTK_REAL Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
- CCTK_REAL const trR = gu11*R11 + gu22*R22 + 2*(gu21*R12 + gu31*R13 + gu32*R23) + gu33*R33;
+ CCTK_REAL Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
- CCTK_REAL const Atm11 = At11L*gtu11 + At12L*gtu21 + At13L*gtu31;
+ CCTK_REAL Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
- CCTK_REAL const Atm21 = At11L*gtu21 + At12L*gtu22 + At13L*gtu32;
+ CCTK_REAL Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
- CCTK_REAL const Atm31 = At11L*gtu31 + At12L*gtu32 + At13L*gtu33;
+ CCTK_REAL Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
- CCTK_REAL const Atm12 = At12L*gtu11 + At22L*gtu21 + At23L*gtu31;
+ CCTK_REAL rho = pow(alphaL,-2)*(eTttL - 2*(beta2L*eTtyL +
+ beta3L*eTtzL) + 2*(beta1L*(-eTtxL + beta2L*eTxyL + beta3L*eTxzL) +
+ beta2L*beta3L*eTyzL) + eTxxL*SQR(beta1L) + eTyyL*SQR(beta2L) +
+ eTzzL*SQR(beta3L));
- CCTK_REAL const Atm22 = At12L*gtu21 + At22L*gtu22 + At23L*gtu32;
+ CCTK_REAL S1 = (-eTtxL + beta1L*eTxxL + beta2L*eTxyL +
+ beta3L*eTxzL)*INV(alphaL);
- CCTK_REAL const Atm32 = At12L*gtu31 + At22L*gtu32 + At23L*gtu33;
+ CCTK_REAL S2 = (-eTtyL + beta1L*eTxyL + beta2L*eTyyL +
+ beta3L*eTyzL)*INV(alphaL);
- CCTK_REAL const Atm13 = At13L*gtu11 + At23L*gtu21 + At33L*gtu31;
+ CCTK_REAL S3 = (-eTtzL + beta1L*eTxzL + beta2L*eTyzL +
+ beta3L*eTzzL)*INV(alphaL);
- CCTK_REAL const Atm23 = At13L*gtu21 + At23L*gtu22 + At33L*gtu32;
+ CCTK_REAL HL = -2.*(Atm12*Atm21 + Atm13*Atm31 + Atm23*Atm32) -
+ 50.26548245743669181540229413247204614715*rho + trR - 1.*(SQR(Atm11) +
+ SQR(Atm22) + SQR(Atm33)) +
+ 0.6666666666666666666666666666666666666667*SQR(trKL);
- CCTK_REAL const Atm33 = At13L*gtu31 + At23L*gtu32 + At33L*gtu33;
+ CCTK_REAL M1L = -2.*((At12L*Gt211 + At13L*Gt311)*gtu11 +
+ At11L*Gt123*gtu32) + At12L*((6.*cdphi1 - 1.*Gt111)*gtu21 -
+ 3.*Gt213*gtu31 + 6.*(cdphi2*gtu22 + cdphi3*gtu32) - 1.*Gt233*gtu33) -
+ 1.*((At22L*Gt212 + At12L*(Gt112 + Gt222) + At23L*Gt312 +
+ At13L*Gt322)*gtu22 + At13L*(Gt111*gtu31 + Gt112*gtu32 + Gt113*gtu33)) +
+ At11L*((6.*cdphi1 - 2.*Gt111)*gtu11 + 6.*(cdphi2*gtu21 + cdphi3*gtu31)
+ - 1.*(Gt122*gtu22 + Gt133*gtu33)) + gtu11*PDstandardNth1At11 -
+ 0.6666666666666666666666666666666666666667*PDstandardNth1trK +
+ gtu21*(-1.*(At22L*Gt211 + At23L*Gt311) - 3.*(At11L*Gt112 + At12L*Gt212
+ + At13L*Gt312) + PDstandardNth1At12 + PDstandardNth2At11) +
+ gtu22*PDstandardNth2At12 + gtu31*(-3.*At11L*Gt113 - 1.*(At23L*Gt211 +
+ At33L*Gt311) + At13L*(6.*cdphi1 - 3.*Gt313) + PDstandardNth1At13 +
+ PDstandardNth3At11) + gtu32*(-2.*At12L*Gt223 - 1.*(At12L*Gt113 +
+ At22L*Gt213 + At33L*Gt312 + At23L*(Gt212 + Gt313)) + At13L*(6.*cdphi2 -
+ 2.*Gt323) + PDstandardNth2At13 + PDstandardNth3At12) +
+ gtu33*(-1.*(At23L*Gt213 + At33L*Gt313) + At13L*(6.*cdphi3 - 1.*Gt333) +
+ PDstandardNth3At13) - 25.13274122871834590770114706623602307358*S1;
- CCTK_REAL const rho = pow(alphaL,-2)*(eTttL - 2*(beta2L*eTtyL + beta3L*eTtzL) +
- 2*(beta1L*(-eTtxL + beta2L*eTxyL + beta3L*eTxzL) + beta2L*beta3L*eTyzL) + eTxxL*SQR(beta1L) + eTyyL*SQR(beta2L) +
- eTzzL*SQR(beta3L));
+ CCTK_REAL M2L = At12L*((6.*cdphi1 - 1.*Gt111)*gtu11 - 2.*Gt122*gtu22 +
+ 6.*(cdphi2*gtu21 + cdphi3*gtu31) - 3.*Gt123*gtu32 - 1.*Gt133*gtu33) +
+ At22L*((6.*cdphi2 - 2.*Gt222)*gtu22 - 2.*Gt213*gtu31 + 6.*cdphi3*gtu32
+ - 1.*Gt233*gtu33) + At23L*(-2.*Gt322*gtu22 - 1.*Gt333*gtu33 +
+ 6.*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33)) - 1.*((At11L*Gt112 +
+ At22L*Gt211 + At12L*Gt212 + At23L*Gt311 + At13L*Gt312)*gtu11 +
+ Gt122*(At11L*gtu21 + At13L*gtu32) + (At23L*Gt223 + At33L*Gt323)*gtu33 +
+ At13L*(Gt112*gtu31 + Gt123*gtu33)) + gtu11*PDstandardNth1At12 +
+ gtu21*(At22L*(6.*cdphi1 - 3.*Gt212) + At12L*(-3.*Gt112 - 1.*Gt222) -
+ 3.*At23L*Gt312 - 1.*At13L*Gt322 + PDstandardNth1At22 +
+ PDstandardNth2At12) + gtu22*PDstandardNth2At22 -
+ 0.6666666666666666666666666666666666666667*PDstandardNth2trK +
+ gtu31*(At12L*(-2.*Gt113 - 1.*Gt223) - 2.*At23L*Gt313 - 1.*(At11L*Gt123
+ + At23L*Gt212 + At33L*Gt312 + At13L*Gt323) + PDstandardNth1At23 +
+ PDstandardNth3At12) + gtu32*(-1.*(At23L*Gt222 + At33L*Gt322) -
+ 3.*(At22L*Gt223 + At23L*Gt323) + PDstandardNth2At23 +
+ PDstandardNth3At22) + gtu33*PDstandardNth3At23 -
+ 25.13274122871834590770114706623602307358*S2;
- CCTK_REAL const S1 = (-eTtxL + beta1L*eTxxL + beta2L*eTxyL + beta3L*eTxzL)*INV(alphaL);
-
- CCTK_REAL const S2 = (-eTtyL + beta1L*eTxyL + beta2L*eTyyL + beta3L*eTyzL)*INV(alphaL);
-
- CCTK_REAL const S3 = (-eTtzL + beta1L*eTxzL + beta2L*eTyzL + beta3L*eTzzL)*INV(alphaL);
-
- CCTK_REAL const HL = -2.*(Atm12*Atm21 + Atm13*Atm31 + Atm23*Atm32) - 50.26548245743669181540229413247204614715*rho + trR -
- 1.*(SQR(Atm11) + SQR(Atm22) + SQR(Atm33)) + 0.6666666666666666666666666666666666666667*SQR(trKL);
-
- CCTK_REAL const M1L = -2.*((At12L*Gt211 + At13L*Gt311)*gtu11 + At11L*Gt123*gtu32) +
- At12L*((6.*cdphi1 - 1.*Gt111)*gtu21 - 3.*Gt213*gtu31 + 6.*(cdphi2*gtu22 + cdphi3*gtu32) - 1.*Gt233*gtu33) -
- 1.*((At22L*Gt212 + At12L*(Gt112 + Gt222) + At23L*Gt312 + At13L*Gt322)*gtu22 +
- At13L*(Gt111*gtu31 + Gt112*gtu32 + Gt113*gtu33)) +
- At11L*((6.*cdphi1 - 2.*Gt111)*gtu11 + 6.*(cdphi2*gtu21 + cdphi3*gtu31) - 1.*(Gt122*gtu22 + Gt133*gtu33)) +
- gtu11*PDstandardNth1At11 - 0.6666666666666666666666666666666666666667*PDstandardNth1trK +
- gtu21*(-1.*(At22L*Gt211 + At23L*Gt311) - 3.*(At11L*Gt112 + At12L*Gt212 + At13L*Gt312) + PDstandardNth1At12 +
- PDstandardNth2At11) + gtu22*PDstandardNth2At12 +
- gtu31*(-3.*At11L*Gt113 - 1.*(At23L*Gt211 + At33L*Gt311) + At13L*(6.*cdphi1 - 3.*Gt313) + PDstandardNth1At13 +
- PDstandardNth3At11) + gtu32*(-2.*At12L*Gt223 -
- 1.*(At12L*Gt113 + At22L*Gt213 + At33L*Gt312 + At23L*(Gt212 + Gt313)) + At13L*(6.*cdphi2 - 2.*Gt323) +
- PDstandardNth2At13 + PDstandardNth3At12) +
- gtu33*(-1.*(At23L*Gt213 + At33L*Gt313) + At13L*(6.*cdphi3 - 1.*Gt333) + PDstandardNth3At13) -
- 25.13274122871834590770114706623602307358*S1;
-
- CCTK_REAL const M2L = At12L*((6.*cdphi1 - 1.*Gt111)*gtu11 - 2.*Gt122*gtu22 + 6.*(cdphi2*gtu21 + cdphi3*gtu31) - 3.*Gt123*gtu32 -
- 1.*Gt133*gtu33) + At22L*((6.*cdphi2 - 2.*Gt222)*gtu22 - 2.*Gt213*gtu31 + 6.*cdphi3*gtu32 - 1.*Gt233*gtu33) +
- At23L*(-2.*Gt322*gtu22 - 1.*Gt333*gtu33 + 6.*(cdphi1*gtu31 + cdphi2*gtu32 + cdphi3*gtu33)) -
- 1.*((At11L*Gt112 + At22L*Gt211 + At12L*Gt212 + At23L*Gt311 + At13L*Gt312)*gtu11 +
- Gt122*(At11L*gtu21 + At13L*gtu32) + (At23L*Gt223 + At33L*Gt323)*gtu33 + At13L*(Gt112*gtu31 + Gt123*gtu33)) +
- gtu11*PDstandardNth1At12 + gtu21*(At22L*(6.*cdphi1 - 3.*Gt212) + At12L*(-3.*Gt112 - 1.*Gt222) - 3.*At23L*Gt312 -
- 1.*At13L*Gt322 + PDstandardNth1At22 + PDstandardNth2At12) + gtu22*PDstandardNth2At22 -
- 0.6666666666666666666666666666666666666667*PDstandardNth2trK +
- gtu31*(At12L*(-2.*Gt113 - 1.*Gt223) - 2.*At23L*Gt313 - 1.*(At11L*Gt123 + At23L*Gt212 + At33L*Gt312 + At13L*Gt323) +
- PDstandardNth1At23 + PDstandardNth3At12) +
- gtu32*(-1.*(At23L*Gt222 + At33L*Gt322) - 3.*(At22L*Gt223 + At23L*Gt323) + PDstandardNth2At23 +
- PDstandardNth3At22) + gtu33*PDstandardNth3At23 - 25.13274122871834590770114706623602307358*S2;
-
- CCTK_REAL const M3L = -1.*((At11L*Gt113 + At23L*Gt211 + At12L*Gt213 + At33L*Gt311)*gtu11 +
- (At22L*Gt223 + At33L*Gt322 + At23L*Gt323)*gtu22 + At11L*Gt133*gtu31 +
- At12L*(Gt113*gtu21 + Gt123*gtu22 + Gt133*gtu32)) +
- At13L*((6.*cdphi1 - 1.*(Gt111 + Gt313))*gtu11 - 1.*Gt122*gtu22 + 6.*(cdphi2*gtu21 + cdphi3*gtu31) -
- 3.*Gt123*gtu32 - 2.*Gt133*gtu33) + At23L*((6.*cdphi2 - 1.*Gt222)*gtu22 - 3.*Gt213*gtu31 + 6.*cdphi3*gtu32 -
- 2.*Gt233*gtu33) + gtu11*PDstandardNth1At13 +
- gtu21*(-2.*(At13L*Gt112 + At33L*Gt312) + At23L*(6.*cdphi1 - 2.*Gt212 - 1.*Gt313) -
- 1.*(At11L*Gt123 + At22L*Gt213 + At12L*Gt223 + At13L*Gt323) + PDstandardNth1At23 + PDstandardNth2At13) +
- gtu22*PDstandardNth2At23 + gtu31*(-1.*At12L*Gt233 + At33L*(6.*cdphi1 - 3.*Gt313) + At13L*(-3.*Gt113 - 1.*Gt333) +
- PDstandardNth1At33 + PDstandardNth3At13) +
- gtu32*(-1.*At22L*Gt233 + At33L*(6.*cdphi2 - 3.*Gt323) + At23L*(-3.*Gt223 - 1.*Gt333) + PDstandardNth2At33 +
- PDstandardNth3At23) + gtu33*(At33L*(6.*cdphi3 - 2.*Gt333) + PDstandardNth3At33) -
- 0.6666666666666666666666666666666666666667*PDstandardNth3trK - 25.13274122871834590770114706623602307358*S3;
-
- CCTK_REAL const cSL = Log(detgt);
-
- CCTK_REAL const cXt1L = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 + Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33 - Xt1L;
-
- CCTK_REAL const cXt2L = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 + Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33 - Xt2L;
-
- CCTK_REAL const cXt3L = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 + Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33 - Xt3L;
-
- CCTK_REAL const cAL = At11L*gtu11 + At22L*gtu22 + 2*(At12L*gtu21 + At13L*gtu31 + At23L*gtu32) + At33L*gtu33;
+ CCTK_REAL M3L = -1.*((At11L*Gt113 + At23L*Gt211 + At12L*Gt213 +
+ At33L*Gt311)*gtu11 + (At22L*Gt223 + At33L*Gt322 + At23L*Gt323)*gtu22 +
+ At11L*Gt133*gtu31 + At12L*(Gt113*gtu21 + Gt123*gtu22 + Gt133*gtu32)) +
+ At13L*((6.*cdphi1 - 1.*(Gt111 + Gt313))*gtu11 - 1.*Gt122*gtu22 +
+ 6.*(cdphi2*gtu21 + cdphi3*gtu31) - 3.*Gt123*gtu32 - 2.*Gt133*gtu33) +
+ At23L*((6.*cdphi2 - 1.*Gt222)*gtu22 - 3.*Gt213*gtu31 + 6.*cdphi3*gtu32
+ - 2.*Gt233*gtu33) + gtu11*PDstandardNth1At13 + gtu21*(-2.*(At13L*Gt112
+ + At33L*Gt312) + At23L*(6.*cdphi1 - 2.*Gt212 - 1.*Gt313) -
+ 1.*(At11L*Gt123 + At22L*Gt213 + At12L*Gt223 + At13L*Gt323) +
+ PDstandardNth1At23 + PDstandardNth2At13) + gtu22*PDstandardNth2At23 +
+ gtu31*(-1.*At12L*Gt233 + At33L*(6.*cdphi1 - 3.*Gt313) +
+ At13L*(-3.*Gt113 - 1.*Gt333) + PDstandardNth1At33 + PDstandardNth3At13)
+ + gtu32*(-1.*At22L*Gt233 + At33L*(6.*cdphi2 - 3.*Gt323) +
+ At23L*(-3.*Gt223 - 1.*Gt333) + PDstandardNth2At33 + PDstandardNth3At23)
+ + gtu33*(At33L*(6.*cdphi3 - 2.*Gt333) + PDstandardNth3At33) -
+ 0.6666666666666666666666666666666666666667*PDstandardNth3trK -
+ 25.13274122871834590770114706623602307358*S3;
+
+ CCTK_REAL cSL = Log(detgt);
+
+ CCTK_REAL cXt1L = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 +
+ Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33 - Xt1L;
+
+ CCTK_REAL cXt2L = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 +
+ Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33 - Xt2L;
+
+ CCTK_REAL cXt3L = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 +
+ Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33 - Xt3L;
+
+ CCTK_REAL cAL = At11L*gtu11 + At22L*gtu22 + 2*(At12L*gtu21 +
+ At13L*gtu31 + At23L*gtu32) + At33L*gtu33;
/* Copy local copies back to grid functions */
@@ -867,8 +992,6 @@ void ML_BSSN_constraints_Body(cGH const * restrict const cctkGH, int const dir,
M1[index] = M1L;
M2[index] = M2L;
M3[index] = M3L;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_constraints);
}
diff --git a/ML_BSSN/src/ML_BSSN_constraints_boundary.c b/ML_BSSN/src/ML_BSSN_constraints_boundary.c
index 9a3c00a..5b1d723 100644
--- a/ML_BSSN/src/ML_BSSN_constraints_boundary.c
+++ b/ML_BSSN/src/ML_BSSN_constraints_boundary.c
@@ -28,20 +28,6 @@ void ML_BSSN_constraints_boundary_Body(cGH const * restrict const cctkGH, int co
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_constraints_boundary_Body");
@@ -94,46 +80,45 @@ void ML_BSSN_constraints_boundary_Body(cGH const * restrict const cctkGH, int co
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
+ /* Declare derivatives */
- /* Declare shorthands */
+ /* Assign local copies of grid functions */
- /* Declare local copies of grid functions */
- // CCTK_REAL HL = INITVALUE;
- // CCTK_REAL M1L = INITVALUE, M2L = INITVALUE, M3L = INITVALUE;
- /* Declare precomputed derivatives*/
+ /* Include user supplied include files */
- /* Declare derivatives */
+ /* Precompute derivatives */
- /* Assign local copies of grid functions */
+ /* Calculate temporaries and grid functions */
+ CCTK_REAL HL = 0;
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL M1L = 0;
- /* Include user supplied include files */
+ CCTK_REAL M2L = 0;
- /* Precompute derivatives (new style) */
+ CCTK_REAL M3L = 0;
- /* Precompute derivatives (old style) */
+ CCTK_REAL cSL = 0;
- /* Calculate temporaries and grid functions */
- CCTK_REAL const HL = 0;
+ CCTK_REAL cXt1L = 0;
- CCTK_REAL const M1L = 0;
+ CCTK_REAL cXt2L = 0;
- CCTK_REAL const M2L = 0;
+ CCTK_REAL cXt3L = 0;
- CCTK_REAL const M3L = 0;
+ CCTK_REAL cAL = 0;
/* Copy local copies back to grid functions */
+ cA[index] = cAL;
+ cS[index] = cSL;
+ cXt1[index] = cXt1L;
+ cXt2[index] = cXt2L;
+ cXt3[index] = cXt3L;
H[index] = HL;
M1[index] = M1L;
M2[index] = M2L;
M3[index] = M3L;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_constraints_boundary);
}
diff --git a/ML_BSSN/src/ML_BSSN_convertFromADMBase.c b/ML_BSSN/src/ML_BSSN_convertFromADMBase.c
index 1b93cb2..14b6d75 100644
--- a/ML_BSSN/src/ML_BSSN_convertFromADMBase.c
+++ b/ML_BSSN/src/ML_BSSN_convertFromADMBase.c
@@ -28,20 +28,6 @@ void ML_BSSN_convertFromADMBase_Body(cGH const * restrict const cctkGH, int cons
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_convertFromADMBase_Body");
@@ -94,133 +80,100 @@ void ML_BSSN_convertFromADMBase_Body(cGH const * restrict const cctkGH, int cons
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL detg = INITVALUE;
- // CCTK_REAL em4phi = INITVALUE;
- // CCTK_REAL g11 = INITVALUE, g12 = INITVALUE, g13 = INITVALUE, g22 = INITVALUE, g23 = INITVALUE, g33 = INITVALUE;
- // CCTK_REAL gu11 = INITVALUE, gu21 = INITVALUE, gu22 = INITVALUE, gu31 = INITVALUE, gu32 = INITVALUE, gu33 = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alpL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At12L = INITVALUE, At13L = INITVALUE, At22L = INITVALUE, At23L = INITVALUE, At33L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL betaxL = INITVALUE;
- // CCTK_REAL betayL = INITVALUE;
- // CCTK_REAL betazL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL gxxL = INITVALUE;
- // CCTK_REAL gxyL = INITVALUE;
- // CCTK_REAL gxzL = INITVALUE;
- // CCTK_REAL gyyL = INITVALUE;
- // CCTK_REAL gyzL = INITVALUE;
- // CCTK_REAL gzzL = INITVALUE;
- // CCTK_REAL kxxL = INITVALUE;
- // CCTK_REAL kxyL = INITVALUE;
- // CCTK_REAL kxzL = INITVALUE;
- // CCTK_REAL kyyL = INITVALUE;
- // CCTK_REAL kyzL = INITVALUE;
- // CCTK_REAL kzzL = INITVALUE;
- // CCTK_REAL phiL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const alpL = alp[index];
- CCTK_REAL const betaxL = betax[index];
- CCTK_REAL const betayL = betay[index];
- CCTK_REAL const betazL = betaz[index];
- CCTK_REAL const gxxL = gxx[index];
- CCTK_REAL const gxyL = gxy[index];
- CCTK_REAL const gxzL = gxz[index];
- CCTK_REAL const gyyL = gyy[index];
- CCTK_REAL const gyzL = gyz[index];
- CCTK_REAL const gzzL = gzz[index];
- CCTK_REAL const kxxL = kxx[index];
- CCTK_REAL const kxyL = kxy[index];
- CCTK_REAL const kxzL = kxz[index];
- CCTK_REAL const kyyL = kyy[index];
- CCTK_REAL const kyzL = kyz[index];
- CCTK_REAL const kzzL = kzz[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL alpL = alp[index];
+ CCTK_REAL betaxL = betax[index];
+ CCTK_REAL betayL = betay[index];
+ CCTK_REAL betazL = betaz[index];
+ CCTK_REAL gxxL = gxx[index];
+ CCTK_REAL gxyL = gxy[index];
+ CCTK_REAL gxzL = gxz[index];
+ CCTK_REAL gyyL = gyy[index];
+ CCTK_REAL gyzL = gyz[index];
+ CCTK_REAL gzzL = gzz[index];
+ CCTK_REAL kxxL = kxx[index];
+ CCTK_REAL kxyL = kxy[index];
+ CCTK_REAL kxzL = kxz[index];
+ CCTK_REAL kyyL = kyy[index];
+ CCTK_REAL kyzL = kyz[index];
+ CCTK_REAL kzzL = kzz[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL trKL = trK[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const g11 = gxxL;
+ CCTK_REAL g11 = gxxL;
- CCTK_REAL const g12 = gxyL;
+ CCTK_REAL g12 = gxyL;
- CCTK_REAL const g13 = gxzL;
+ CCTK_REAL g13 = gxzL;
- CCTK_REAL const g22 = gyyL;
+ CCTK_REAL g22 = gyyL;
- CCTK_REAL const g23 = gyzL;
+ CCTK_REAL g23 = gyzL;
- CCTK_REAL const g33 = gzzL;
+ CCTK_REAL g33 = gzzL;
- CCTK_REAL const detg = 2*g12*g13*g23 + g33*(g11*g22 - SQR(g12)) - g22*SQR(g13) - g11*SQR(g23);
+ CCTK_REAL detg = 2*g12*g13*g23 + g33*(g11*g22 - SQR(g12)) -
+ g22*SQR(g13) - g11*SQR(g23);
- CCTK_REAL const gu11 = INV(detg)*(g22*g33 - SQR(g23));
+ CCTK_REAL gu11 = INV(detg)*(g22*g33 - SQR(g23));
- CCTK_REAL const gu21 = (g13*g23 - g12*g33)*INV(detg);
+ CCTK_REAL gu21 = (g13*g23 - g12*g33)*INV(detg);
- CCTK_REAL const gu31 = (-(g13*g22) + g12*g23)*INV(detg);
+ CCTK_REAL gu31 = (-(g13*g22) + g12*g23)*INV(detg);
- CCTK_REAL const gu22 = INV(detg)*(g11*g33 - SQR(g13));
+ CCTK_REAL gu22 = INV(detg)*(g11*g33 - SQR(g13));
- CCTK_REAL const gu32 = (g12*g13 - g11*g23)*INV(detg);
+ CCTK_REAL gu32 = (g12*g13 - g11*g23)*INV(detg);
- CCTK_REAL const gu33 = INV(detg)*(g11*g22 - SQR(g12));
+ CCTK_REAL gu33 = INV(detg)*(g11*g22 - SQR(g12));
- CCTK_REAL const phiL = IfThen(conformalMethod,pow(detg,-0.16666666666666666),Log(detg)/12.);
+ phiL =
+ IfThen(conformalMethod,pow(detg,-0.16666666666666666),Log(detg)/12.);
- CCTK_REAL const em4phi = IfThen(conformalMethod,SQR(phiL),exp(-4*phiL));
+ CCTK_REAL em4phi = IfThen(conformalMethod,SQR(phiL),exp(-4*phiL));
- CCTK_REAL const gt11L = em4phi*g11;
+ CCTK_REAL gt11L = em4phi*g11;
- CCTK_REAL const gt12L = em4phi*g12;
+ CCTK_REAL gt12L = em4phi*g12;
- CCTK_REAL const gt13L = em4phi*g13;
+ CCTK_REAL gt13L = em4phi*g13;
- CCTK_REAL const gt22L = em4phi*g22;
+ CCTK_REAL gt22L = em4phi*g22;
- CCTK_REAL const gt23L = em4phi*g23;
+ CCTK_REAL gt23L = em4phi*g23;
- CCTK_REAL const gt33L = em4phi*g33;
+ CCTK_REAL gt33L = em4phi*g33;
- CCTK_REAL const trKL = gu11*kxxL + gu22*kyyL + 2*(gu21*kxyL + gu31*kxzL + gu32*kyzL) + gu33*kzzL;
+ trKL = gu11*kxxL + gu22*kyyL + 2*(gu21*kxyL + gu31*kxzL + gu32*kyzL) +
+ gu33*kzzL;
- CCTK_REAL const At11L = em4phi*(kxxL - g11*kthird*trKL);
+ CCTK_REAL At11L = em4phi*(kxxL - g11*kthird*trKL);
- CCTK_REAL const At12L = em4phi*(kxyL - g12*kthird*trKL);
+ CCTK_REAL At12L = em4phi*(kxyL - g12*kthird*trKL);
- CCTK_REAL const At13L = em4phi*(kxzL - g13*kthird*trKL);
+ CCTK_REAL At13L = em4phi*(kxzL - g13*kthird*trKL);
- CCTK_REAL const At22L = em4phi*(kyyL - g22*kthird*trKL);
+ CCTK_REAL At22L = em4phi*(kyyL - g22*kthird*trKL);
- CCTK_REAL const At23L = em4phi*(kyzL - g23*kthird*trKL);
+ CCTK_REAL At23L = em4phi*(kyzL - g23*kthird*trKL);
- CCTK_REAL const At33L = em4phi*(kzzL - g33*kthird*trKL);
+ CCTK_REAL At33L = em4phi*(kzzL - g33*kthird*trKL);
- CCTK_REAL const alphaL = alpL;
+ CCTK_REAL alphaL = alpL;
- CCTK_REAL const beta1L = betaxL;
+ CCTK_REAL beta1L = betaxL;
- CCTK_REAL const beta2L = betayL;
+ CCTK_REAL beta2L = betayL;
- CCTK_REAL const beta3L = betazL;
+ CCTK_REAL beta3L = betazL;
/* Copy local copies back to grid functions */
@@ -242,8 +195,6 @@ void ML_BSSN_convertFromADMBase_Body(cGH const * restrict const cctkGH, int cons
gt33[index] = gt33L;
phi[index] = phiL;
trK[index] = trKL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_convertFromADMBase);
}
diff --git a/ML_BSSN/src/ML_BSSN_convertFromADMBaseGamma.c b/ML_BSSN/src/ML_BSSN_convertFromADMBaseGamma.c
index 68a3ba7..7d9e3aa 100644
--- a/ML_BSSN/src/ML_BSSN_convertFromADMBaseGamma.c
+++ b/ML_BSSN/src/ML_BSSN_convertFromADMBaseGamma.c
@@ -28,20 +28,6 @@ void ML_BSSN_convertFromADMBaseGamma_Body(cGH const * restrict const cctkGH, int
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_convertFromADMBaseGamma_Body");
@@ -94,34 +80,7 @@ void ML_BSSN_convertFromADMBaseGamma_Body(cGH const * restrict const cctkGH, int
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL dir1 = INITVALUE, dir2 = INITVALUE, dir3 = INITVALUE;
- // CCTK_REAL Gt111 = INITVALUE, Gt112 = INITVALUE, Gt113 = INITVALUE, Gt122 = INITVALUE, Gt123 = INITVALUE, Gt133 = INITVALUE;
- // CCTK_REAL Gt211 = INITVALUE, Gt212 = INITVALUE, Gt213 = INITVALUE, Gt222 = INITVALUE, Gt223 = INITVALUE, Gt233 = INITVALUE;
- // CCTK_REAL Gt311 = INITVALUE, Gt312 = INITVALUE, Gt313 = INITVALUE, Gt322 = INITVALUE, Gt323 = INITVALUE, Gt333 = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B2L = INITVALUE, B3L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL betaxL = INITVALUE;
- // CCTK_REAL betayL = INITVALUE;
- // CCTK_REAL betazL = INITVALUE;
- // CCTK_REAL dtalpL = INITVALUE;
- // CCTK_REAL dtbetaxL = INITVALUE;
- // CCTK_REAL dtbetayL = INITVALUE;
- // CCTK_REAL dtbetazL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL Xt1L = INITVALUE, Xt2L = INITVALUE, Xt3L = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
// CCTK_REAL PDstandardNth1gt11 = INITVALUE;
// CCTK_REAL PDstandardNth2gt11 = INITVALUE;
@@ -143,29 +102,27 @@ void ML_BSSN_convertFromADMBaseGamma_Body(cGH const * restrict const cctkGH, int
// CCTK_REAL PDstandardNth3gt33 = INITVALUE;
/* Assign local copies of grid functions */
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const betaxL = betax[index];
- CCTK_REAL const betayL = betay[index];
- CCTK_REAL const betazL = betaz[index];
- CCTK_REAL const dtalpL = dtalp[index];
- CCTK_REAL const dtbetaxL = dtbetax[index];
- CCTK_REAL const dtbetayL = dtbetay[index];
- CCTK_REAL const dtbetazL = dtbetaz[index];
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL betaxL = betax[index];
+ CCTK_REAL betayL = betay[index];
+ CCTK_REAL betazL = betaz[index];
+ CCTK_REAL dtalpL = dtalp[index];
+ CCTK_REAL dtbetaxL = dtbetax[index];
+ CCTK_REAL dtbetayL = dtbetay[index];
+ CCTK_REAL dtbetazL = dtbetaz[index];
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
+ /* Precompute derivatives */
CCTK_REAL const PDstandardNth1gt11 = PDstandardNth1(gt11, i, j, k);
CCTK_REAL const PDstandardNth2gt11 = PDstandardNth2(gt11, i, j, k);
CCTK_REAL const PDstandardNth3gt11 = PDstandardNth3(gt11, i, j, k);
@@ -185,111 +142,137 @@ void ML_BSSN_convertFromADMBaseGamma_Body(cGH const * restrict const cctkGH, int
CCTK_REAL const PDstandardNth2gt33 = PDstandardNth2(gt33, i, j, k);
CCTK_REAL const PDstandardNth3gt33 = PDstandardNth3(gt33, i, j, k);
- /* Precompute derivatives (old style) */
-
/* Calculate temporaries and grid functions */
- int const dir1 = Sign(beta1L);
+ int dir1 = Sign(beta1L);
- int const dir2 = Sign(beta2L);
+ int dir2 = Sign(beta2L);
- int const dir3 = Sign(beta3L);
+ int dir3 = Sign(beta3L);
- CCTK_REAL const detgt = 1;
+ CCTK_REAL detgt = 1;
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
- CCTK_REAL const Gt111 = khalf*(gtu11*PDstandardNth1gt11 + 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
- gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
+ CCTK_REAL Gt111 = khalf*(gtu11*PDstandardNth1gt11 +
+ 2*(gtu21*PDstandardNth1gt12 + gtu31*PDstandardNth1gt13) -
+ gtu21*PDstandardNth2gt11 - gtu31*PDstandardNth3gt11);
- CCTK_REAL const Gt211 = khalf*(gtu21*PDstandardNth1gt11 + 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
- gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
+ CCTK_REAL Gt211 = khalf*(gtu21*PDstandardNth1gt11 +
+ 2*(gtu22*PDstandardNth1gt12 + gtu32*PDstandardNth1gt13) -
+ gtu22*PDstandardNth2gt11 - gtu32*PDstandardNth3gt11);
- CCTK_REAL const Gt311 = khalf*(gtu31*PDstandardNth1gt11 + 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
- gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
+ CCTK_REAL Gt311 = khalf*(gtu31*PDstandardNth1gt11 +
+ 2*(gtu32*PDstandardNth1gt12 + gtu33*PDstandardNth1gt13) -
+ gtu32*PDstandardNth2gt11 - gtu33*PDstandardNth3gt11);
- CCTK_REAL const Gt112 = khalf*(gtu21*PDstandardNth1gt22 + gtu11*PDstandardNth2gt11 +
- gtu31*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
+ CCTK_REAL Gt112 = khalf*(gtu21*PDstandardNth1gt22 +
+ gtu11*PDstandardNth2gt11 + gtu31*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
- CCTK_REAL const Gt212 = khalf*(gtu22*PDstandardNth1gt22 + gtu21*PDstandardNth2gt11 +
- gtu32*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
+ CCTK_REAL Gt212 = khalf*(gtu22*PDstandardNth1gt22 +
+ gtu21*PDstandardNth2gt11 + gtu32*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
- CCTK_REAL const Gt312 = khalf*(gtu32*PDstandardNth1gt22 + gtu31*PDstandardNth2gt11 +
- gtu33*(PDstandardNth1gt23 + PDstandardNth2gt13 - PDstandardNth3gt12));
+ CCTK_REAL Gt312 = khalf*(gtu32*PDstandardNth1gt22 +
+ gtu31*PDstandardNth2gt11 + gtu33*(PDstandardNth1gt23 +
+ PDstandardNth2gt13 - PDstandardNth3gt12));
- CCTK_REAL const Gt113 = khalf*(gtu31*PDstandardNth1gt33 + gtu11*PDstandardNth3gt11 +
- gtu21*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
+ CCTK_REAL Gt113 = khalf*(gtu31*PDstandardNth1gt33 +
+ gtu11*PDstandardNth3gt11 + gtu21*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
- CCTK_REAL const Gt213 = khalf*(gtu32*PDstandardNth1gt33 + gtu21*PDstandardNth3gt11 +
- gtu22*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
+ CCTK_REAL Gt213 = khalf*(gtu32*PDstandardNth1gt33 +
+ gtu21*PDstandardNth3gt11 + gtu22*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
- CCTK_REAL const Gt313 = khalf*(gtu33*PDstandardNth1gt33 + gtu31*PDstandardNth3gt11 +
- gtu32*(PDstandardNth1gt23 - PDstandardNth2gt13 + PDstandardNth3gt12));
+ CCTK_REAL Gt313 = khalf*(gtu33*PDstandardNth1gt33 +
+ gtu31*PDstandardNth3gt11 + gtu32*(PDstandardNth1gt23 -
+ PDstandardNth2gt13 + PDstandardNth3gt12));
- CCTK_REAL const Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
- gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+ CCTK_REAL Gt122 = khalf*(gtu11*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu21*PDstandardNth2gt22 +
+ gtu31*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
- CCTK_REAL const Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
- gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+ CCTK_REAL Gt222 = khalf*(gtu21*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu22*PDstandardNth2gt22 +
+ gtu32*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
- CCTK_REAL const Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 + 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
- gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
+ CCTK_REAL Gt322 = khalf*(gtu31*(-PDstandardNth1gt22 +
+ 2*PDstandardNth2gt12) + gtu32*PDstandardNth2gt22 +
+ gtu33*(2*PDstandardNth2gt23 - PDstandardNth3gt22));
- CCTK_REAL const Gt123 = khalf*(gtu31*PDstandardNth2gt33 + gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu21*PDstandardNth3gt22);
+ CCTK_REAL Gt123 = khalf*(gtu31*PDstandardNth2gt33 +
+ gtu11*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu21*PDstandardNth3gt22);
- CCTK_REAL const Gt223 = khalf*(gtu32*PDstandardNth2gt33 + gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu22*PDstandardNth3gt22);
+ CCTK_REAL Gt223 = khalf*(gtu32*PDstandardNth2gt33 +
+ gtu21*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu22*PDstandardNth3gt22);
- CCTK_REAL const Gt323 = khalf*(gtu33*PDstandardNth2gt33 + gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
- gtu32*PDstandardNth3gt22);
+ CCTK_REAL Gt323 = khalf*(gtu33*PDstandardNth2gt33 +
+ gtu31*(-PDstandardNth1gt23 + PDstandardNth2gt13 + PDstandardNth3gt12) +
+ gtu32*PDstandardNth3gt22);
- CCTK_REAL const Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) - gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
- 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
+ CCTK_REAL Gt133 = khalf*(-(gtu11*PDstandardNth1gt33) -
+ gtu21*PDstandardNth2gt33 + 2*gtu11*PDstandardNth3gt13 +
+ 2*gtu21*PDstandardNth3gt23 + gtu31*PDstandardNth3gt33);
- CCTK_REAL const Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) - gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
- 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
+ CCTK_REAL Gt233 = khalf*(-(gtu21*PDstandardNth1gt33) -
+ gtu22*PDstandardNth2gt33 + 2*gtu21*PDstandardNth3gt13 +
+ 2*gtu22*PDstandardNth3gt23 + gtu32*PDstandardNth3gt33);
- CCTK_REAL const Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) - gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
- 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
+ CCTK_REAL Gt333 = khalf*(-(gtu31*PDstandardNth1gt33) -
+ gtu32*PDstandardNth2gt33 + 2*gtu31*PDstandardNth3gt13 +
+ 2*gtu32*PDstandardNth3gt23 + gtu33*PDstandardNth3gt33);
- CCTK_REAL const Xt1L = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 + Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
+ CCTK_REAL Xt1L = Gt111*gtu11 + Gt122*gtu22 + 2*(Gt112*gtu21 +
+ Gt113*gtu31 + Gt123*gtu32) + Gt133*gtu33;
- CCTK_REAL const Xt2L = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 + Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
+ CCTK_REAL Xt2L = Gt211*gtu11 + Gt222*gtu22 + 2*(Gt212*gtu21 +
+ Gt213*gtu31 + Gt223*gtu32) + Gt233*gtu33;
- CCTK_REAL const Xt3L = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 + Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
+ CCTK_REAL Xt3L = Gt311*gtu11 + Gt322*gtu22 + 2*(Gt312*gtu21 +
+ Gt313*gtu31 + Gt323*gtu32) + Gt333*gtu33;
- CCTK_REAL const AL = -(dtalpL*(-1 + LapseAdvectionCoeff)*INV(harmonicF)*pow(alphaL,-harmonicN));
+ CCTK_REAL AL = -(dtalpL*(-1 +
+ LapseAdvectionCoeff)*INV(harmonicF)*pow(alphaL,-harmonicN));
- CCTK_REAL const B1L = 6*IfThen(ShiftGammaCoeff != 0,dtbetaxL*INV(ShiftGammaCoeff),0) +
- IfThen(ShiftGammaCoeff != 0,(dtbetaxL - PDupwindNth1(betax, i, j, k)*beta1L*ShiftAdvectionCoeff)*
- INV(ShiftGammaCoeff),0) + IfThen(ShiftGammaCoeff != 0,
- (dtbetaxL - PDupwindNth2(betax, i, j, k)*beta2L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
- IfThen(ShiftGammaCoeff != 0,(dtbetaxL - PDupwindNth3(betax, i, j, k)*beta3L*ShiftAdvectionCoeff)*
- INV(ShiftGammaCoeff),0);
+ CCTK_REAL B1L = 6*IfThen(ShiftGammaCoeff !=
+ 0,dtbetaxL*INV(ShiftGammaCoeff),0) + IfThen(ShiftGammaCoeff !=
+ 0,(dtbetaxL - PDupwindNth1(betax, i, j,
+ k)*beta1L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
+ IfThen(ShiftGammaCoeff != 0,(dtbetaxL - PDupwindNth2(betax, i, j,
+ k)*beta2L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
+ IfThen(ShiftGammaCoeff != 0,(dtbetaxL - PDupwindNth3(betax, i, j,
+ k)*beta3L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0);
- CCTK_REAL const B2L = 6*IfThen(ShiftGammaCoeff != 0,dtbetayL*INV(ShiftGammaCoeff),0) +
- IfThen(ShiftGammaCoeff != 0,(dtbetayL - PDupwindNth1(betay, i, j, k)*beta1L*ShiftAdvectionCoeff)*
- INV(ShiftGammaCoeff),0) + IfThen(ShiftGammaCoeff != 0,
- (dtbetayL - PDupwindNth2(betay, i, j, k)*beta2L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
- IfThen(ShiftGammaCoeff != 0,(dtbetayL - PDupwindNth3(betay, i, j, k)*beta3L*ShiftAdvectionCoeff)*
- INV(ShiftGammaCoeff),0);
-
- CCTK_REAL const B3L = 6*IfThen(ShiftGammaCoeff != 0,dtbetazL*INV(ShiftGammaCoeff),0) +
- IfThen(ShiftGammaCoeff != 0,(dtbetazL - PDupwindNth1(betaz, i, j, k)*beta1L*ShiftAdvectionCoeff)*
- INV(ShiftGammaCoeff),0) + IfThen(ShiftGammaCoeff != 0,
- (dtbetazL - PDupwindNth2(betaz, i, j, k)*beta2L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
- IfThen(ShiftGammaCoeff != 0,(dtbetazL - PDupwindNth3(betaz, i, j, k)*beta3L*ShiftAdvectionCoeff)*
- INV(ShiftGammaCoeff),0);
+ CCTK_REAL B2L = 6*IfThen(ShiftGammaCoeff !=
+ 0,dtbetayL*INV(ShiftGammaCoeff),0) + IfThen(ShiftGammaCoeff !=
+ 0,(dtbetayL - PDupwindNth1(betay, i, j,
+ k)*beta1L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
+ IfThen(ShiftGammaCoeff != 0,(dtbetayL - PDupwindNth2(betay, i, j,
+ k)*beta2L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
+ IfThen(ShiftGammaCoeff != 0,(dtbetayL - PDupwindNth3(betay, i, j,
+ k)*beta3L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0);
+
+ CCTK_REAL B3L = 6*IfThen(ShiftGammaCoeff !=
+ 0,dtbetazL*INV(ShiftGammaCoeff),0) + IfThen(ShiftGammaCoeff !=
+ 0,(dtbetazL - PDupwindNth1(betaz, i, j,
+ k)*beta1L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
+ IfThen(ShiftGammaCoeff != 0,(dtbetazL - PDupwindNth2(betaz, i, j,
+ k)*beta2L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0) +
+ IfThen(ShiftGammaCoeff != 0,(dtbetazL - PDupwindNth3(betaz, i, j,
+ k)*beta3L*ShiftAdvectionCoeff)*INV(ShiftGammaCoeff),0);
/* Copy local copies back to grid functions */
@@ -300,8 +283,6 @@ void ML_BSSN_convertFromADMBaseGamma_Body(cGH const * restrict const cctkGH, int
Xt1[index] = Xt1L;
Xt2[index] = Xt2L;
Xt3[index] = Xt3L;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_convertFromADMBaseGamma);
}
diff --git a/ML_BSSN/src/ML_BSSN_convertToADMBase.c b/ML_BSSN/src/ML_BSSN_convertToADMBase.c
index 5f5bde3..7fef4e0 100644
--- a/ML_BSSN/src/ML_BSSN_convertToADMBase.c
+++ b/ML_BSSN/src/ML_BSSN_convertToADMBase.c
@@ -28,20 +28,6 @@ void ML_BSSN_convertToADMBase_Body(cGH const * restrict const cctkGH, int const
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_convertToADMBase_Body");
@@ -94,102 +80,73 @@ void ML_BSSN_convertToADMBase_Body(cGH const * restrict const cctkGH, int const
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL e4phi = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alpL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At12L = INITVALUE, At13L = INITVALUE, At22L = INITVALUE, At23L = INITVALUE, At33L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL betaxL = INITVALUE;
- // CCTK_REAL betayL = INITVALUE;
- // CCTK_REAL betazL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- // CCTK_REAL gxxL = INITVALUE;
- // CCTK_REAL gxyL = INITVALUE;
- // CCTK_REAL gxzL = INITVALUE;
- // CCTK_REAL gyyL = INITVALUE;
- // CCTK_REAL gyzL = INITVALUE;
- // CCTK_REAL gzzL = INITVALUE;
- // CCTK_REAL kxxL = INITVALUE;
- // CCTK_REAL kxyL = INITVALUE;
- // CCTK_REAL kxzL = INITVALUE;
- // CCTK_REAL kyyL = INITVALUE;
- // CCTK_REAL kyzL = INITVALUE;
- // CCTK_REAL kzzL = INITVALUE;
- // CCTK_REAL phiL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
- CCTK_REAL const phiL = phi[index];
- CCTK_REAL const trKL = trK[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
+ CCTK_REAL gxxL = gxx[index];
+ CCTK_REAL gxyL = gxy[index];
+ CCTK_REAL gxzL = gxz[index];
+ CCTK_REAL gyyL = gyy[index];
+ CCTK_REAL gyzL = gyz[index];
+ CCTK_REAL gzzL = gzz[index];
+ CCTK_REAL phiL = phi[index];
+ CCTK_REAL trKL = trK[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
+ CCTK_REAL e4phi = IfThen(conformalMethod,pow(phiL,-2),exp(4*phiL));
- CCTK_REAL const gxxL = e4phi*gt11L;
+ gxxL = e4phi*gt11L;
- CCTK_REAL const gxyL = e4phi*gt12L;
+ gxyL = e4phi*gt12L;
- CCTK_REAL const gxzL = e4phi*gt13L;
+ gxzL = e4phi*gt13L;
- CCTK_REAL const gyyL = e4phi*gt22L;
+ gyyL = e4phi*gt22L;
- CCTK_REAL const gyzL = e4phi*gt23L;
+ gyzL = e4phi*gt23L;
- CCTK_REAL const gzzL = e4phi*gt33L;
+ gzzL = e4phi*gt33L;
- CCTK_REAL const kxxL = At11L*e4phi + gxxL*kthird*trKL;
+ CCTK_REAL kxxL = At11L*e4phi + gxxL*kthird*trKL;
- CCTK_REAL const kxyL = At12L*e4phi + gxyL*kthird*trKL;
+ CCTK_REAL kxyL = At12L*e4phi + gxyL*kthird*trKL;
- CCTK_REAL const kxzL = At13L*e4phi + gxzL*kthird*trKL;
+ CCTK_REAL kxzL = At13L*e4phi + gxzL*kthird*trKL;
- CCTK_REAL const kyyL = At22L*e4phi + gyyL*kthird*trKL;
+ CCTK_REAL kyyL = At22L*e4phi + gyyL*kthird*trKL;
- CCTK_REAL const kyzL = At23L*e4phi + gyzL*kthird*trKL;
+ CCTK_REAL kyzL = At23L*e4phi + gyzL*kthird*trKL;
- CCTK_REAL const kzzL = At33L*e4phi + gzzL*kthird*trKL;
+ CCTK_REAL kzzL = At33L*e4phi + gzzL*kthird*trKL;
- CCTK_REAL const alpL = alphaL;
+ CCTK_REAL alpL = alphaL;
- CCTK_REAL const betaxL = beta1L;
+ CCTK_REAL betaxL = beta1L;
- CCTK_REAL const betayL = beta2L;
+ CCTK_REAL betayL = beta2L;
- CCTK_REAL const betazL = beta3L;
+ CCTK_REAL betazL = beta3L;
/* Copy local copies back to grid functions */
@@ -209,8 +166,6 @@ void ML_BSSN_convertToADMBase_Body(cGH const * restrict const cctkGH, int const
kyy[index] = kyyL;
kyz[index] = kyzL;
kzz[index] = kzzL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_convertToADMBase);
}
diff --git a/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShift.c b/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShift.c
index 8403ae3..15dbd8a 100644
--- a/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShift.c
+++ b/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShift.c
@@ -28,20 +28,6 @@ void ML_BSSN_convertToADMBaseDtLapseShift_Body(cGH const * restrict const cctkGH
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_convertToADMBaseDtLapseShift_Body");
@@ -94,65 +80,47 @@ void ML_BSSN_convertToADMBaseDtLapseShift_Body(cGH const * restrict const cctkGH
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL dir1 = INITVALUE, dir2 = INITVALUE, dir3 = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B2L = INITVALUE, B3L = INITVALUE;
- // CCTK_REAL beta1L = INITVALUE, beta2L = INITVALUE, beta3L = INITVALUE;
- // CCTK_REAL dtalpL = INITVALUE;
- // CCTK_REAL dtbetaxL = INITVALUE;
- // CCTK_REAL dtbetayL = INITVALUE;
- // CCTK_REAL dtbetazL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const AL = A[index];
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const B1L = B1[index];
- CCTK_REAL const B2L = B2[index];
- CCTK_REAL const B3L = B3[index];
- CCTK_REAL const beta1L = beta1[index];
- CCTK_REAL const beta2L = beta2[index];
- CCTK_REAL const beta3L = beta3[index];
- CCTK_REAL const trKL = trK[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL AL = A[index];
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL B1L = B1[index];
+ CCTK_REAL B2L = B2[index];
+ CCTK_REAL B3L = B3[index];
+ CCTK_REAL beta1L = beta1[index];
+ CCTK_REAL beta2L = beta2[index];
+ CCTK_REAL beta3L = beta3[index];
+ CCTK_REAL trKL = trK[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- int const dir1 = Sign(beta1L);
+ int dir1 = Sign(beta1L);
- int const dir2 = Sign(beta2L);
+ int dir2 = Sign(beta2L);
- int const dir3 = Sign(beta3L);
+ int dir3 = Sign(beta3L);
- CCTK_REAL const dtalpL = (PDupwindNth1(alpha, i, j, k)*beta1L + PDupwindNth2(alpha, i, j, k)*beta2L +
- PDupwindNth3(alpha, i, j, k)*beta3L)*LapseAdvectionCoeff +
- harmonicF*(AL*(-1 + LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
+ CCTK_REAL dtalpL = (PDupwindNth1(alpha, i, j, k)*beta1L +
+ PDupwindNth2(alpha, i, j, k)*beta2L + PDupwindNth3(alpha, i, j,
+ k)*beta3L)*LapseAdvectionCoeff + harmonicF*(AL*(-1 +
+ LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
- CCTK_REAL const dtbetaxL = (PDupwindNth1(beta1, i, j, k)*beta1L + PDupwindNth2(beta1, i, j, k)*beta2L +
- PDupwindNth3(beta1, i, j, k)*beta3L)*ShiftAdvectionCoeff + B1L*ShiftGammaCoeff;
+ CCTK_REAL dtbetaxL = (PDupwindNth1(beta1, i, j, k)*beta1L +
+ PDupwindNth2(beta1, i, j, k)*beta2L + PDupwindNth3(beta1, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B1L*ShiftGammaCoeff;
- CCTK_REAL const dtbetayL = (PDupwindNth1(beta2, i, j, k)*beta1L + PDupwindNth2(beta2, i, j, k)*beta2L +
- PDupwindNth3(beta2, i, j, k)*beta3L)*ShiftAdvectionCoeff + B2L*ShiftGammaCoeff;
+ CCTK_REAL dtbetayL = (PDupwindNth1(beta2, i, j, k)*beta1L +
+ PDupwindNth2(beta2, i, j, k)*beta2L + PDupwindNth3(beta2, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B2L*ShiftGammaCoeff;
- CCTK_REAL const dtbetazL = (PDupwindNth1(beta3, i, j, k)*beta1L + PDupwindNth2(beta3, i, j, k)*beta2L +
- PDupwindNth3(beta3, i, j, k)*beta3L)*ShiftAdvectionCoeff + B3L*ShiftGammaCoeff;
+ CCTK_REAL dtbetazL = (PDupwindNth1(beta3, i, j, k)*beta1L +
+ PDupwindNth2(beta3, i, j, k)*beta2L + PDupwindNth3(beta3, i, j,
+ k)*beta3L)*ShiftAdvectionCoeff + B3L*ShiftGammaCoeff;
/* Copy local copies back to grid functions */
@@ -160,8 +128,6 @@ void ML_BSSN_convertToADMBaseDtLapseShift_Body(cGH const * restrict const cctkGH
dtbetax[index] = dtbetaxL;
dtbetay[index] = dtbetayL;
dtbetaz[index] = dtbetazL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_convertToADMBaseDtLapseShift);
}
diff --git a/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c b/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c
index 06870f4..44874d5 100644
--- a/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c
+++ b/ML_BSSN/src/ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c
@@ -28,20 +28,6 @@ void ML_BSSN_convertToADMBaseDtLapseShiftBoundary_Body(cGH const * restrict cons
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_convertToADMBaseDtLapseShiftBoundary_Body");
@@ -94,49 +80,30 @@ void ML_BSSN_convertToADMBaseDtLapseShiftBoundary_Body(cGH const * restrict cons
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B2L = INITVALUE, B3L = INITVALUE;
- // CCTK_REAL dtalpL = INITVALUE;
- // CCTK_REAL dtbetaxL = INITVALUE;
- // CCTK_REAL dtbetayL = INITVALUE;
- // CCTK_REAL dtbetazL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const AL = A[index];
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const B1L = B1[index];
- CCTK_REAL const B2L = B2[index];
- CCTK_REAL const B3L = B3[index];
- CCTK_REAL const trKL = trK[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL AL = A[index];
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL B1L = B1[index];
+ CCTK_REAL B2L = B2[index];
+ CCTK_REAL B3L = B3[index];
+ CCTK_REAL trKL = trK[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const dtalpL = harmonicF*(AL*(-1 + LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
+ CCTK_REAL dtalpL = harmonicF*(AL*(-1 + LapseAdvectionCoeff) -
+ LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
- CCTK_REAL const dtbetaxL = B1L*ShiftGammaCoeff;
+ CCTK_REAL dtbetaxL = B1L*ShiftGammaCoeff;
- CCTK_REAL const dtbetayL = B2L*ShiftGammaCoeff;
+ CCTK_REAL dtbetayL = B2L*ShiftGammaCoeff;
- CCTK_REAL const dtbetazL = B3L*ShiftGammaCoeff;
+ CCTK_REAL dtbetazL = B3L*ShiftGammaCoeff;
/* Copy local copies back to grid functions */
@@ -144,8 +111,6 @@ void ML_BSSN_convertToADMBaseDtLapseShiftBoundary_Body(cGH const * restrict cons
dtbetax[index] = dtbetaxL;
dtbetay[index] = dtbetayL;
dtbetaz[index] = dtbetazL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_convertToADMBaseDtLapseShiftBoundary);
}
diff --git a/ML_BSSN/src/ML_BSSN_convertToADMBaseFakeDtLapseShift.c b/ML_BSSN/src/ML_BSSN_convertToADMBaseFakeDtLapseShift.c
index cae8455..b0f579b 100644
--- a/ML_BSSN/src/ML_BSSN_convertToADMBaseFakeDtLapseShift.c
+++ b/ML_BSSN/src/ML_BSSN_convertToADMBaseFakeDtLapseShift.c
@@ -28,20 +28,6 @@ void ML_BSSN_convertToADMBaseFakeDtLapseShift_Body(cGH const * restrict const cc
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_convertToADMBaseFakeDtLapseShift_Body");
@@ -94,49 +80,30 @@ void ML_BSSN_convertToADMBaseFakeDtLapseShift_Body(cGH const * restrict const cc
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
-
- /* Declare local copies of grid functions */
- // CCTK_REAL AL = INITVALUE;
- // CCTK_REAL alphaL = INITVALUE;
- // CCTK_REAL B1L = INITVALUE, B2L = INITVALUE, B3L = INITVALUE;
- // CCTK_REAL dtalpL = INITVALUE;
- // CCTK_REAL dtbetaxL = INITVALUE;
- // CCTK_REAL dtbetayL = INITVALUE;
- // CCTK_REAL dtbetazL = INITVALUE;
- // CCTK_REAL trKL = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const AL = A[index];
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const B1L = B1[index];
- CCTK_REAL const B2L = B2[index];
- CCTK_REAL const B3L = B3[index];
- CCTK_REAL const trKL = trK[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL AL = A[index];
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL B1L = B1[index];
+ CCTK_REAL B2L = B2[index];
+ CCTK_REAL B3L = B3[index];
+ CCTK_REAL trKL = trK[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const dtalpL = harmonicF*(AL*(-1 + LapseAdvectionCoeff) - LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
+ CCTK_REAL dtalpL = harmonicF*(AL*(-1 + LapseAdvectionCoeff) -
+ LapseAdvectionCoeff*trKL)*pow(alphaL,harmonicN);
- CCTK_REAL const dtbetaxL = B1L*ShiftGammaCoeff;
+ CCTK_REAL dtbetaxL = B1L*ShiftGammaCoeff;
- CCTK_REAL const dtbetayL = B2L*ShiftGammaCoeff;
+ CCTK_REAL dtbetayL = B2L*ShiftGammaCoeff;
- CCTK_REAL const dtbetazL = B3L*ShiftGammaCoeff;
+ CCTK_REAL dtbetazL = B3L*ShiftGammaCoeff;
/* Copy local copies back to grid functions */
@@ -144,8 +111,6 @@ void ML_BSSN_convertToADMBaseFakeDtLapseShift_Body(cGH const * restrict const cc
dtbetax[index] = dtbetaxL;
dtbetay[index] = dtbetayL;
dtbetaz[index] = dtbetazL;
-
- /* Copy local copies back to subblock grid functions */
}
LC_ENDLOOP3 (ML_BSSN_convertToADMBaseFakeDtLapseShift);
}
diff --git a/ML_BSSN/src/ML_BSSN_enforce.c b/ML_BSSN/src/ML_BSSN_enforce.c
index 6d58561..f9442ad 100644
--- a/ML_BSSN/src/ML_BSSN_enforce.c
+++ b/ML_BSSN/src/ML_BSSN_enforce.c
@@ -28,20 +28,6 @@ void ML_BSSN_enforce_Body(cGH const * restrict const cctkGH, int const dir, int
/* Declare finite differencing variables */
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
if (verbose > 1)
{
CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_enforce_Body");
@@ -94,89 +80,69 @@ void ML_BSSN_enforce_Body(cGH const * restrict const cctkGH, int const dir, int
cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
{
// int index = INITVALUE;
- // int subblock_index = INITVALUE;
int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
- // CCTK_REAL detgt = INITVALUE;
- // CCTK_REAL gtu11 = INITVALUE, gtu21 = INITVALUE, gtu22 = INITVALUE, gtu31 = INITVALUE, gtu32 = INITVALUE, gtu33 = INITVALUE;
- // CCTK_REAL trAt = INITVALUE;
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alphaL = INITVALUE, alpharhsL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At11rhsL = INITVALUE, At12L = INITVALUE, At12rhsL = INITVALUE, At13L = INITVALUE, At13rhsL = INITVALUE;
- // CCTK_REAL At22L = INITVALUE, At22rhsL = INITVALUE, At23L = INITVALUE, At23rhsL = INITVALUE, At33L = INITVALUE, At33rhsL = INITVALUE;
- // CCTK_REAL gt11L = INITVALUE, gt12L = INITVALUE, gt13L = INITVALUE, gt22L = INITVALUE, gt23L = INITVALUE, gt33L = INITVALUE;
- /* Declare precomputed derivatives*/
-
/* Declare derivatives */
/* Assign local copies of grid functions */
- CCTK_REAL const alphaL = alpha[index];
- CCTK_REAL const At11L = At11[index];
- CCTK_REAL const At12L = At12[index];
- CCTK_REAL const At13L = At13[index];
- CCTK_REAL const At22L = At22[index];
- CCTK_REAL const At23L = At23[index];
- CCTK_REAL const At33L = At33[index];
- CCTK_REAL const gt11L = gt11[index];
- CCTK_REAL const gt12L = gt12[index];
- CCTK_REAL const gt13L = gt13[index];
- CCTK_REAL const gt22L = gt22[index];
- CCTK_REAL const gt23L = gt23[index];
- CCTK_REAL const gt33L = gt33[index];
-
- /* Assign local copies of subblock grid functions */
+ CCTK_REAL alphaL = alpha[index];
+ CCTK_REAL At11L = At11[index];
+ CCTK_REAL At12L = At12[index];
+ CCTK_REAL At13L = At13[index];
+ CCTK_REAL At22L = At22[index];
+ CCTK_REAL At23L = At23[index];
+ CCTK_REAL At33L = At33[index];
+ CCTK_REAL gt11L = gt11[index];
+ CCTK_REAL gt12L = gt12[index];
+ CCTK_REAL gt13L = gt13[index];
+ CCTK_REAL gt22L = gt22[index];
+ CCTK_REAL gt23L = gt23[index];
+ CCTK_REAL gt33L = gt33[index];
/* Include user supplied include files */
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
+ /* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL const detgt = 1;
+ CCTK_REAL detgt = 1;
- CCTK_REAL const gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
+ CCTK_REAL gtu11 = INV(detgt)*(gt22L*gt33L - SQR(gt23L));
- CCTK_REAL const gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
+ CCTK_REAL gtu21 = (gt13L*gt23L - gt12L*gt33L)*INV(detgt);
- CCTK_REAL const gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
+ CCTK_REAL gtu31 = (-(gt13L*gt22L) + gt12L*gt23L)*INV(detgt);
- CCTK_REAL const gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
+ CCTK_REAL gtu22 = INV(detgt)*(gt11L*gt33L - SQR(gt13L));
- CCTK_REAL const gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
+ CCTK_REAL gtu32 = (gt12L*gt13L - gt11L*gt23L)*INV(detgt);
- CCTK_REAL const gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
+ CCTK_REAL gtu33 = INV(detgt)*(gt11L*gt22L - SQR(gt12L));
- CCTK_REAL const trAt = At11L*gtu11 + At22L*gtu22 + 2*(At12L*gtu21 + At13L*gtu31 + At23L*gtu32) + At33L*gtu33;
+ CCTK_REAL trAt = At11L*gtu11 + At22L*gtu22 + 2*(At12L*gtu21 +
+ At13L*gtu31 + At23L*gtu32) + At33L*gtu33;
- CCTK_REAL const At11rhsL = At11L - gt11L*kthird*trAt;
+ At11L = At11L - gt11L*kthird*trAt;
- CCTK_REAL const At12rhsL = At12L - gt12L*kthird*trAt;
+ At12L = At12L - gt12L*kthird*trAt;
- CCTK_REAL const At13rhsL = At13L - gt13L*kthird*trAt;
+ At13L = At13L - gt13L*kthird*trAt;
- CCTK_REAL const At22rhsL = At22L - gt22L*kthird*trAt;
+ At22L = At22L - gt22L*kthird*trAt;
- CCTK_REAL const At23rhsL = At23L - gt23L*kthird*trAt;
+ At23L = At23L - gt23L*kthird*trAt;
- CCTK_REAL const At33rhsL = At33L - gt33L*kthird*trAt;
+ At33L = At33L - gt33L*kthird*trAt;
- CCTK_REAL const alpharhsL = fmax(alphaL,MinimumLapse);
+ alphaL = fmax(alphaL,MinimumLapse);
/* Copy local copies back to grid functions */
- alpharhs[index] = alpharhsL;
- At11rhs[index] = At11rhsL;
- At12rhs[index] = At12rhsL;
- At13rhs[index] = At13rhsL;
- At22rhs[index] = At22rhsL;
- At23rhs[index] = At23rhsL;
- At33rhs[index] = At33rhsL;
-
- /* Copy local copies back to subblock grid functions */
+ alpha[index] = alphaL;
+ At11[index] = At11L;
+ At12[index] = At12L;
+ At13[index] = At13L;
+ At22[index] = At22L;
+ At23[index] = At23L;
+ At33[index] = At33L;
}
LC_ENDLOOP3 (ML_BSSN_enforce);
}
diff --git a/ML_BSSN/src/ML_BSSN_enforce2.c b/ML_BSSN/src/ML_BSSN_enforce2.c
deleted file mode 100644
index 348c0da..0000000
--- a/ML_BSSN/src/ML_BSSN_enforce2.c
+++ /dev/null
@@ -1,164 +0,0 @@
-/* File produced by Kranc */
-
-#define KRANC_C
-
-#include <assert.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include "cctk.h"
-#include "cctk_Arguments.h"
-#include "cctk_Parameters.h"
-#include "GenericFD.h"
-#include "Differencing.h"
-#include "loopcontrol.h"
-
-/* Define macros used in calculations */
-#define INITVALUE (42)
-#define INV(x) ((1.0) / (x))
-#define SQR(x) ((x) * (x))
-#define CUB(x) ((x) * (x) * (x))
-#define QAD(x) ((x) * (x) * (x) * (x))
-
-void ML_BSSN_enforce2_Body(cGH const * restrict const cctkGH, int const dir, int const face, CCTK_REAL const normal[3], CCTK_REAL const tangentA[3], CCTK_REAL const tangentB[3], int const min[3], int const max[3], int const n_subblock_gfs, CCTK_REAL * restrict const subblock_gfs[])
-{
- DECLARE_CCTK_ARGUMENTS;
- DECLARE_CCTK_PARAMETERS;
-
-
- /* Declare finite differencing variables */
-
- /* Declare predefined quantities */
- // CCTK_REAL p1o12dx = INITVALUE;
- // CCTK_REAL p1o12dy = INITVALUE;
- // CCTK_REAL p1o12dz = INITVALUE;
- // CCTK_REAL p1o144dxdy = INITVALUE;
- // CCTK_REAL p1o144dxdz = INITVALUE;
- // CCTK_REAL p1o144dydz = INITVALUE;
- // CCTK_REAL p1odx = INITVALUE;
- // CCTK_REAL p1ody = INITVALUE;
- // CCTK_REAL p1odz = INITVALUE;
- // CCTK_REAL pm1o12dx2 = INITVALUE;
- // CCTK_REAL pm1o12dy2 = INITVALUE;
- // CCTK_REAL pm1o12dz2 = INITVALUE;
-
- if (verbose > 1)
- {
- CCTK_VInfo(CCTK_THORNSTRING,"Entering ML_BSSN_enforce2_Body");
- }
-
- if (cctk_iteration % ML_BSSN_enforce2_calc_every != ML_BSSN_enforce2_calc_offset)
- {
- return;
- }
-
- /* Include user-supplied include files */
-
- /* Initialise finite differencing variables */
- CCTK_REAL const dx = CCTK_DELTA_SPACE(0);
- CCTK_REAL const dy = CCTK_DELTA_SPACE(1);
- CCTK_REAL const dz = CCTK_DELTA_SPACE(2);
- int const di = 1;
- int const dj = CCTK_GFINDEX3D(cctkGH,0,1,0) - CCTK_GFINDEX3D(cctkGH,0,0,0);
- int const dk = CCTK_GFINDEX3D(cctkGH,0,0,1) - CCTK_GFINDEX3D(cctkGH,0,0,0);
- CCTK_REAL const dxi = 1.0 / dx;
- CCTK_REAL const dyi = 1.0 / dy;
- CCTK_REAL const dzi = 1.0 / dz;
- CCTK_REAL const khalf = 0.5;
- CCTK_REAL const kthird = 1/3.0;
- CCTK_REAL const ktwothird = 2.0/3.0;
- CCTK_REAL const kfourthird = 4.0/3.0;
- CCTK_REAL const keightthird = 8.0/3.0;
- CCTK_REAL const hdxi = 0.5 * dxi;
- CCTK_REAL const hdyi = 0.5 * dyi;
- CCTK_REAL const hdzi = 0.5 * dzi;
-
- /* Initialize predefined quantities */
- CCTK_REAL const p1o12dx = INV(dx)/12.;
- CCTK_REAL const p1o12dy = INV(dy)/12.;
- CCTK_REAL const p1o12dz = INV(dz)/12.;
- CCTK_REAL const p1o144dxdy = (INV(dx)*INV(dy))/144.;
- CCTK_REAL const p1o144dxdz = (INV(dx)*INV(dz))/144.;
- CCTK_REAL const p1o144dydz = (INV(dy)*INV(dz))/144.;
- CCTK_REAL const p1odx = INV(dx);
- CCTK_REAL const p1ody = INV(dy);
- CCTK_REAL const p1odz = INV(dz);
- CCTK_REAL const pm1o12dx2 = -pow(dx,-2)/12.;
- CCTK_REAL const pm1o12dy2 = -pow(dy,-2)/12.;
- CCTK_REAL const pm1o12dz2 = -pow(dz,-2)/12.;
-
- /* Loop over the grid points */
- #pragma omp parallel
- LC_LOOP3 (ML_BSSN_enforce2,
- i,j,k, min[0],min[1],min[2], max[0],max[1],max[2],
- cctk_lsh[0],cctk_lsh[1],cctk_lsh[2])
- {
- // int index = INITVALUE;
- // int subblock_index = INITVALUE;
- int const index = CCTK_GFINDEX3D(cctkGH,i,j,k);
- int const subblock_index = i - min[0] + (max[0] - min[0]) * (j - min[1] + (max[1]-min[1]) * (k - min[2]));
-
- /* Declare shorthands */
-
- /* Declare local copies of grid functions */
- // CCTK_REAL alphaL = INITVALUE, alpharhsL = INITVALUE;
- // CCTK_REAL At11L = INITVALUE, At11rhsL = INITVALUE, At12L = INITVALUE, At12rhsL = INITVALUE, At13L = INITVALUE, At13rhsL = INITVALUE;
- // CCTK_REAL At22L = INITVALUE, At22rhsL = INITVALUE, At23L = INITVALUE, At23rhsL = INITVALUE, At33L = INITVALUE, At33rhsL = INITVALUE;
- /* Declare precomputed derivatives*/
-
- /* Declare derivatives */
-
- /* Assign local copies of grid functions */
- CCTK_REAL const alpharhsL = alpharhs[index];
- CCTK_REAL const At11rhsL = At11rhs[index];
- CCTK_REAL const At12rhsL = At12rhs[index];
- CCTK_REAL const At13rhsL = At13rhs[index];
- CCTK_REAL const At22rhsL = At22rhs[index];
- CCTK_REAL const At23rhsL = At23rhs[index];
- CCTK_REAL const At33rhsL = At33rhs[index];
-
- /* Assign local copies of subblock grid functions */
-
- /* Include user supplied include files */
-
- /* Precompute derivatives (new style) */
-
- /* Precompute derivatives (old style) */
-
- /* Calculate temporaries and grid functions */
- CCTK_REAL const At11L = At11rhsL;
-
- CCTK_REAL const At12L = At12rhsL;
-
- CCTK_REAL const At13L = At13rhsL;
-
- CCTK_REAL const At22L = At22rhsL;
-
- CCTK_REAL const At23L = At23rhsL;
-
- CCTK_REAL const At33L = At33rhsL;
-
- CCTK_REAL const alphaL = alpharhsL;
-
-
- /* Copy local copies back to grid functions */
- alpha[index] = alphaL;
- At11[index] = At11L;
- At12[index] = At12L;
- At13[index] = At13L;
- At22[index] = At22L;
- At23[index] = At23L;
- At33[index] = At33L;
-
- /* Copy local copies back to subblock grid functions */
- }
- LC_ENDLOOP3 (ML_BSSN_enforce2);
-}
-
-void ML_BSSN_enforce2(CCTK_ARGUMENTS)
-{
- DECLARE_CCTK_ARGUMENTS;
- DECLARE_CCTK_PARAMETERS;
-
- GenericFD_LoopOverEverything(cctkGH, &ML_BSSN_enforce2_Body);
-}
diff --git a/ML_BSSN/src/make.code.defn b/ML_BSSN/src/make.code.defn
index e78720b..4132fcc 100644
--- a/ML_BSSN/src/make.code.defn
+++ b/ML_BSSN/src/make.code.defn
@@ -1,3 +1,3 @@
# File produced by Kranc
-SRCS = Startup.c RegisterMoL.c RegisterSymmetries.c ML_BSSN_Minkowski.c ML_BSSN_convertFromADMBase.c ML_BSSN_convertFromADMBaseGamma.c ML_BSSN_RHS.c ML_BSSN_RHS1.c ML_BSSN_RHS2.c ML_BSSN_RHSStaticBoundary.c ML_BSSN_RHSRadiativeBoundary.c ML_BSSN_enforce.c ML_BSSN_enforce2.c ML_BSSN_boundary.c ML_BSSN_convertToADMBase.c ML_BSSN_convertToADMBaseDtLapseShift.c ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c ML_BSSN_convertToADMBaseFakeDtLapseShift.c ML_BSSN_constraints.c ML_BSSN_constraints_boundary.c Boundaries.c
+SRCS = Startup.c RegisterMoL.c RegisterSymmetries.c ML_BSSN_Minkowski.c ML_BSSN_convertFromADMBase.c ML_BSSN_convertFromADMBaseGamma.c ML_BSSN_RHS.c ML_BSSN_RHS1.c ML_BSSN_RHS2.c ML_BSSN_RHSStaticBoundary.c ML_BSSN_RHSRadiativeBoundary.c ML_BSSN_enforce.c ML_BSSN_boundary.c ML_BSSN_convertToADMBase.c ML_BSSN_convertToADMBaseDtLapseShift.c ML_BSSN_convertToADMBaseDtLapseShiftBoundary.c ML_BSSN_convertToADMBaseFakeDtLapseShift.c ML_BSSN_constraints.c ML_BSSN_constraints_boundary.c Boundaries.c