Skip to content

Cgns read polyhedra as simple elements

This MR is to update the CGNS reader such that polyhedral and polygonal elements that are in fact simple elements (tetrahedron, pyramid, wedge, hexahedron and triangle, quad) are recognized as such and added to the multiblock unstructured grid output.

This will speed up the subsequent operations on the grids that are written as polyhedral/polygonal, but contain in fact many simple elements.

To test the functionality, the new test TestSimpleElementConversion was added, which tests the new functionality. Also some existing tests are adapted to the new situation, where they now contain a mixture of simple and polygonal elements.

Also - an unnecessary warning regarding the NGON_n/NFACE_n array provenance (old/new format) has been removed. Both array formats are supported by the reader, and there is no reason to show a warning to the user that they loaded an old format NGON/NFACE array.

Edited by Menno Deij - van Rijswijk

Merge request reports