[Numerics] Handle zero-size timestep in CVodesIntegrator::advance

This permits simpler integration loops starting from t=0
This commit is contained in:
Ray Speth 2016-07-01 22:37:19 -04:00
parent 7e4e4fd0d3
commit 64bb049647

View file

@ -386,6 +386,9 @@ void CVodesIntegrator::applyOptions()
void CVodesIntegrator::integrate(double tout)
{
if (tout == m_time) {
return;
}
int flag = CVode(m_cvode_mem, tout, m_y, &m_time, CV_NORMAL);
if (flag != CV_SUCCESS) {
throw CanteraError("CVodesIntegrator::integrate",