diff options
-rw-r--r-- | src/vZ/RKF45.hpp | 2 | ||||
-rw-r--r-- | tests/RKF45.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vZ/RKF45.hpp b/src/vZ/RKF45.hpp index 5d40b88..5c558b7 100644 --- a/src/vZ/RKF45.hpp +++ b/src/vZ/RKF45.hpp @@ -45,7 +45,7 @@ namespace vZ typedef typename GenericAdaptiveIntegrator<Y>::Function Function; GenericRKF45Integrator(Function f) - : GenericAdaptiveIntegrator<Y>(f, 3, s_a, s_b, s_bStar) { } + : GenericAdaptiveIntegrator<Y>(f, 5, s_a, s_b, s_bStar) { } ~GenericRKF45Integrator() { } private: diff --git a/tests/RKF45.cpp b/tests/RKF45.cpp index e2764cf..a3cd259 100644 --- a/tests/RKF45.cpp +++ b/tests/RKF45.cpp @@ -30,7 +30,7 @@ main() << "Rejections: " << integrator.rejections() << std::endl; double error = std::fabs(expected - actual)/expected; - if (error > 1.5e-6) { + if (error > 1.7e-6) { std::cerr << "Error: " << 100.0*error << "%" << std::endl; return EXIT_FAILURE; } else { |