Skip to content

Construct Edge Face Connectivity & Separate _build and _populate Methods - #519

Merged
philipc2 merged 14 commits into
mainfrom
philipc2/edge-face-conn
Oct 31, 2023
Merged

philipc2 merged 14 commits into
mainfrom
philipc2/edge-face-conn

Conversation

@philipc2

@philipc2 philipc2 commented Oct 19, 2023 •

Copy link
Copy Markdown
Member

Closes #512, #520

Overview

  • Support for constructing Mesh2_edge_faces
    • Contain the indices of faces that saddle a given edge (i.e. the two faces that share the edge, if the edge does not border a second face, such as for land masks, it will have a INT_FILL_VALUE in the second index)
    • Dimension: [n_edge, 2]
  • Seperate _build and _populate methods for connectivity construction, in preparation for numba & dask optimization.

Expected Usage

import uxarray as ux

grid_path = "/path/to/grid.nc"
data_path = "/path/to/data.nc"

uxds = ux.open_dataset(grid_path, data_path)

edge_faces = uxgrid.Mesh2_edge_faces.values

PR Checklist

General

  • An issue is linked created and linked
  • Add appropriate labels
  • Filled out Overview and Expected Usage (if applicable) sections

Testing

  • Adequate tests are created if there is new functionality
  • Tests cover all possible logical paths in your function
  • Tests are not too basic (such as simply calling a function and nothing else)

Documentation

  • Docstrings have been added to all new functions
  • Docstrings have updated with any function changes
  • Internal functions have a preceding underscore (_) and have been added to docs/internal_api/index.rst
  • User functions have been added to docs/user_api/index.rst

@philipc2 philipc2 changed the title Construct Edge Face Connectivity DRAFT: Construct Edge Face Connectivity Oct 20, 2023
@philipc2 philipc2 changed the title DRAFT: Construct Edge Face Connectivity DRAFT: Construct Edge Face Connectivity & Separate _build_ and _populate Methods Oct 20, 2023
@philipc2 philipc2 changed the title DRAFT: Construct Edge Face Connectivity & Separate _build_ and _populate Methods DRAFT: Construct Edge Face Connectivity & Separate _build and _populate Methods Oct 20, 2023
@philipc2 philipc2 self-assigned this Oct 30, 2023
@philipc2
philipc2 marked this pull request as ready for review October 30, 2023 14:25
@philipc2 philipc2 changed the title DRAFT: Construct Edge Face Connectivity & Separate _build and _populate Methods Construct Edge Face Connectivity & Separate _build and _populate Methods Oct 30, 2023

@erogluorhan erogluorhan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but please adrdres just a few comments. Great work!

Comment thread docs/internal_api/index.rst Resolved
Comment thread docs/user_api/index.rst Resolved
Comment thread docs/internal_api/index.rst Resolved
@philipc2
philipc2 merged commit ac4f568 into main Oct 31, 2023
@erogluorhan
erogluorhan deleted the philipc2/edge-face-conn branch December 7, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Seperate _build and _populate methods for Connectivity Construction Construct Mesh2_edge_face Connectivity

2 participants