23#ifndef _LSODA_INTEGRATOR_H_
24#define _LSODA_INTEGRATOR_H_
26#include "implicit_integrator.h"
30 extern bool odePackInUse;
43 double delta(
int i,
double z)
const override;
44 static void fzdot(
int* neq,
double* t,
double* z_,
double* zd_);
45 static void jac(
int *neq,
double* t,
double* z_,
int* ml,
int* mu,
double* J_,
int* nrowp);
66 std::exception_ptr exception;
70 void setMaximumStepSize(
double dtMax_) {
dtMax = dtMax_; }
71 void setMinimumStepSize(
double dtMin_) {
dtMin = dtMin_; }
72 void setAbsoluteTolerance(
const fmatvec::Vec &aTol_) {
aTol <<= aTol_; }
73 void setAbsoluteTolerance(
double aTol_) {
aTol.resize(1,fmatvec::INIT,aTol_); }
74 void setRelativeTolerance(
const fmatvec::Vec &rTol_) {
rTol <<= rTol_; }
75 void setRelativeTolerance(
double rTol_) {
rTol.resize(1,fmatvec::INIT,rTol_); }
76 void setInitialStepSize(
double dt0_) {
dt0 = dt0_; }
77 void setStepLimit(
int maxSteps_) {
maxSteps = maxSteps_; }
Base class for all implicit integrators.
Definition: implicit_integrator.h:34
virtual void integrate()=0
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Hindmarsh’s ODE solver LSODA.
Definition: lsoda_integrator.h:40
void integrate()
start the integration of the system set by setSystem. Each class implemeting this function should cal...
Definition: lsoda_integrator.cc:91
int maxSteps
Definition: lsoda_integrator.h:60
fmatvec::Vec rTol
Definition: lsoda_integrator.h:56
double dtMax
Definition: lsoda_integrator.h:50
double dtMin
Definition: lsoda_integrator.h:52
fmatvec::Vec aTol
Definition: lsoda_integrator.h:54
double dt0
Definition: lsoda_integrator.h:58
virtual void initializeUsingXML(xercesc::DOMElement *element)
initialize integrator
Definition: lsoda_integrator.cc:301
namespace MBSim
Definition: bilateral_constraint.cc:30