-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fixup partition file presence #225
Fixup partition file presence #225
Conversation
TestingPASS manufactured solution init and forward steps for MPAS-Ocean and Omega PASS tests from all suites |
@xylar Do you want to take a quick look and let me know if this is what you had in mind? |
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! I'd suggest a rename graph_filename
--> graph_target
to avoid confusion, see my detailed comments.
|
||
self.graph_target = graph_filename |
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.
Let's also rename the parameter from graph_filename
to graph_target
to avoid confusion.
Then, self.graph_target
doesn't need to be an attribute since it's not used except below to add the input file.
@xylar Sounds good! I'll make that change and retest |
@cbegeman, it looks like my suggestion (not having the I don't think we want to add new parameters to the I still think renaming the parameter to |
0f3ae04
to
ec75b9d
Compare
@xylar How about these code changes? It may be inconvenient sometimes to get the path from the base work dir rather than the relative path, but I think this is ok. |
And yes, I'll fixup the doc strings once we settle on the code |
@cbegeman, yes, I think this could work. One piece is that the default value (in 3 places) of |
I noticed that the default value didn't make sense but I didn't think of the make_graph approach. Maybe in the case where we make_graph we make the default graph_target=None? Do we need the ability to specify the file name of the graph? |
Right, I think
Adding the input file should work without further modification. |
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.
@cbegeman, This looks great!
I've run a whole bunch of tests. I'm still working my way through the spherical tests but no sign of trouble so far.
update: all the spherical tests passed.
I also set up and ran manufactured_solution
with Omega. It ran successfully but then gave an error (as expected) on the missing output.nc
file. Also, as expected, there is no graph.info
file or partition file in the forward
directory.
9cc9899
to
d284d33
Compare
Fixup graph paths for cached inputs This PR corrects a small bug introduced by #225. When inputs are cached, we need to point to the mesh step rather than the init step for the graph files. Doesn't hurt to point to the mesh step when inputs are not cached either.
Include graph partition file only when the ocean model is MPAS-Ocean so there aren't unnecessary files in Omega tests.
Checklist
api.md
) has any new or modified class, method and/or functions listedTesting
comment in the PR documents testing used to verify the changes