Skip to content

Commit e44abad

Browse files
committed
debug printing....
1 parent 16a6ef1 commit e44abad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/inversemap.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,17 @@ using Test, LinearMaps, LinearAlgebra, SparseArrays, IterativeSolvers
4343

4444
# Example from https://www.dealii.org/current/doxygen/deal.II/step_20.html#SolvingusingtheSchurcomplement
4545
M = sparse(2.0I, 10, 10) + sprand(10, 10, 0.1); M = M'M
46+
@show M.colptr
47+
@show M.rowval
48+
@show M.nzval
4649
iM = InverseMap(M; solver=IterativeSolvers.cg!)
4750
B = sparse(5.0I, 10, 5)
4851
F = rand(10)
4952
G = rand(5)
5053

5154
# Solve using Schur complement
5255
G′ = B' * iM * F - G
56+
@show G′
5357
S = B' * iM * B
5458
P = IterativeSolvers.cg(S, G′)
5559
U = IterativeSolvers.cg(M, F - B * P)

0 commit comments

Comments
 (0)