23 #ifndef _LSODI_INTEGRATOR_H_ 24 #define _LSODI_INTEGRATOR_H_ 26 #include "root_finding_integrator.h" 30 extern bool odePackInUse;
50 typedef void (*Res)(
int* neq,
double* t,
double* z_,
double* zd_,
double* res_,
int* ires);
52 static void resODE(
int* neq,
double* t,
double* z_,
double* zd_,
double* res_,
int* ires);
53 static void resDAE2(
int* neq,
double* t,
double* y_,
double* yd_,
double* res_,
int* ires);
54 static void resGGL(
int* neq,
double* t,
double* y_,
double* yd_,
double* res_,
int* ires);
55 static void adda(
int *neq,
double* t,
double* y_,
int* ml,
int* mu,
double* P,
int* nrowp);
79 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
80 void setMinimumStepSize(
double dtMin_) {
dtMin = dtMin_; }
82 void setAbsoluteTolerance(
double aTol_) {
aTol.resize(1,fmatvec::INIT,aTol_); }
84 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_); }
85 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
86 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
87 void setFormalism(Formalism formalism_) {
formalism = formalism_; }
88 void setExcludeAlgebraicVariablesFromErrorTest(
bool excludeAlgebraicVariables_) {
excludeAlgebraicVariables = excludeAlgebraicVariables_; }
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: lsodi_integrator.cc:356
Hindmarsh’s ODE solver LSODI.
Definition: lsodi_integrator.h:39
double dtMax
Definition: lsodi_integrator.h:60
void integrate()
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: lsodi_integrator.cc:96
int maxSteps
Definition: lsodi_integrator.h:70
Integrator with root-finding.
Definition: root_finding_integrator.h:32
double dt0
Definition: lsodi_integrator.h:68
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
bool excludeAlgebraicVariables
Definition: lsodi_integrator.h:74
fmatvec::Vec aTol
Definition: lsodi_integrator.h:64
Formalism formalism
Definition: lsodi_integrator.h:72
double dtMin
Definition: lsodi_integrator.h:62
fmatvec::Vec rTol
Definition: lsodi_integrator.h:66
namespace MBSim
Definition: eigenanalyzer.cc:47