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

Remove calls to no-op routines in ensemble manager #637

Merged
merged 13 commits into from
Mar 13, 2024

Conversation

ann-norcio
Copy link
Contributor

@ann-norcio ann-norcio commented Feb 12, 2024

Description:

Removed the following no-op routines form ensemble manager: prepare_to_write_to_vars, prepare_to_write_to_copies, &
prepare_to_read_from_vars, prepare_to_read_from_copies, prepare_to_update_vars, &
prepare_to_update_copies

Fixes issue

Fixes #620

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Dead code removal

Documentation changes needed?

  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.

Tests

Ran build_everything for branch, tested with lorenz_96 & 63 models.

Checklist for merging

  • Updated changelog entry
  • Documentation updated
  • Update conf.py

Checklist for release

  • Merge into main
  • Create release from the main branch with appropriate tag
  • Delete feature-branch

Testing Datasets

  • Dataset needed for testing available upon request
  • Dataset download instructions included
  • No dataset needed

@hkershaw-brown
Copy link
Member

@ann-norcio this looks good.
Your git config is not set up with your GitHub account (email or no-reply email)
Before we merge this pull request, we'll rewrite the history so these contributions show up as 'official contributions' to dart.

Copy link
Collaborator

@nancycollins nancycollins left a comment

Choose a reason for hiding this comment

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

looks good.
they've been disabled for a while now, but i have to say for the record that when they were originally added, these checks found one place where a transpose was missing and the code was updating a stale copy of the data. so they did serve a useful purpose back then.

Copy link
Member

@hkershaw-brown hkershaw-brown left a comment

Choose a reason for hiding this comment

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

Approved!

@hkershaw-brown bundle with #619

@hkershaw-brown hkershaw-brown self-requested a review February 13, 2024 19:53
Copy link
Member

@hkershaw-brown hkershaw-brown left a comment

Choose a reason for hiding this comment

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

Edit, changed my mind.

ens_handle%valid - remove this

! track if copies modified last, vars modified last, both are in sync
! (and therefore both valid to be used r/o), or unknown.
integer, parameter :: VALID_UNKNOWN = -1
integer, parameter :: VALID_BOTH = 0 ! vars & copies have same data
integer, parameter :: VALID_VARS = 1 ! vars(:,:) modified last
integer, parameter :: VALID_COPIES = 2 ! copies(:,:) modified last

@ann-norcio
Copy link
Contributor Author

@hkershaw-brown commited changes to remove ens_handle%valid

@hkershaw-brown
Copy link
Member

Nice work Ann, I'll take a look at this when I come back from PTO. Have a good weekend!

Copy link
Member

@hkershaw-brown hkershaw-brown left a comment

Choose a reason for hiding this comment

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

Awesome work Ann!

Code and documentation have the prepare routines gone. I checked every quickbuild.sh in DART with your build_everything tool so double plus good work.

Approved!

Cheers,
Helen

@hkershaw-brown hkershaw-brown added the release! bundle with next release label Mar 11, 2024
@mjs2369 mjs2369 changed the base branch from main to WRF_Tutorial_Derecho March 13, 2024 17:28
@mjs2369 mjs2369 merged commit 4f5490c into NCAR:WRF_Tutorial_Derecho Mar 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release! bundle with next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no-op routines in ensemble manager
4 participants