CVodesIntegrator now sets the minimum setp size when [re]initializing
This commit is contained in:
parent
67a143f396
commit
791c82b0c6
1 changed files with 4 additions and 0 deletions
|
|
@ -127,6 +127,7 @@ CVodesIntegrator::CVodesIntegrator() :
|
|||
m_abstolsens(1.0e-4),
|
||||
m_nabs(0),
|
||||
m_hmax(0.0),
|
||||
m_hmin(0.0),
|
||||
m_maxsteps(20000),
|
||||
m_fdata(0),
|
||||
m_np(0),
|
||||
|
|
@ -463,6 +464,9 @@ void CVodesIntegrator::applyOptions()
|
|||
if (m_hmax > 0) {
|
||||
CVodeSetMaxStep(m_cvode_mem, m_hmax);
|
||||
}
|
||||
if (m_hmin > 0) {
|
||||
CVodeSetMinStep(m_cvode_mem, m_hmin);
|
||||
}
|
||||
}
|
||||
|
||||
void CVodesIntegrator::integrate(double tout)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue