tUse cross-compatible syntax for vectors - Granular.jl - Julia package for gran… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit e22516d887154d8292a6f810e41a33c598cfee5f | |
parent 22da835a878874e5b84ed2839966043a6cd2d22d | |
Author: Anders Damsgaard <[email protected]> | |
Date: Wed, 6 Jun 2018 14:01:43 -0400 | |
Use cross-compatible syntax for vectors | |
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}(undef, 2) | |
-se = Vector{Float64}(undef, 2) | |
-ne = Vector{Float64}(undef, 2) | |
-nw = Vector{Float64}(undef, 2) | |
+sw = zeros(2) | |
+se = zeros(2) | |
+ne = zeros(2) | |
+nw = zeros(2) | |
@test Granular.curl(ocean, .5, .5, 1, 1, 1, 1, sw, se, ne, nw) > 0. | |
ocean.u[1, 1, 1, 1] = 0.0 |