Skip to content

Behavior of the LeftRootFind/RightRootFind options for backward integration #1233

@dcourteville

Description

@dcourteville

Hi, I've been wondering about the intended behavior of the LeftRootFind/RightRootFind options for callback root finding. There is two possibilities:

  1. "right" is toward increasing t
  2. "right" is toward integration direction

With backward integration both definitions are opposite, and the current root finding algorithm implements the first definition. Is this the intended behavior ?
Then, it would be convenient to have additional options that implements the second behavior. A typical use case would be taking the root toward integration direction to avoid an infinite loop with simultaneous event occurrences (like suggested in #889 (comment)). The new options could be named for example PrevRootFind/NextRootFind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions