csdms / pymt

A Python toolkit for running and coupling Earth surface models
https://pymt.readthedocs.io
MIT License
52 stars 20 forks source link

Check if unstructured mesh has only triangular faces #127

Closed mcflugen closed 4 years ago

mcflugen commented 4 years ago

This pull request fixes an issue in quickplot when it's given an unstructured mesh. Previously, the grid type, as returned by a BMI, had to be unstructured_triangular but that's no longer a valid grid type. Now, quickplot understands unstructured but then checks to ensure that all faces have exactly 3 edges. If they don't, an exception is raised.