Repository navigation
Jigsaw mesh creation - #74
Conversation
|
@mark-petersen, I'm proposing we keep this PR over #59 from which it is derived (accounting for updates to recent ocean/develop). |
372e0b5 to
7268d07
Compare
|
@mark-petersen, just a friendly follow-up reminder about getting your review and so that this can be merged in this week... |
|
Thanks. It is on my short list for today. |
|
Thanks @mark-petersen, we are looking forward to your feedback! |
7268d07 to
7c0bf29
Compare
|
@sbrus89 could you test the head of this PR to generate your standard coastal-refined mesh? |
dc157de to
525053b
Compare
|
@pwolfram I'm running some tests on this, will get it merged in. Passed nightly regression suite. Do you remember what Did that point to the old jigsaw calling scripts? If so, I can leave it. I just want to remember to delete this line in a later commit, because right now the user doesn't know how to fill it in: |
|
@sbrus89 and @pwolfram Two questions:
where the directory formerly named I will proceed with those (nice easy work at the conference), but I'm happy to hear feedback. |
|
@mark-petersen, along these lines, I already used jigsaw a few months ago for SOMA (https://github.com/MPAS-Dev/MPAS-Model/tree/master/testing_and_setup/compass/ocean/soma/4km/32to4km) but this is using the old way to setup test cases with jigsaw, so this gives a clear separation between what needs done in the long term to migrate to only using JIGSAW. I think this organization is ok, but it may be a little artificial and may make things strange when building test suites in the short term. There is a danger here too of having workflow divergence, e.g., supporting two ways of doing things may give people too many options. I would propose all new test cases must use the new system. Also, once we have cleaned out |
|
@mark-petersen, |
|
@mark-petersen Yes, the JS in the directory names is for jigsaw. I believe the only one that should have that is the EC60to30JS just to differentiate it from the original version. The other jigsaw meshes I added all begin with USDE or USNA since they are coastal refinements of either Delaware Bay or the US North American coast. |
|
@pwolfram, I do want to migrate all global ocean cases to jigsaw, but need to have the old workflow for comparison, and to reproduce V1 meshes, at least for a while. Having separate directories makes it more clear which process we are using. It would be easy to change the name back later. |
pwolfram
left a comment
There was a problem hiding this comment.
Some minor questions / comments are added below. Looks great and the results are awesome!
There was a problem hiding this comment.
May want to make this 1000.0 just to be clear it is a float (and to avoid integer division issues).
There was a problem hiding this comment.
Should the lines above be templated to have a general header?
There was a problem hiding this comment.
It seems like this entire script is a complete copy. Perhaps this is ok but it may be worth only having one master copy of this type of code around for clarity.
There was a problem hiding this comment.
Same comment as previous-- should this be a command line argument option?
There was a problem hiding this comment.
Do we want all this commented out code to be included in this PR?
There was a problem hiding this comment.
Should this commented out code above be included in the PR?
|
@mark-petersen and @sbrus89, I had a few minor comments that may be worth considering prior to a final merge. Thanks for all your hard work on this process! |
|
@sbrus89 I am done for the night. Could you test your cases in this updated repo? I changed some names, but I tried to update everything. There is a chance that a link is broken. I separated your coastal routines from the mesh_definitions.py file because you needed two python libraries that were not standard on our IC python installation, and I thought it was cleaner to separate them anyway. See if that works. Also, did you mean to leave in this file: testing_and_setup/compass/ocean/global_ocean/template.sub |
There was a problem hiding this comment.
@sbrus89 here is the coastal file with your stuff. You probably want to name this something more specific than params, because it refers to a specific case. Best also to not put actual paths in the file here.
There was a problem hiding this comment.
@mark-petersen I agree. I'll change the name to default_params, since each case's define_base_mesh.py imports and then modifies each option.
Can I add the bathy data file to the initial_condition_database so it can be linked with the config_base_mesh.xml file?
|
Also, if you look in the QU60 and QU240 directories, I really simplified things, and made links to standard config files where I could. @sbrus89 I was afraid to change your US* files any more because I didn't want to break them. But you might find that you can simplify some of your files by just linking in as well. |
|
@mark-petersen I think I addressed most of the issues that you and Phil pointed out. I tested all three of my coastal mesh cases and they are working as expected. Let me know if there's anything else I can do on my end to help! Thanks again. |
|
@mark-petersen, are we ready to merge this now? I can get in some of my other test cases from here. Thanks! |
- Remove extra test cases - Remove test py files - Return general.config.ocean to default - Add USDEQU120cr10rr1 case - update EC60to30
20e2b41 to
3597522
Compare
mark-petersen
left a comment
There was a problem hiding this comment.
I am all done now. I tested my new cases, and also the EC60to30, and everything works. I also tested the the standard nightly test suite, which does not use these new cases yet, just to be safe.
@sbrus89 I used autopep8 to standardize the formatting, which changed your files too. Why don't you run one of your cases for a final check. Then @pwolfram can merge in, or I can, but I am flying out again in just a bit. Thanks for your work on this!
|
@sbrus89, please just let me know when you are ready following a final check and I'll do a quick check to make sure this works with the new cases I've built before I merge. Thanks for all the hard work on this @mark-petersen and @sbrus89! |
|
@pwolfram I ran a final check and everything works as expected. The autopep8 changes made some strange formatting choices in some places in coastal_tools.py. I have a commit that cleans some of that up, but I don't have to include it if you'd rather leave things as-is. |
|
@sbrus89, please include the commit and I'll test once you push it. |
|
@pwolfram, Sounds good. I just did. |
This PR provides functionality to use JIGSAW for COMPASS workflows
and adds some new coastally refined mesh capabilites.
* sbrus89/jigsaw_mesh_creation:
Change some autopep8 formatting in coastal_tools.py
remove old mesh definition tools
autopep8 formatting
Clean up for the pull request
Add coastal refinement capability.
Add mesh generation from jigsaw into Compass.
This commit matches bit-for-bit MPAS-O stand alone nightly regression test with previous e3sm/develop commit. Parent-branch merges into ocean/develop in this merge include: * 6e57d28 Merge branch 'ocean/add_iceberg_fluxes' into ocean/develop * 95042e2 Merge branch 'ocean/bgc_fesedflux_bug' into ocean/develop * 9ff33c6 Merge PR #90 'ocean/USNAEC60to30cr8' * 0f713df Merge PR #74 'ocean/jigsaw_mesh_creation' into ocean/develop
This PR provides functionality to use JIGSAW for COMPASS workflows
and adds some new coastally refined mesh capabilites.
* sbrus89/jigsaw_mesh_creation:
Change some autopep8 formatting in coastal_tools.py
remove old mesh definition tools
autopep8 formatting
Clean up for the pull request
Add coastal refinement capability.
Add mesh generation from jigsaw into Compass.
…m to WRF standards (MPAS-Dev#74) * Updating MYNN-EDMF submodule in MPAS, including file name changes to conform to WRF/MPAS norms. * updating MYNN-EDMF submodule with file name changes conforming to WRF * Fixing gnu-related compile error (From Mike Barlage) in MYNN submodule * Updating MYNN-EDMF submodule to better generalize the previous precision patch.

This pull request adds the capabilities to do coastal refined meshes using the jigsaw workflow.