Skip to content

Commit

Permalink
Starting implementation of micro driver
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcortesortuno committed Jul 29, 2019
1 parent c7e7728 commit eaccbf5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions native/include/m_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<double> rk_steps; // N * 4 array
void integration_step(double (*f)(double t, double y));
};

0 comments on commit eaccbf5

Please sign in to comment.