Skip to content

Commit 6a4fb34

Browse files
Merge pull request #286 from SciML/hypre
Fix HYPRE Solution Building
2 parents b9c1f47 + 221a389 commit 6a4fb34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/LinearSolveHYPRE.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,12 @@ function SciMLBase.solve(cache::LinearCache, alg::HYPREAlgorithm, args...; kwarg
198198
T = cache.u isa HYPREVector ? HYPRE_Complex : eltype(cache.u) # eltype(u)
199199
N = 1 # length((size(u)...,))
200200
resid = HYPRE.GetFinalRelativeResidualNorm(hcache.solver)
201-
iters = HYPRE.GetNumIterations(hcache.solver)
201+
iters = Int(HYPRE.GetNumIterations(hcache.solver))
202202
retc = SciMLBase.ReturnCode.Default # TODO: Fetch from solver
203+
stats = nothing
203204

204205
ret = SciMLBase.LinearSolution{T, N, typeof(cache.u), typeof(resid), typeof(alg),
205-
typeof(cache)}(cache.u, resid, alg, retc, iters, cache)
206+
typeof(cache), typeof(stats)}(cache.u, resid, alg, retc, iters, cache, stats)
206207

207208
return ret
208209
end

0 commit comments

Comments
 (0)