Skip to content

Commit 7958c39

Browse files
Fix HYPRE solution building
I can't seem to install HYPRE locally, but this should be what the issue is.
1 parent b9c1f47 commit 7958c39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/LinearSolveHYPRE.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ 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
203203

204204
ret = SciMLBase.LinearSolution{T, N, typeof(cache.u), typeof(resid), typeof(alg),

0 commit comments

Comments
 (0)