Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong num_cells for DistributedTriangulations with ghost cells #159

Closed
Jai-Tushar opened this issue Oct 27, 2024 · 1 comment · Fixed by #160
Closed

Wrong num_cells for DistributedTriangulations with ghost cells #159

Jai-Tushar opened this issue Oct 27, 2024 · 1 comment · Fixed by #160
Assignees
Labels
bug Something isn't working

Comments

@Jai-Tushar
Copy link

If the DistributedTriangulation has overlapping host cells, the following code counts some cells several times:

function Geometry.num_cells(a::DistributedTriangulation)
  sum(map(trian->num_cells(trian),local_views(a)))
end
@JordiManyer
Copy link
Member

I think in practice this is only used for display functions, but it is certainly a bug. It should be fixed by #160

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants