From 25cc2bf981d52f0c7688b1e380b795f0cda8a852 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 6 Oct 2010 21:52:59 -0400 Subject: Add AdaptiveIntegrator::tol() method to adjust both tolerances at once. --- tests/HE12.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/HE12.cpp') 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); -- cgit v1.2.3