Skip to content

Commit

Permalink
Merge pull request #129 from SciML/itercount
Browse files Browse the repository at this point in the history
iter count in LinearSolution
  • Loading branch information
ChrisRackauckas authored Jan 9, 2022
2 parents d40b8d8 + b67b963 commit 239d63a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/solutions/basic_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ struct LinearSolution{T,N,uType,R,A,C} <: AbstractLinearSolution{T,N}
resid::R
alg::A
retcode::Symbol
iters::Int
cache::C
end

function build_linear_solution(alg,u,resid,cache;
retcode = :Default)
retcode = :Default,
iters = 0)
T = eltype(eltype(u))
N = length((size(u)...,))
LinearSolution{T,N,typeof(u),typeof(resid),typeof(alg),typeof(cache)}(u,resid,alg,retcode,cache)
LinearSolution{T,N,typeof(u),typeof(resid),typeof(alg),typeof(cache)}(u,resid,alg,retcode,iters,cache)
end

struct QuadratureSolution{T,N,uType,R,P,A,C} <: AbstractQuadratureSolution{T,N}
Expand Down

0 comments on commit 239d63a

Please sign in to comment.