Unsupported keyword argument "memory" for `GMRES` and `DQGMRES`
Hello, I'm using LinearSolve.jl with the methods
```julia
linear_solver1 = KrylovJL_GMRES(precs = _prec, verbose = 1, restart = false, itmax = 1000, memory = 100)
# or
linear_solver2 = KrylovJL(; KrylovAlg = Krylov.dqgmres!, precs = _prec, verbose = 1, itmax = 1000, memory = 100)
```
But it says that there is no method defined with the `memory` keyword argument.
```julia
LoadError: MethodError: no method matching krylov_solve!(::DqgmresWorkspace{Float64, ComplexF64, Vector{ComplexF64}}, ::SparseMatrixCSC{ComplexF64, Int64}, ::Vector{ComplexF64}; atol::Float64, rtol::Float64, itmax::Int64, verbose::Int64, ldiv::Bool, history::Bool, memory::Int64)
This method does not support all of the given keyword arguments (and may not support any).
Closest candidates are:
krylov_solve!(::DqgmresWorkspace{T, FC, S}, ::Any, ::AbstractVector{FC}; M, N, ldiv, reorthogonalization, atol, rtol, itmax, timemax, verbose, history, callback, iostream) where {T<:AbstractFloat, FC<:Union{Complex{T}, T}, S<:AbstractVector{FC}} got unsupported keyword argument "memory"
@ Krylov ~/.julia/packages/Krylov/iO2jB/src/interface.jl:231
krylov_solve!(::DqgmresWorkspace{T, FC, S}, ::Any, ::AbstractVector{FC}, ::AbstractVector; M, N, ldiv, reorthogonalization, atol, rtol, itmax, timemax, verbose, history, callback, iostream) where {T<:AbstractFloat, FC<:Union{Complex{T}, T}, S<:AbstractVector{FC}} got unsupported keyword argument "memory"
@ Krylov ~/.julia/packages/Krylov/iO2jB/src/interface.jl:236
```
I can give a MWE, but I think that the method definition shown in the error should be clear.
0 条评论