Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Sundials.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Sundials

import Reexport
Reexport.@reexport using DiffEqBase
using SciMLBase: AbstractSciMLOperator
import DataStructures
import Logging
import DiffEqBase
Expand Down
8 changes: 4 additions & 4 deletions src/common_interface/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function DiffEqBase.__init(prob::DiffEqBase.AbstractODEProblem{uType, tupType, i
jac = nothing
end

if typeof(prob.f.jac_prototype) <: DiffEqBase.AbstractDiffEqLinearOperator
if typeof(prob.f.jac_prototype) <: AbstractSciMLOperator
function getcfunjtimes(::T) where {T}
@cfunction(jactimes,
Cint,
Expand Down Expand Up @@ -748,9 +748,9 @@ function DiffEqBase.__init(prob::DiffEqBase.AbstractODEProblem{uType, tupType, i
end

if (typeof(prob.problem_type) <: SplitODEProblem &&
typeof(prob.f.f1.jac_prototype) <: DiffEqBase.AbstractDiffEqLinearOperator) ||
typeof(prob.f.f1.jac_prototype) <: AbstractSciMLOperator) ||
(!(typeof(prob.problem_type) <: SplitODEProblem) &&
typeof(prob.f.jac_prototype) <: DiffEqBase.AbstractDiffEqLinearOperator) &&
typeof(prob.f.jac_prototype) <: AbstractSciMLOperator) &&
alg.stiffness !== Explicit()
function getcfunjtimes(::T) where {T}
@cfunction(jactimes,
Expand Down Expand Up @@ -1207,7 +1207,7 @@ function DiffEqBase.__init(prob::DiffEqBase.AbstractDAEProblem{uType, duType, tu
end
flag = IDASetLinearSolver(mem, LS, _A === nothing ? C_NULL : A)

if typeof(prob.f.jac_prototype) <: DiffEqBase.AbstractDiffEqLinearOperator
if typeof(prob.f.jac_prototype) <: AbstractSciMLOperator
function getcfunjtimes(::T) where {T}
@cfunction(idajactimes,
Cint,
Expand Down