diff options
Diffstat (limited to 'Examples/WaveHost/src/calc_bound_rhs.cc')
-rw-r--r-- | Examples/WaveHost/src/calc_bound_rhs.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Examples/WaveHost/src/calc_bound_rhs.cc b/Examples/WaveHost/src/calc_bound_rhs.cc index 0fe2b38..7c58500 100644 --- a/Examples/WaveHost/src/calc_bound_rhs.cc +++ b/Examples/WaveHost/src/calc_bound_rhs.cc @@ -17,10 +17,10 @@ /* Define macros used in calculations */ #define INITVALUE (42) -#define QAD(x) (SQR(SQR(x))) -#define INV(x) ((1.0) / (x)) +#define INV(x) ((CCTK_REAL)1.0 / (x)) #define SQR(x) ((x) * (x)) -#define CUB(x) ((x) * (x) * (x)) +#define CUB(x) ((x) * SQR(x)) +#define QAD(x) (SQR(SQR(x))) extern "C" void calc_bound_rhs_SelectBCs(CCTK_ARGUMENTS) { @@ -101,7 +101,7 @@ static void calc_bound_rhs_Body(cGH const * restrict const cctkGH, int const dir #pragma omp parallel CCTK_LOOP3(calc_bound_rhs, i,j,k, imin[0],imin[1],imin[2], imax[0],imax[1],imax[2], - cctk_lsh[0],cctk_lsh[1],cctk_lsh[2]) + cctk_ash[0],cctk_ash[1],cctk_ash[2]) { ptrdiff_t const index = di*i + dj*j + dk*k; |