Skip to content

Commit d7fa117

Browse files
fix type decision
1 parent 175ffd2 commit d7fa117

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/common.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ struct OperatorAssumptions{issquare} end
22
function OperatorAssumptions(issquare = nothing)
33
OperatorAssumptions{_unwrap_val(issquare)}()
44
end
5+
issquare(::OperatorAssumptions{issq}) where {issq} = issq
56

67
_unwrap_val(::Val{B}) where {B} = B
78
_unwrap_val(B::Nothing) = Nothing
@@ -92,8 +93,8 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
9293
alias_A = false, alias_b = false,
9394
abstol = default_tol(eltype(prob.A)),
9495
reltol = default_tol(eltype(prob.A)),
95-
maxiters = length(prob.b),
96-
verbose = false,
96+
maxiters::Int = length(prob.b),
97+
verbose::Bool = false,
9798
Pl = Identity(),
9899
Pr = Identity(),
99100
assumptions = OperatorAssumptions(),
@@ -125,7 +126,7 @@ function SciMLBase.init(prob::LinearProblem, alg::Union{SciMLLinearSolveAlgorith
125126
typeof(Pl),
126127
typeof(Pr),
127128
typeof(reltol),
128-
typeof(assumptions)
129+
issquare(assumptions)
129130
}(A,
130131
b,
131132
u0,

0 commit comments

Comments
 (0)