@@ -291,27 +291,28 @@ 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
300+
300301function KrylovKitJL_GMRES (args... ; kwargs... )
301302 KrylovKitJL (args... ; KrylovAlg = KrylovKit. GMRES, kwargs... )
302303end
303304
304- function SciMLBase. solve (cache:: LinearCache , alg:: KrylovKitJL , kwargs... )
305+ function SciMLBase. solve (cache:: LinearCache , alg:: KrylovKitJL ; kwargs... )
305306 atol = float (cache. abstol)
306307 rtol = float (cache. reltol)
307308 maxiter = cache. maxiters
308309 verbosity = cache. verbose ? 1 : 0
309- krylovdim = (alg. gmres_restart == 0 ) ? min (20 , size (A, 1 )) : alg. gmres_restart
310+ krylovdim = (alg. gmres_restart == 0 ) ? min (20 , size (cache . A, 1 )) : alg. gmres_restart
310311
311312 kwargs = (atol = atol, rtol = rtol, maxiter = maxiter, verbosity = verbosity,
312313 krylovdim = krylovdim, alg. kwargs... )
313314
314- x, info = KrylovKit. linsolve (cache. A, cache. b, cache. u, alg . KrylovAlg )
315+ x, info = KrylovKit. linsolve (cache. A, cache. b, cache. u; kwargs ... )
315316
316317 copy! (cache. u, x)
317318 resid = info. normres
0 commit comments