Skip to content

Commit

Permalink
Fixed num_cells for empty parts
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Feb 20, 2025
1 parent 9563373 commit 0384e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geometry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ function Geometry.num_cells(a::DistributedTriangulation{Df}) where Df
else
mcell_to_owned = local_to_own(gids)
is_owned(mcell) = !iszero(mcell_to_owned[mcell])
sum(is_owned,tcell_to_mcell)
sum(is_owned,tcell_to_mcell;init=0)
end
end
return sum(n_loc_ocells)
Expand Down

0 comments on commit 0384e59

Please sign in to comment.