Skip to content

Commit 7d2969e

Browse files
Merge pull request #62 from JuliaDiffEq/mm
mass matrix fix
2 parents ebf9781 + 9594933 commit 7d2969e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ode_def_opts.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function ode_def_opts(name::Symbol,opts::Dict{Symbol,Bool},curmod,ex::Expr,param
117117
quote
118118
struct $name{F,TG,TJ,TW,TWt,S} <: DiffEqBase.AbstractParameterizedFunction{true}
119119
f::F
120-
mass_matrix::Nothing
120+
mass_matrix::LinearAlgebra.UniformScaling
121121
analytic::Nothing
122122
tgrad::TG
123123
jac::TJ
@@ -141,7 +141,7 @@ function ode_def_opts(name::Symbol,opts::Dict{Symbol,Bool},curmod,ex::Expr,param
141141
$full_jex
142142
$full_wex
143143

144-
$name($fname,nothing,nothing,$tname,$jname,nothing,nothing,nothing,nothing,
145-
$Wname,$W_tname,nothing,$syms,nothing,$sys)
144+
$name($fname,LinearAlgebra.I,nothing,$tname,$jname,nothing,nothing,
145+
nothing,nothing,$Wname,$W_tname,nothing,$syms,nothing,$sys)
146146
end |> esc
147147
end

0 commit comments

Comments
 (0)