Skip to content

Commit

Permalink
Update simplegmres.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored Dec 21, 2023
1 parent 3b4f4ed commit 593cd43
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/simplegmres.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,16 @@ struct SimpleGMRES{UBD} <: AbstractKrylovSubspaceMethod
blocksize::Int
warm_start::Bool

function SimpleGMRES{UBD}(; restart::Bool = true, blocksize::Int = 0,

Check warning on line 40 in src/simplegmres.jl

View check run for this annotation

Codecov / codecov/patch

src/simplegmres.jl#L40

Added line #L40 was not covered by tests
warm_start::Bool = false, memory::Int = 20) where {UBD}
UBD && @assert blocksize > 0
return new{UBD}(restart, memory, blocksize, warm_start)

Check warning on line 43 in src/simplegmres.jl

View check run for this annotation

Codecov / codecov/patch

src/simplegmres.jl#L42-L43

Added lines #L42 - L43 were not covered by tests
end

function SimpleGMRES(; restart::Bool = true, blocksize::Int = 0,
warm_start::Bool = false, memory::Int = 20)
return new{blocksize > 0}(restart, memory, blocksize, warm_start)
return SimpleGMRES{blocksize > 0}(; restart, memory, blocksize,

Check warning on line 48 in src/simplegmres.jl

View check run for this annotation

Codecov / codecov/patch

src/simplegmres.jl#L48

Added line #L48 was not covered by tests
warm_start)
end
end

Expand Down

0 comments on commit 593cd43

Please sign in to comment.