Changeset 25538 in project for release/4/sundials/trunk/sundials.scm


Ignore:
Timestamp:
11/21/11 17:55:28 (9 years ago)
Author:
Ivan Raikov
Message:

sundials: end time in cvode constructor is optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/sundials/trunk/sundials.scm

    r25245 r25538  
    556556    }
    557557
    558     flag = CVodeSetStopTime(solver_handle->cvode_mem, time_stop);
    559     if (flag != CV_SUCCESS)
     558    if (time_stop > 0.0)
     559    {
     560     flag = CVodeSetStopTime(solver_handle->cvode_mem, time_stop);
     561     if (flag != CV_SUCCESS)
    560562         chicken_error("could not set stop time with CVodeSetStopTime", C_fix(flag)) ; 
     563    }
    561564
    562565    return solver_handle;
Note: See TracChangeset for help on using the changeset viewer.