Skip to content

Commit

Permalink
fix zeros method
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelforget committed Sep 14, 2024
1 parent 45a3d09 commit 7ff90d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7ff90d0

Please sign in to comment.