summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stokes.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/stokes.hpp b/stokes.hpp
index b511b0d..d86b479 100644
--- a/stokes.hpp
+++ b/stokes.hpp
@@ -33,7 +33,7 @@ public:
Real dgCoeff(unsigned i, Real t) const {
Real x = 2 * t - 1;
- return ((i - 1) * x * std::legendre(i, x) - (i + 1) * std::legendre(i + 1, x)) / 2.0;
+ return ((i - 1.0) * x * std::legendre(i, x) - (i + 1) * std::legendre(i + 1, x)) / 2.0;
}
Vector<Scalar> f(Real t) const {