Interface EventState

    • Method Detail

      • init

        void init​(ODEStateAndDerivative s0,
                  double t)
        Initialize handler at the start of an integration.

        This method is called once at the start of the integration. It may be used by the handler to initialize some internal data if needed.

        Parameters:
        s0 - initial state
        t - target time for the integration
      • getEventTime

        double getEventTime()
        Get the occurrence time of the event triggered in the current step.
        Returns:
        occurrence time of the event triggered in the current step or infinity if no events are triggered