aboutsummaryrefslogtreecommitdiff
path: root/ML_ADM/src/ML_ADM_boundary.cc
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2011-06-09 17:31:56 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2011-06-09 17:31:56 +0200
commit863a3e5b25e7150148f9d2b60b4b362628c675f7 (patch)
treecabc39bebecf54d332040bd16e83498a5c0240cf /ML_ADM/src/ML_ADM_boundary.cc
parentcc47256a37539e1e13f0cda2a003292a72c7aea1 (diff)
Regenerate code
This was regenerated with commit 66668c409754acc1f76ed50118d8831fc3992c59 of Kranc and passes all existing test suites.
Diffstat (limited to 'ML_ADM/src/ML_ADM_boundary.cc')
-rw-r--r--ML_ADM/src/ML_ADM_boundary.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/ML_ADM/src/ML_ADM_boundary.cc b/ML_ADM/src/ML_ADM_boundary.cc
index 790928b..bc59bfa 100644
--- a/ML_ADM/src/ML_ADM_boundary.cc
+++ b/ML_ADM/src/ML_ADM_boundary.cc
@@ -6,6 +6,7 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
@@ -62,15 +63,20 @@ static void ML_ADM_boundary_Body(cGH const * restrict const cctkGH, int const di
const char *groups[] = {"ML_ADM::ML_curv","ML_ADM::ML_lapse","ML_ADM::ML_metric","ML_ADM::ML_shift"};
GenericFD_AssertGroupStorage(cctkGH, "ML_ADM_boundary", 4, groups);
+
/* Include user-supplied include files */
/* Initialise finite differencing variables */
ptrdiff_t const di = 1;
ptrdiff_t const dj = CCTK_GFINDEX3D(cctkGH,0,1,0) - CCTK_GFINDEX3D(cctkGH,0,0,0);
ptrdiff_t const dk = CCTK_GFINDEX3D(cctkGH,0,0,1) - CCTK_GFINDEX3D(cctkGH,0,0,0);
+ ptrdiff_t const cdi = sizeof(CCTK_REAL) * di;
+ ptrdiff_t const cdj = sizeof(CCTK_REAL) * dj;
+ ptrdiff_t const cdk = sizeof(CCTK_REAL) * dk;
CCTK_REAL const dx = ToReal(CCTK_DELTA_SPACE(0));
CCTK_REAL const dy = ToReal(CCTK_DELTA_SPACE(1));
CCTK_REAL const dz = ToReal(CCTK_DELTA_SPACE(2));
+ CCTK_REAL const dt = ToReal(CCTK_DELTA_TIME);
CCTK_REAL const dxi = INV(dx);
CCTK_REAL const dyi = INV(dy);
CCTK_REAL const dzi = INV(dz);
@@ -104,6 +110,8 @@ static void ML_ADM_boundary_Body(cGH const * restrict const cctkGH, int const di
/* Assign local copies of grid functions */
+
+
/* Include user supplied include files */
/* Precompute derivatives */
@@ -141,7 +149,6 @@ static void ML_ADM_boundary_Body(cGH const * restrict const cctkGH, int const di
CCTK_REAL beta3L = 0;
-
/* Copy local copies back to grid functions */
alpha[index] = alphaL;
beta1[index] = beta1L;