Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend existing transforms to work with FieldBundle #3484

Open
tclune opened this issue Mar 17, 2025 · 0 comments
Open

Extend existing transforms to work with FieldBundle #3484

tclune opened this issue Mar 17, 2025 · 0 comments

Comments

@tclune
Copy link
Collaborator

tclune commented Mar 17, 2025

Most of the existing Transform subclasses assume import and export state consist of a single ESMF Field each. But in the case of TangentVector, each of these states will instead have a FieldBundle with 2 items.

A simple check in the run method can determine whether to act on a single field or to loop over 2 fields. In the worst case, we could instead capture the distinction in the constructor and then use different procedures for the 2 cases.

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

No branches or pull requests

1 participant