Skip to content

Commit eaccbf5

Browse files
Starting implementation of micro driver
1 parent c7e7728 commit eaccbf5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

native/include/m_driver.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,19 @@ class Driver {
99
virtual ~Driver() {std::cout << "Killing base Driver\n";};
1010
// Will get the parameters from a simulation class
1111
void _setup(MicroSim * sim);
12+
13+
double * alpha;
14+
double gamma;
15+
double t;
16+
};
17+
18+
19+
class Integrator_RK4 {
20+
public:
21+
Integrator_RK4() {};
22+
virtual ~Integrator_RK4() {std::cout << "Killing RK4 integrator\n";};
23+
// Will get the parameters from a simulation class
24+
// void _setup(MicroSim * sim, Driver * driver);
25+
std::vector<double> rk_steps; // N * 4 array
26+
void integration_step(double (*f)(double t, double y));
1227
};

0 commit comments

Comments
 (0)