Skip to content

Commit c460900

Browse files
static arrays v0.6
1 parent 27cd874 commit c460900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/static_array_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ sol = solve(ode, Euler(), dt=1.e-2)
1717
sol = solve(ode, SSPRK22(), dt=1.e-2)
1818

1919

20-
u0 = zero(MVector{2,Float64}) + 1
20+
u0 = ones(MVector{2,Float64})
2121
ode = ODEProblem(f, u0, (0.,1.))
2222
sol = solve(ode, Euler(), dt=1.e-2)
2323

24-
u0 = zero(SVector{2,Float64}) + 1
24+
u0 = ones(SVector{2,Float64})
2525
f = (t,u) -> u
2626
ode = ODEProblem(f, u0, (0.,1.))
2727
sol = solve(ode, Euler(), dt=1.e-2)

0 commit comments

Comments
 (0)