We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c7bae8 commit e46e3bcCopy full SHA for e46e3bc
src/traits/grid.rs
@@ -54,6 +54,12 @@ pub trait Grid {
54
.sum()
55
}
56
57
+ /// Return the cell types in the grid
58
+ fn cell_types(&self) -> &[Self::EntityDescriptor] {
59
+ let tdim = self.topology_dim();
60
+ self.entity_types(tdim)
61
+ }
62
+
63
/// Owned cell count
64
///
65
/// Note. The default implementation iterates through all grid to count the number of owned elements.
0 commit comments