Skip to content

Commit eb688b9

Browse files
allow alternative symjac typing
1 parent c71f479 commit eb688b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/maketype.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function maketype(name,param_dict,origex,funcs,syms,fex;
2020
invW_t_expr=:(),
2121
param_jac_expr=:())
2222

23-
typeex = :(mutable struct $name{F,J,T,W,Wt,PJ} <: DiffEqBase.AbstractParameterizedFunction{true}
23+
typeex = :(mutable struct $name{F,J,T,W,Wt,PJ,TT1,TT2} <: DiffEqBase.AbstractParameterizedFunction{true}
2424
f::F
2525
analytic::Nothing
2626
jac::J
@@ -33,8 +33,8 @@ function maketype(name,param_dict,origex,funcs,syms,fex;
3333
pfuncs::Vector{Expr}
3434
d_pfuncs::Vector{Expr}
3535
syms::Vector{Symbol}
36-
symjac::Matrix{Any} # https://github.com/symengine/SymEngine.jl/issues/122
37-
symtgrad::Vector{Any}
36+
symjac::Matrix{TT1} # https://github.com/symengine/SymEngine.jl/issues/122
37+
symtgrad::Vector{TT2}
3838
tgradex::Expr
3939
Jex::Expr
4040
expJex::Expr

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using SpecialFunctions
66
### ODE Macros
77

88
println("Build some examples")
9-
f_t = @ode_def_nohes SymCheck begin # Checks for error due to symbol on 1
9+
f_t = @ode_def_bare SymCheck begin # Checks for error due to symbol on 1
1010
dx = x
1111
dy = -c*y + d*x*y*t^2
1212
end a b c d

0 commit comments

Comments
 (0)