Passing a Class Member Function to dodesol
Hi,
How can I pass a class member function to the ODE solver. I need to do this because my rhs function is dependent on data from the class.
class Foo {
void rhs(...) {
rhs[0] = classdata * y[0] ....
...
}
void updat_class_data() {
classdata = .......
}
void solve_ode_system() {
...
dodesol(..........., rhs, .......);
}
double classdata;
}
Many thanks
Gennadiy



