Skip to content

Commit

Permalink
Fix display of Grid
Browse files Browse the repository at this point in the history
  • Loading branch information
lcw committed May 10, 2024
1 parent eb82302 commit 33857cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/grids.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ function Base.show(io::IO, g::Grid)
print(io, "}()")
if !compact
nlocal = numcells(g, Val(false))
nglobal = numcells(g, Val(true))
print(io, " with $nlocal of the $nglobal global elements")
print(io, " with $nlocal local elements")
end

return
Expand All @@ -174,8 +173,7 @@ function Base.showarg(io::IO, g::Grid, toplevel)

if toplevel
nlocal = numcells(g, Val(false))
nglobal = numcells(g, Val(true))
print(io, " with $nlocal of the $nglobal global elements")
print(io, " with $nlocal local elements")
end

return
Expand Down

0 comments on commit 33857cd

Please sign in to comment.