Bug in mesh.num_cells()
Issue #439
invalid
I think there is a bug in the mesh.num_cells() function, just try:
mesh = UnitCubeMesh(1,1,1)
mesh.num_cells()
this gives 6, the right answer would be 12
this only occures for (1,1,1), for all other it seems correct.
Comments (4)
-
-
reporter If you do
plot(mesh)
and hit "c" to show the cell numbering, you can see that the function makes 12 cells
or am i missing something ?
-
- changed status to invalid
There is no bug in Mesh::num_cells(), but 'c' from the keyboard appears to annotate facet indices, not cells indices, which is inconsistent with the documentation.
I'll register a separate Issue.
-
- removed milestone
Removing milestone: 1.5 (automated comment)
- Log in to comment
Why should it be 12?
A cube can be split into 6 tetrahedra.