diff options
-rw-r--r-- | stokes.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |