-
Notifications
You must be signed in to change notification settings - Fork 145
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
Remove calls to no-op routines in ensemble manager #637
Conversation
@ann-norcio this looks good. |
There was a problem hiding this 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.
0acd378
to
f5e132b
Compare
There was a problem hiding this 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
There was a problem hiding this 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
@hkershaw-brown commited changes to remove ens_handle%valid |
Nice work Ann, I'll take a look at this when I come back from PTO. Have a good weekend! |
There was a problem hiding this 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
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
Documentation changes needed?
Tests
Ran build_everything for branch, tested with lorenz_96 & 63 models.
Checklist for merging
Checklist for release
Testing Datasets