tUse cross-compatible syntax for vectors - Granular.jl - Julia package for granular dynamics simulation (HTM) git clone git://src.adamsgaard.dk/Granular.jl (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit e22516d887154d8292a6f810e41a33c598cfee5f (DIR) parent 22da835a878874e5b84ed2839966043a6cd2d22d (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk> 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(-) --- (DIR) 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