summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-06 21:52:59 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-06 21:52:59 -0400
commit25cc2bf981d52f0c7688b1e380b795f0cda8a852 (patch)
treee88a72cd50f93cbf472ad83d449a26a1d5a342db /tests
parentf1983adb487bb531c1c68226596b26eebf99876a (diff)
downloadvz-25cc2bf981d52f0c7688b1e380b795f0cda8a852.tar.xz
Add AdaptiveIntegrator::tol() method to adjust both tolerances at once.
Diffstat (limited to 'tests')
-rw-r--r--tests/HE12.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/HE12.cpp b/tests/HE12.cpp
index 9a556ef..44d6943 100644
--- a/tests/HE12.cpp
+++ b/tests/HE12.cpp
@@ -14,9 +14,8 @@ f(double t, double y)
int
main()
{
- double tol = 1e-6;
vZ::HE12Integrator integrator(f);
- integrator.atol(tol).rtol(tol).y(1.0).x(0.0).h(0.02);
+ integrator.tol(1e-6).y(1.0).x(0.0).h(0.02);
integrator.integrate(2.0);