aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc')
-rw-r--r--Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc b/Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc
index fcf4d710f..d48380659 100644
--- a/Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc
+++ b/Carpet/CarpetLib/src/prolongate_3d_o7_rf2.cc
@@ -35,16 +35,15 @@ namespace CarpetLib {
RT
coeff (int const i)
{
- RT const one = 1;
static const RT coeffs[ncoeffs] = {
- - 5*one/2048,
- 49*one/2048,
- - 245*one/2048,
- 1225*one/2048,
- 1225*one/2048,
- - 245*one/2048,
- 49*one/2048,
- - 5*one/2048
+ - 5/RT(2048.0),
+ 49/RT(2048.0),
+ - 245/RT(2048.0),
+ 1225/RT(2048.0),
+ 1225/RT(2048.0),
+ - 245/RT(2048.0),
+ 49/RT(2048.0),
+ - 5/RT(2048.0)
};
return coeffs[i];
}