Skip to content

Commit 8be024d

Browse files
Merge pull request #221 from JuliaCI/remove-unwrap-val
switch to `SciMLBase`s version of `_unwrap_val`
2 parents 6f3c63e + c0fd71c commit 8be024d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Krylov = "0.7.11, 0.8"
3333
KrylovKit = "0.5, 0.6"
3434
RecursiveFactorization = "0.2.8"
3535
Reexport = "1"
36-
SciMLBase = "1.32"
36+
SciMLBase = "1.68"
3737
Setfield = "0.7, 0.8, 1"
3838
SnoopPrecompile = "1"
3939
UnPack = "1"

src/LinearSolve.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import IterativeSolvers
2323

2424
using Reexport
2525
@reexport using SciMLBase
26+
using SciMLBase: _unwrap_val
2627

2728
abstract type SciMLLinearSolveAlgorithm <: SciMLBase.AbstractLinearAlgorithm end
2829
abstract type AbstractFactorization <: SciMLLinearSolveAlgorithm end

src/common.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
struct OperatorAssumptions{issquare} end
22
function OperatorAssumptions(issquare = nothing)
3-
OperatorAssumptions{_unwrap_val(issquare)}()
3+
issquare = something(_unwrap_val(issquare), Nothing)
4+
OperatorAssumptions{issquare}()
45
end
56
issquare(::OperatorAssumptions{issq}) where {issq} = issq
67

7-
_unwrap_val(::Val{B}) where {B} = B
8-
_unwrap_val(B::Nothing) = Nothing
9-
_unwrap_val(B::Bool) = B
10-
118
struct LinearCache{TA, Tb, Tu, Tp, Talg, Tc, Tl, Tr, Ttol, issquare}
129
A::TA
1310
b::Tb

0 commit comments

Comments
 (0)