|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.numeric.CVodeAdapter
public class CVodeAdapter
Wrapper to CVODE library. It implements the Solver interface and delegates computation to the CVODE library, which is part of SUNDIALS.
Constructor Summary | |
---|---|
CVodeAdapter()
|
Method Summary | |
---|---|
void |
integrate(ODE ode,
double t0,
double[] y0,
double t1,
double[] y1)
Integrate ode from t0 to t1. |
void |
setMonitor(int n,
Monitor monitor)
Set monitor functions. |
void |
setOptions(java.util.Map options)
Set additional options for the integration process. |
void |
setTolerances(double[] absTol,
double[] relTol)
Set element-specific absolute and relative tolerance values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CVodeAdapter()
Method Detail |
---|
public void integrate(ODE ode, double t0, double[] y0, double t1, double[] y1) throws NumericException
Solver
integrate
in interface Solver
ode
- equationst0
- initial timey0
- initial statet1
- final timey1
- memory to return state at t1, may refer to same object as y0
NumericException
public void setMonitor(int n, Monitor monitor) throws NumericException
Solver
setMonitor
in interface Solver
NumericException
public void setOptions(java.util.Map options)
Solver
setOptions
in interface Solver
public void setTolerances(double[] absTol, double[] relTol)
Solver
setTolerances
in interface Solver
absTol
- element-specific absolute tolerance values, or nullrelTol
- element-specific relative tolerance values, or null
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |