Skip to content

Commit 70281aa

Browse files
committed
Ignore p if it is NullParameters
1 parent 9a42b50 commit 70281aa

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1616
PackageExtensionCompat = "65ce6f38-6b18-4e1d-a461-8949797d7930"
1717
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1818
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
19+
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1920
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
2021
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
2122
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
@@ -49,6 +50,7 @@ LinearAlgebra = "1.6"
4950
PackageExtensionCompat = "1"
5051
Random = "1.6"
5152
Reexport = "1"
53+
SciMLBase = "2"
5254
SciMLOperators = "0.3.7"
5355
Setfield = "1"
5456
SparseArrays = "1.6"

src/SparseDiffTools.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import ArrayInterface: matrix_colors
1818
import StaticArrays
1919
import StaticArrays: StaticArray
2020
# Others
21-
using SciMLOperators, LinearAlgebra, Random
21+
using SciMLBase, SciMLOperators, LinearAlgebra, Random
2222
import DataStructures: DisjointSets, find_root!, union!
2323
import SciMLOperators: update_coefficients, update_coefficients!
2424
import Setfield: @set!

src/differentiation/common.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function JacFunctionWrapper(f::F, fu_, u, p, t) where {F}
5252
return JacFunctionWrapper{iip, oop, 1, F, typeof(fu), typeof(p), typeof(t)}(f,
5353
fu, p, t)
5454
end
55-
elseif p !== nothing
55+
elseif p !== nothing && !(p isa SciMLBase.NullParameters)
5656
iip = static_hasmethod(f, typeof((fu, u, p)))
5757
oop = static_hasmethod(f, typeof((u, p)))
5858
if !iip && !oop

0 commit comments

Comments
 (0)