From b9afb13de34b495956d5b0cee712e949052bfba8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 6 Oct 2010 09:53:00 -0400 Subject: Don't use 'Real' for the template parameter. We could be dealing with vectors, etc. --- src/vZ/simple.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/vZ/simple.hpp') diff --git a/src/vZ/simple.hpp b/src/vZ/simple.hpp index 65b7560..3b02472 100644 --- a/src/vZ/simple.hpp +++ b/src/vZ/simple.hpp @@ -26,23 +26,23 @@ namespace vZ { // Base class for non-adaptive RK-style algorithms - template - class GenericSimpleIntegrator : public GenericIntegrator + template + class GenericSimpleIntegrator : public GenericIntegrator { public: - typedef typename GenericIntegrator::Function Function; + typedef typename GenericIntegrator::Function Function; // Coefficients in the tableau representation of the RK algorithm - typedef std::vector > ACoefficients; - typedef std::vector BCoefficients; + typedef std::vector > ACoefficients; + typedef std::vector BCoefficients; - GenericSimpleIntegrator(Function f, Real dt, + GenericSimpleIntegrator(Function f, T dt, ACoefficients a, BCoefficients b) - : GenericIntegrator(f, dt), m_a(a), m_b(b) { } + : GenericIntegrator(f, dt), m_a(a), m_b(b) { } virtual ~GenericSimpleIntegrator() { } protected: - virtual void step(Real& t, Real& dt); + virtual void step(T& t, T& dt); private: ACoefficients m_a; -- cgit v1.2.3