-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add sea-ice graph partitioning to files_for_e3sm
test case
#489
Conversation
This will require a new version of |
51b5eb2
to
b57eb02
Compare
b57eb02
to
1a6c0cd
Compare
TestingI was able to run both the See:
The next stage of testing will be writing out debugging/plotting information for the sea-ice partitions to make sure they're behaving as expected. |
80b2538
to
95887d4
Compare
95887d4
to
e2b4e7a
Compare
@akturner, could you review these results either just using the above images or perhaps by taking a look at the following output directories?
|
args = ['create_seaice_partitions', | ||
'-m', 'restart.nc', | ||
'-o', '.', | ||
'-p', f'mpas-seaice.graph.info.{creation_date}', | ||
'-g', 'gpmetis', | ||
'--plotting', | ||
'-n'] |
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.
@akturner, just a note that --plotting
is always used here so we'll have the plot files to look at whenever we want them.
Pull out common functionality into graph_partition module
This merge is a major reorganization of files_for_e3sm to have a superclass for each step to handle common tasks such as linking to a restart file, detecting whether ice-shelf cavities are in the mesh, and getting attributes of the mesh such as the short name and the creation date. The DiagnosticsFiles step has been split into 2 steps since making mapping files uses MPI parallelism whereas making region masks uses thread parallelism and these need to be handled separately. The MakeDiagnosticsFiles test case has been removed in favor of this more complete solution.
Some older MPAS-Ocean initial conditions have the full date and time of creation, while newer meshes just have a YYYYMMDD date string. This merge should handle both.
e2b4e7a
to
4c10b26
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 based on examination of output partition diagnostic files
Thanks @akturner! Very much appreciated. |
This merge also generalizes
files_for_e3sm
so it can be run with an existing mesh and graph file, not just one generated by compass. Thus, it replacesmake_diagnostics_files
, which performed a subset of this functionality for an existing mesh.Checklist
api.rst
) has any new or modified class, method and/or functions listedTesting
in this PR) any testing that was used to verify the changesCloses #474