Skip to content

Support for affine functions to bypass nonlinear solver if applicable #2685

Open
@termi-official

Description

@termi-official

Is your feature request related to a problem? Please describe.

We have support for linear functions (via LinearOperator) to partially bypass some of the nonlinear solver logic. Affine functions (via AffineOperator) currently do not bypass this logic.

Describe the solution you’d like

For linear and affine ODE problems we can completely skip the Newton logic for a large variety of stiff solvers. This can save us some memory for large problems coming from e.g. PDE semidiscretizations.

Describe alternatives you’ve considered

Right now the only way I see is to go with a custom integrator+custom solver type similar to https://github.com/SciML/SimpleDiffEq.jl/ . We can probably setup some benchmarks on this matter to explore how much the gains are.

Additional context

Nope.

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