Skip to content

Add State::addFields and State::removeFields - #1271

Open
SamuelDegelia-NOAA wants to merge 1 commit into
developfrom
feature/add_update_fields
Open

SamuelDegelia-NOAA wants to merge 1 commit into
developfrom
feature/add_update_fields

Conversation

@SamuelDegelia-NOAA

Copy link
Copy Markdown
Contributor

Description

This PR adds State::removeFields(vars) and State::addFields(vars) as wrappers around the existing State::updateFields. OOPS will soon require these two methods from every model State (JCSDA-internal/oops#3420). An in-development PR for L/GETKF uses them to reduce peak memory (JCSDA-internal/oops#3354). Note that updateFields itself is unchanged so that existing behavior is not affected.

Issue(s) addressed

N/A

Dependencies

Should merge before or alongside JCSDA-internal/oops#3420.

Impact

None. The new methods are only called by OOPS once JCSDA-internal/oops#3420 merges.

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have run the unit tests before creating the PR

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.

2 participants