From 7ff90d0c96eee6dd4582b5421f97d07c68112f1c Mon Sep 17 00:00:00 2001 From: gaelforget Date: Sat, 14 Sep 2024 15:13:36 -0400 Subject: [PATCH] fix zeros method --- src/Types.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Types.jl b/src/Types.jl index 68435c3..a22f220 100644 --- a/src/Types.jl +++ b/src/Types.jl @@ -188,7 +188,7 @@ import Base: ones, zeros function zeros(a::gcmgrid,args...) b=MeshArray(a) - [b.f[c].=1.0 for c in eachindex(b.f)] + [b.f[c].=0.0 for c in eachindex(b.f)] (length(args)>0 ? b*ones(args...) : b) end