diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-10-06 09:56:51 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-10-06 09:56:51 -0400 |
commit | c0b4cb84e36bb86bab51a12736a33117daad1c9e (patch) | |
tree | c859d7171b7bdd60819365516402fb9405decdd7 /src | |
parent | b9afb13de34b495956d5b0cee712e949052bfba8 (diff) | |
download | vz-c0b4cb84e36bb86bab51a12736a33117daad1c9e.tar.xz |
Make {A,B}Coefficients types protected.
Diffstat (limited to 'src')
-rw-r--r-- | src/vZ/simple.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vZ/simple.hpp b/src/vZ/simple.hpp index 3b02472..706b52c 100644 --- a/src/vZ/simple.hpp +++ b/src/vZ/simple.hpp @@ -29,13 +29,14 @@ namespace vZ template <typename T> class GenericSimpleIntegrator : public GenericIntegrator<T> { - public: - typedef typename GenericIntegrator<T>::Function Function; - + protected: // Coefficients in the tableau representation of the RK algorithm typedef std::vector<std::vector<T> > ACoefficients; typedef std::vector<T> BCoefficients; + public: + typedef typename GenericIntegrator<T>::Function Function; + GenericSimpleIntegrator(Function f, T dt, ACoefficients a, BCoefficients b) : GenericIntegrator<T>(f, dt), m_a(a), m_b(b) { } |