From 8db79850e505f41459e71d58685f13db4f8a6674 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Tue, 23 Nov 2021 15:19:54 +0100 Subject: Fixed bug in previous commit due to unsigned int underflow. --- stokes.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f(Real t) const { -- cgit v1.2.3-70-g09d2