From 84079a970d7747b385bbd2ec7f2e59f08c1b661a Mon Sep 17 00:00:00 2001 From: Alexis Montoison Date: Tue, 15 Oct 2024 21:18:04 -0500 Subject: [PATCH] Add a macro kfill! --- src/bicgstab.jl | 6 +++--- src/block_krylov_solvers.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bicgstab.jl b/src/bicgstab.jl index ba423a292..828b987dd 100644 --- a/src/bicgstab.jl +++ b/src/bicgstab.jl @@ -154,9 +154,9 @@ kwargs_bicgstab = (:c, :M, :N, :ldiv, :atol, :rtol, :itmax, :timemax, :verbose, r₀ .= b end - @kfill!(x, zero(FC) # x₀ - @kfill!(s, zero(FC) # s₀ - @kfill!(v, zero(FC) # v₀ + @kfill!(x, zero(FC)) # x₀ + @kfill!(s, zero(FC)) # s₀ + @kfill!(v, zero(FC)) # v₀ MisI || mulorldiv!(r, M, r₀, ldiv) # r₀ p .= r # p₁ diff --git a/src/block_krylov_solvers.jl b/src/block_krylov_solvers.jl index 1928b9666..4d00c21dd 100644 --- a/src/block_krylov_solvers.jl +++ b/src/block_krylov_solvers.jl @@ -91,7 +91,7 @@ for (KS, fun, nsol, nA, nAt, warm_start) in [ SM = typeof(solver.X) (n == n2 && p == p2) || error("X0 should have size ($n, $p)") allocate_if(true, solver, :ΔX, SM, n, p) - @kcopyto!(solver.ΔX, X0) + copyto!(solver.ΔX, X0) solver.warm_start = true return solver end