Skip to content

Commit d900f7c

Browse files
committed
Make block precon builders mutable
Blocksizes & partionings sometimes not known when creating the strategy.
1 parent 659924b commit d900f7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/factorizations/blockpreconditioner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ from partition of unknowns.
112112
113113
- `precs(A,p)` shall return a left precondioner for a matrix block.
114114
"""
115-
Base.@kwdef struct BlockPreconBuilder
115+
Base.@kwdef mutable struct BlockPreconBuilder
116116
precs=UMFPACKPreconBuilder()
117117
partitioning= A -> [1:size(A,1)]
118118
end

src/preconbuilders.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct JacobiPreconBuilder end
2626
Return callable object constructing a left zero fill-in ILU preconditioner
2727
using [ILUZero.jl](https://github.com/mcovalt/ILUZero.jl)
2828
"""
29-
Base.@kwdef struct ILUZeroPreconBuilder
29+
Base.@kwdef mutable struct ILUZeroPreconBuilder
3030
blocksize::Int = 1
3131
end
3232

0 commit comments

Comments
 (0)