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

Inconsistency between the init method and the other ones in step and event handlers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Labels:
      None

      Description

      The EventHandler and StepHandler interfaces allow user code to be called by ODE integrators at some points. Both interfaces provide an "init" method which get the initial state as a double array "y0".
      The "g" and "eventOccurred" methods also get a double array "y" corresponding to current state. The size of the array in these two methods correspond only to the primary state whereas in the "init" methods it holds both the primary state and the secondary states.

      It would be better to always provide the complete state (primary and secondary) in all methods, so users can also trigger events based on secondary states.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: