[
https://issues.apache.org/jira/browse/MATH-213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luc Maisonobe resolved MATH-213.
--------------------------------
Resolution: Fixed
fixed as of r671168 in 2.0 branch
> FirstOrderIntegrator.integrate does not give back integration stop time when
> an event handler stops integration
> ---------------------------------------------------------------------------------------------------------------
>
> Key: MATH-213
> URL: https://issues.apache.org/jira/browse/MATH-213
> Project: Commons Math
> Issue Type: Improvement
> Affects Versions: 1.2
> Environment: all
> Reporter: Luc Maisonobe
> Assignee: Luc Maisonobe
> Priority: Minor
> Fix For: 2.0
>
>
> When an EventHandler.eventOccurred() method returns STOP to interrupt
> integration, it is difficult to retrieve the exact stop time in the function
> that called integrate. The only way is to set up a step handler which
> monitors specially the last step and store the current time from the
> interpolator.
> This is cumbersome.
> A better way is to set the return value of integrate to this stop time (the
> state at interrupt time is already copied properly in the y[] parameter
> array).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.