FLINT 0.9.9
Fortran Library for numerical INTegration of differential equations
|
Interface for a user-supplied procedure for computing events values during the integration. It is also called after an event is detected in order for the user to specify the event actions to be taken by the event handler. Note that if multiple events are triggered at the same location then only the event with the lowest index will be reported. More...
Public Member Functions | |
subroutine | eventfunc (me, x, y, evalevents, value, direction, locevent, loceventaction) |
Interface for a user-supplied procedure for computing events values during the integration. It is also called after an event is detected in order for the user to specify the event actions to be taken by the event handler. Note that if multiple events are triggered at the same location then only the event with the lowest index will be reported.
Definition at line 257 of file FLINT_base.f90.
|
virtual |
[in,out] | me | Object of class type DiffEqSys |
[in] | x | The current independent variable value. When an event is detected, it contains the location of that event. |
[in,out] | y | Current solution value. User can modify this value from inside the event function, however it will only take effect if an event is located and the LocEvent contains the index of the located event. In that case, user user also must set the appropriate action in EventAction. |
[in] | evalevents | Size is m. User should evaluate only those event functions for which the corresponding index entry is 1 in EvalEvents. |
[out] | value | Size is m. If Value(i) changes sign, then the event "i" may trigger based on Direction(i). If Value(i) changes from/to NaN, then the sign change is ignored. |
[out] | direction | Size must be same as Value.
|
[in] | locevent | FLINT will only call EventFunc with this parameter after an event is located. In that case, it will contain the index between 1 and m of the located event. User must check whether this parameter is "present" before using it. |
[out] | loceventaction | This parameter will be only present if an event has been located and LocEvent contains a valid index of the located event. In that case, user can specify a one of following actions that the event handler will take:
|
Definition at line 257 of file FLINT_base.f90.
References flint_base::flint_eventaction_continue.