@@ -291,11 +291,11 @@ end
291291function KrylovKitJL (args... ;
292292 KrylovAlg = KrylovKit. GMRES, gmres_restart = 0 ,
293293 kwargs... )
294- return KrylovJL (KrylovAlg, gmres_restart, args, kwargs)
294+ return KrylovKitJL (KrylovAlg, gmres_restart, args, kwargs)
295295end
296296
297297function KrylovKitJL_CG (args... ; kwargs... )
298- KrylovKitJL (args... ; KrylovAlg = KrylovKit. CG, kwargs... )
298+ KrylovKitJL (args... ; KrylovAlg = KrylovKit. CG, kwargs... , isposdef = true )
299299end
300300function KrylovKitJL_GMRES (args... ; kwargs... )
301301 KrylovKitJL (args... ; KrylovAlg = KrylovKit. GMRES, kwargs... )
@@ -306,12 +306,12 @@ function SciMLBase.solve(cache::LinearCache, alg::KrylovKitJL, kwargs...)
306306 rtol = float (cache. reltol)
307307 maxiter = cache. maxiters
308308 verbosity = cache. verbose ? 1 : 0
309- krylovdim = (alg. gmres_restart == 0 ) ? min (20 , size (A, 1 )) : alg. gmres_restart
309+ krylovdim = (alg. gmres_restart == 0 ) ? min (20 , size (cache . A, 1 )) : alg. gmres_restart
310310
311311 kwargs = (atol = atol, rtol = rtol, maxiter = maxiter, verbosity = verbosity,
312312 krylovdim = krylovdim, alg. kwargs... )
313313
314- x, info = KrylovKit. linsolve (cache. A, cache. b, cache. u, alg . KrylovAlg )
314+ x, info = KrylovKit. linsolve (cache. A, cache. b, cache. u; kwargs ... )
315315
316316 copy! (cache. u, x)
317317 resid = info. normres
0 commit comments