esmf-org / esmf

The Earth System Modeling Framework (ESMF) is a suite of software tools for developing high-performance, multi-component Earth science modeling applications.
https://earthsystemmodeling.org/
Other
156 stars 75 forks source link

ESMPY: Add ability to mask nodes of a Mesh #203

Closed mcflugen closed 9 months ago

mcflugen commented 9 months ago

This pull request adds the ability for a user to associate a node mask with an ESMPY Mesh.

The Mesh.add_nodes method now accepts a keyword, node_mask, through which a user can pass a mask array of length n_nodes. Previously it was only possible to associate a mask with a mesh's elements. This new functionality follows the same pattern as Mesh.add_elements.

To make this work I had to add an extra argument, nodeMask, to ESMC_MeshAddNodes and, as such, modified all existing calls to this function to include the value NULL for this extra argument (i.e. no masking).

Oops! Sorry, I created my feature branch off of an old tag! 🤦