summaryrefslogtreecommitdiffstats
path: root/src/vZ/simple.hpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-06 09:53:00 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-06 09:53:00 -0400
commitb9afb13de34b495956d5b0cee712e949052bfba8 (patch)
tree7f931e9bedf938bf3373139da2f4cfc47a58072f /src/vZ/simple.hpp
parent53b7d03b39ae30bcca53dc294f213e6d455943f7 (diff)
downloadvz-b9afb13de34b495956d5b0cee712e949052bfba8.tar.xz
Don't use 'Real' for the template parameter.
We could be dealing with vectors, etc.
Diffstat (limited to 'src/vZ/simple.hpp')
-rw-r--r--src/vZ/simple.hpp16
1 files changed, 8 insertions, 8 deletions
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 <typename Real>
- class GenericSimpleIntegrator : public GenericIntegrator<Real>
+ template <typename T>
+ class GenericSimpleIntegrator : public GenericIntegrator<T>
{
public:
- typedef typename GenericIntegrator<Real>::Function Function;
+ typedef typename GenericIntegrator<T>::Function Function;
// Coefficients in the tableau representation of the RK algorithm
- typedef std::vector<std::vector<Real> > ACoefficients;
- typedef std::vector<Real> BCoefficients;
+ typedef std::vector<std::vector<T> > ACoefficients;
+ typedef std::vector<T> BCoefficients;
- GenericSimpleIntegrator(Function f, Real dt,
+ GenericSimpleIntegrator(Function f, T dt,
ACoefficients a, BCoefficients b)
- : GenericIntegrator<Real>(f, dt), m_a(a), m_b(b) { }
+ : GenericIntegrator<T>(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;