Skip to content

Commit 7f806c1

Browse files
DiffEqOperator
1 parent 43c98a5 commit 7f806c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/linear_nonlinear_convergence_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using DiffEqBase, OrdinaryDiffEq, Base.Test, DiffEqDevTools, SpecialMatrices
22
const μ = 1.01
33
f2 = (t,u) -> μ * u
4-
f1 = μ
4+
f1 = DiffEqArrayOperator(μ)
55
(p::typeof(f1))(::Type{Val{:analytic}},t,u0) = u0.*exp.(2μ*t)
66

77
prob = SplitODEProblem((f1,f2),1/2,(0.0,1.0))
@@ -19,7 +19,7 @@ sim = test_convergence(dts,prob,NorsettEuler())
1919

2020
u0 = rand(2)
2121
A = Strang(2)
22-
f1 = A
22+
f1 = DiffEqArrayOperator(A)
2323
f2 = (t,u,du) -> du .= μ .* u
2424
function (p::typeof(f1))(::Type{Val{:analytic}},t,u0)
2525
tmp = (A+μ*I)*t

0 commit comments

Comments
 (0)