You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Reactor.jl
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,14 @@ using SparseArrays
9
9
abstract type AbstractReactor end
10
10
export AbstractReactor
11
11
12
-
struct Reactor{D,Q} <:AbstractReactor
12
+
struct Reactor{D,Q,F1,F2,F3} <:AbstractReactor
13
13
domain::D
14
14
ode::ODEProblem
15
15
recommendedsolver::Q
16
16
forwardsensitivities::Bool
17
+
precsundials::F1#function to calculate preconditioner for Sundials solvers
18
+
psetupsundials::F2#function to compute preconditioner \ residue for Sundials solvers
19
+
precsjulia::F3#function to calculate preconditioner for Julia solvers
17
20
end
18
21
19
22
functionReactor(domain::T,y0::Array{T1,1},tspan::Tuple,interfaces::Z=[];p::X=DiffEqBase.NullParameters(),forwardsensitivities=false,forwarddiff=false,modelingtoolkit=false,tau=1e-3) where {T<:AbstractDomain,T1<:Real,Z<:AbstractArray,X}
@@ -77,7 +80,7 @@ function Reactor(domain::T,y0::Array{T1,1},tspan::Tuple,interfaces::Z=[];p::X=Di
functionReactor(domains::T,y0s::W1,tspan::W2,interfaces::Z=Tuple(),ps::X=DiffEqBase.NullParameters();forwardsensitivities=false,modelingtoolkit=false,tau=1e-3) where {T<:Tuple,W1<:Tuple,Z,X,W2}
83
86
#adjust indexing
@@ -209,7 +212,7 @@ function Reactor(domains::T,y0s::W1,tspan::W2,interfaces::Z=Tuple(),ps::X=DiffEq
0 commit comments