aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-08-21 13:59:18 -0400
committerErik Schnetter <schnetter@gmail.com>2013-08-21 13:59:18 -0400
commit737235b0e507f0b459ae907ca0dda9f7ed595198 (patch)
tree8318f9d7f72d6e8b4586c94facfc5e6c05a2606a /Carpet
parent493f90970931ccdc8421bf5882bb14237508f70c (diff)
CarpetInterp2: Explicitly convert values to CCTK_REAL
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc
index 167af0e2b..be785ae52 100644
--- a/Carpet/CarpetInterp2/src/fasterp.cc
+++ b/Carpet/CarpetInterp2/src/fasterp.cc
@@ -605,8 +605,8 @@ namespace CarpetInterp2 {
rvect const offset = iloc.offset - rvect(iorigin);
//cout << "Left " << iorigin << " " << iloc.offset << " " << offset << endl;
// Ensure that interpolation point is between second and third point
- assert (all (offset >= 1.0 and
- offset <= 2.0));
+ assert (all (offset >= CCTK_REAL(1.0) and
+ offset <= CCTK_REAL(2.0)));
for (int d=0; d<dim; ++d) {
// C_n = PRODUCT_m,m!=n [(x - x_m) / (x_n - x_m)]
@@ -681,8 +681,8 @@ namespace CarpetInterp2 {
rvect const offset = iloc.offset - rvect(iorigin);
//cout << "Right " << iorigin << " " << iloc.offset << " " << offset << endl;
// Ensure that the interpolation point is between first and second point
- assert (all (offset >= 0.0 and
- offset <= 1.0));
+ assert (all (offset >= CCTK_REAL(0.0) and
+ offset <= CCTK_REAL(1.0)));
for (int d=0; d<dim; ++d) {
// C_n = PRODUCT_m,m!=n [(x - x_m) / (x_n - x_m)]