-
Notifications
You must be signed in to change notification settings - Fork 19
Issue 931: Old-style restart files #937
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
base: develop
Are you sure you want to change the base?
Conversation
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.
Nice to have backward compatibility for reading files.
I have a couple of requests:
- Perhaps add a
Logged
warning when reading files through the legacy option to say that this is being done? Could even include a deprecation warning, if you think that'd be appropriate. - In the
ParaGridIO_Xios
implementation ofgetModelState
, perhaps we should raise an error if groups are found, with a message saying that the legacy format is not supported in the XIOS implementation? (I'm not sure how readable the XIOS errors would be.) I can then do the same forreadForcingTimeStatic
in #928.
Also note that some of the other code changes that align the MPI and non-MPI cases will conflict with similar changes in #744.
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.
It might be easier to start from scratch.
|
e56494f
to
af75f07
Compare
What would be a sensible way of doing this? As far as I can tell, |
Ah, good point. There's already an initial read of the NetCDF file in Lines 673 to 680 in af75f07
|
Read old-style restart files
Fixes #931
Change Description
Adds the necessary code to allow the old-style restart files with netCDF groups to still be read. This involves making the ParaGridIO code generic so that dimensions and variables can be searched for both in the file root and in the
data
group. All newly written files are in the flat new style.Test Description
The model successfully runs using my old style restart and forcing files.
Documentation Impact
Since no-one else should be generating the old-style files, this does not really need to be documented. Plus, I should eventually replace my old-style restart files over time.