tExplicitly state that orientation vectors are uninitialized for Julia 0.7 - Gr… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 22da835a878874e5b84ed2839966043a6cd2d22d | |
parent 4d0011e6dc2f8f71f0b2df7bc943a5a65c4d4edc | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 6 Jun 2018 13:41:38 -0400 | |
Explicitly state that orientation vectors are uninitialized for Julia 0.7 | |
Diffstat: | |
M test/grid.jl | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/test/grid.jl b/test/grid.jl | |
t@@ -175,10 +175,10 @@ ocean.u[2, 1, 1, 1] = 1.0 | |
ocean.u[2, 2, 1, 1] = 0.0 | |
ocean.u[1, 2, 1, 1] = 0.0 | |
ocean.v[:, :, 1, 1] .= 0.0 | |
-sw = Vector{Float64}(2) | |
-se = Vector{Float64}(2) | |
-ne = Vector{Float64}(2) | |
-nw = Vector{Float64}(2) | |
+sw = Vector{Float64}(undef, 2) | |
+se = Vector{Float64}(undef, 2) | |
+ne = Vector{Float64}(undef, 2) | |
+nw = Vector{Float64}(undef, 2) | |
@test Granular.curl(ocean, .5, .5, 1, 1, 1, 1, sw, se, ne, nw) > 0. | |
ocean.u[1, 1, 1, 1] = 0.0 |