UCL / dxh

Collection of helper functions for working with DOLFINx Python interface
http://github-pages.ucl.ac.uk/dxh/
MIT License
3 stars 0 forks source link

Add check for triangular cells in `get_matplotlib_triangulation_from_mesh` #8

Closed matt-graham closed 4 months ago

matt-graham commented 1 year ago

The current get_matplotlib_triangulation_from_mesh implementation will either give incorrect triangulation or give a ValueError when trying to reshape the cell-to-point connectivity array (if array size is not a multiple of 3) with meshes with non-triangular elements. We should raise a more informative ValueError when calling with meshes with non-triangular cells and document that only triangular cells are supported.