aboutsummaryrefslogtreecommitdiff
path: root/ML_WaveToy
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-11-19 17:24:58 +0100
committerIan Hinder <ian.hinder@aei.mpg.de>2012-11-19 17:24:58 +0100
commitb19621c279744d4d3eff3b575f9b277419f07c7c (patch)
treed93a1d7b7841f65a52e27829bedf83a16b6584cd /ML_WaveToy
parenteaf08e4235c0f0d5dfcea5640feb3c51a055627a (diff)
Regenerate code (Kranc commit 17deb8b4ff45a8a3cd1645cb626f6d33a5e17beb)
Diffstat (limited to 'ML_WaveToy')
-rw-r--r--ML_WaveToy/src/WT_Gaussian.cc2
-rw-r--r--ML_WaveToy/src/WT_Standing.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/ML_WaveToy/src/WT_Gaussian.cc b/ML_WaveToy/src/WT_Gaussian.cc
index b8862a5..2c8f46a 100644
--- a/ML_WaveToy/src/WT_Gaussian.cc
+++ b/ML_WaveToy/src/WT_Gaussian.cc
@@ -98,7 +98,7 @@ static void WT_Gaussian_Body(cGH const * restrict const cctkGH, int const dir, i
/* Calculate temporaries and grid functions */
CCTK_REAL_VEC uL =
- kmul(kexp(kdiv(kmul(kmul(rL,rL),ToReal(-0.5)),ToReal(ScalarSQR(width)))),ToReal(amplitude));
+ kmul(kexp(kmul(kmul(kmul(rL,rL),ToReal(-0.5)),ToReal(ScalarINV(ScalarSQR(width))))),ToReal(amplitude));
CCTK_REAL_VEC rhoL = ToReal(0);
diff --git a/ML_WaveToy/src/WT_Standing.cc b/ML_WaveToy/src/WT_Standing.cc
index bda635f..a3d0fa6 100644
--- a/ML_WaveToy/src/WT_Standing.cc
+++ b/ML_WaveToy/src/WT_Standing.cc
@@ -99,7 +99,7 @@ static void WT_Standing_Body(cGH const * restrict const cctkGH, int const dir, i
/* Precompute derivatives */
/* Calculate temporaries and grid functions */
- CCTK_REAL_VEC k = kdiv(ToReal(Pi),ToReal(width));
+ CCTK_REAL_VEC k = ToReal(Pi*ScalarINV(width));
CCTK_REAL_VEC omega = ksqrt(kmul(kmul(k,k),ToReal(3)));