[Numerics] Handle zero-size timestep in CVodesIntegrator::advance
This permits simpler integration loops starting from t=0
This commit is contained in:
parent
7e4e4fd0d3
commit
64bb049647
1 changed files with 3 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue