23 #ifndef _LSODE_INTEGRATOR_H_
24 #define _LSODE_INTEGRATOR_H_
26 #include "root_finding_integrator.h"
30 extern bool odePackInUse;
51 static void fzdot(
int* neq,
double* t,
double* z_,
double* zd_);
70 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
71 void setMinimumStepSize(
double dtMin_) {
dtMin = dtMin_; }
73 void setAbsoluteTolerance(
double aTol_) {
aTol =
fmatvec::Vec(1,fmatvec::INIT,aTol_); }
75 void setRelativeTolerance(
double rTol_) {
rTol =
fmatvec::Vec(1,fmatvec::INIT,rTol_); }
76 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
77 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
78 void setMethod(Method method_) {
method = method_; }
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: lsode_integrator.cc:247
fmatvec::Vec aTol
Definition: lsode_integrator.h:58
double dtMax
Definition: lsode_integrator.h:54
Vector< Ref, double > Vec
fmatvec::Vec rTol
Definition: lsode_integrator.h:60
Integrator with root-finding.
Definition: root_finding_integrator.h:32
Hindmarsh’s ODE solver LSODE.
Definition: lsode_integrator.h:39
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Method method
Definition: lsode_integrator.h:66
double dt0
Definition: lsode_integrator.h:62
double dtMin
Definition: lsode_integrator.h:56
void integrate()
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: lsode_integrator.cc:53
int maxSteps
Definition: lsode_integrator.h:64