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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2
    • 2.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: