Skip to content

Bug for Nonconnected Stability Regions #1

@Steven-Roberts

Description

@Steven-Roberts

The stab_region function only returns the first contour detected by contourc:

c = contourc(x,y,R,[1+eps 1+eps]);

If a method has multiple disconnected regions of stability like https://github.com/LLNL/sundials/blob/54d9c4a6a73ba52c8adb010f1ed0ec66b169c7dc/doc/shared/figs/arkode/sofroniou_spaletta_erk_stab_region.png
this code would only show one region and leave out the others. I'm not sure if stability plots in the SUNDIALS docs are affected. A simple fix is to directly call contour with the x-y grid and stability functions values.

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