summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-07 01:47:25 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-07 01:47:25 -0400
commit1f25636c64f0a7c07fa268c0d66c084948b2dd15 (patch)
treeb95e27a44beb05c27610fd6c44aa428ce25d935c
parent6dd3df3def47d0555a1e78cbe936eb8d083bb756 (diff)
downloadvz-1f25636c64f0a7c07fa268c0d66c084948b2dd15.tar.xz
Fix order parameter for RKF45.
-rw-r--r--src/vZ/RKF45.hpp2
-rw-r--r--tests/RKF45.cpp2
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 {