Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-213

FirstOrderIntegrator.integrate does not give back integration stop time when an event handler stops integration

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 2.0
    • Labels:
      None
    • Environment:

      all

      Description

      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).

        Attachments

          Activity

            People

            • Assignee:
              luc Luc Maisonobe
              Reporter:
              luc Luc Maisonobe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: