Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.
This repository was archived by the owner on May 12, 2026. It is now read-only.

Bug with defaults in GMRES #384

Closed
Closed

Description

@FHell

I am getting a bug with GMRES in Rodas4 (which is chosen automatically for some problems if a Jac prototype is specified). Minimal example is here:

f = (dx, x, p, t) -> (dx .= 0)
x0 = zeros(100)
prob = ODEProblem(f, x0, (0.,5.))
solve(prob, Rodas4(linsolve=LinSolveGMRES()))

The problem seems to be here:
https://github.com/JuliaDiffEq/DiffEqBase.jl/blob/6966bce0958c7c59bed0d22d5fe0cfe3de236a86/src/linear_nonlinear.jl#L95

where with default values the code tries (and fails) to set reltol, which is <: Real to nothing.

Workaround is initializing the linsolve with a tolerance:

LinSolveGMRES(tol = 1e-6)

Activity

  1. ChrisRackauckas commented on Nov 20, 2019

    @ChrisRackauckas
    Member

    @YingboMa defaults on the default here? I guess it's not set so that it takes in the nlsolver tolerance?

  2. ChrisRackauckas-Claude commented on Mar 24, 2026

    @ChrisRackauckas-Claude
    Member

    Triage: LinSolveGMRES, DefaultLinSolve, and related iterative solver infrastructure have been removed from DiffEqBase. This functionality now lives in LinearSolve.jl. If the issue persists there, please file it at https://github.com/SciML/LinearSolve.jl. Recommend closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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