Skip to content

Commit 00c0c8e

Browse files
Merge pull request #31 from MSeeker1340/mass-matrix
Mass matrix hotfix
2 parents a9b55c7 + 322a1f2 commit 00c0c8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ode/ode_simple_nonlinear_prob.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ mm_linear = function (du,u,p,t)
248248
mul!(du,mm_A,u)
249249
end
250250
const MM_linear =Matrix(Diagonal(0.5ones(4)))
251-
mm_f = ODEFunction(mm_linear,analytic = (u0,p,t) -> exp(inv(MM_linear)*mm_A*t)*u0)
252-
prob_ode_mm_linear = ODEProblem(mm_f,rand(4),(0.0,1.0),mass_matrix=MM_linear)
251+
mm_f = ODEFunction(mm_linear;analytic = (u0,p,t) -> exp(inv(MM_linear)*mm_A*t)*u0, mass_matrix=MM_linear)
252+
prob_ode_mm_linear = ODEProblem(mm_f,rand(4),(0.0,1.0))
253253

254254
"""
255255
[Hires Problem](http://nbviewer.jupyter.org/github/JuliaDiffEq/DiffEqBenchmarks.jl/blob/master/StiffODE/Hires.ipynb) (Stiff)

0 commit comments

Comments
 (0)