CVodesIntegrator now sets the minimum setp size when [re]initializing

This commit is contained in:
Ray Speth 2013-02-07 23:40:35 +00:00
parent 67a143f396
commit 791c82b0c6

View file

@ -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)