From eaccbf5ddd68f1c965ce8e97897bfa93563fae15 Mon Sep 17 00:00:00 2001 From: davidcortesortuno Date: Mon, 29 Jul 2019 13:44:00 +0100 Subject: [PATCH] Starting implementation of micro driver --- native/include/m_driver.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/native/include/m_driver.h b/native/include/m_driver.h index 3cbf9c71..8ae042d0 100644 --- a/native/include/m_driver.h +++ b/native/include/m_driver.h @@ -9,4 +9,19 @@ class Driver { virtual ~Driver() {std::cout << "Killing base Driver\n";}; // Will get the parameters from a simulation class void _setup(MicroSim * sim); + + double * alpha; + double gamma; + double t; +}; + + +class Integrator_RK4 { +public: + Integrator_RK4() {}; + virtual ~Integrator_RK4() {std::cout << "Killing RK4 integrator\n";}; + // Will get the parameters from a simulation class + // void _setup(MicroSim * sim, Driver * driver); + std::vector rk_steps; // N * 4 array + void integration_step(double (*f)(double t, double y)); };