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. --- src/vZ/Adaptive.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vZ') diff --git a/src/vZ/Adaptive.hpp b/src/vZ/Adaptive.hpp index 864b038..74de0db 100644 --- a/src/vZ/Adaptive.hpp +++ b/src/vZ/Adaptive.hpp @@ -33,6 +33,8 @@ namespace vZ typedef typename GenericRKIntegrator::Scalar Scalar; typedef typename GenericRKIntegrator::Function Function; + GenericAdaptiveIntegrator& tol(Scalar tol) + { m_atol = tol; m_rtol = tol; return *this; } GenericAdaptiveIntegrator& atol(Scalar tol) { m_atol = tol; return *this; } GenericAdaptiveIntegrator& rtol(Scalar tol) { m_rtol = tol; return *this; } -- cgit v1.2.3