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

Issue 614 ParaGridIO #685

Merged
merged 6 commits into from
Oct 1, 2024
Merged

Conversation

timspainNERSC
Copy link
Collaborator

@timspainNERSC timspainNERSC commented Sep 4, 2024

ParaGridO static data

Fixes #614 (partially)


Change Description

Moved the maps between netCDF concepts and ModelArray equivalents to const instance variables that are initialized as part of the ctor.

Moved the static maps from file names to netCDF files and current time indices to a singleton-like function. Also combined the maps, to ensure they remain consistent.

Added the Finalizer class to to what std::atexit does, except at our convenience, rather than executable clean-up. This includes a new test for the new class. This change is the same as that contained in PR #683


Test Description

Added a test for the new Finalizer class.

The ParaGrid_test still passes, this mainly tests the parts that pass through to ParaGridIO.

@timspainNERSC timspainNERSC added bug Something isn't working enhancement New feature or request labels Sep 4, 2024
@timspainNERSC timspainNERSC added this to the 3 Stand-alone model milestone Sep 4, 2024
@timspainNERSC timspainNERSC self-assigned this Sep 4, 2024
@timspainNERSC timspainNERSC merged commit ad65ea0 into issue614_datalifetimes Oct 1, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

1 participant