-
Notifications
You must be signed in to change notification settings - Fork 371
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
[MPAS-Ocean standalone] Allow land-ice topo to come from MPAS variables #5553
[MPAS-Ocean standalone] Allow land-ice topo to come from MPAS variables #5553
Conversation
if (config_global_ocean_land_ice_topo_file == 'none' .and. & | ||
config_global_ocean_topography_source == 'latlon_file') then | ||
call mpas_log_write( 'Validation failed for global ocean. '// & | ||
'Invalid filename for config_global_ocean_land_ice_topo_file', MPAS_LOG_CRIT) | ||
iErr = 1 | ||
return |
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.
Previously, you had to provide a placeholder name for config_global_ocean_land_ice_topo_file
even if you used config_global_ocean_topography_source = 'mpas_variable'
. With this change, you should no longer get an error when you don't provide a placeholder filename.
TestingI have run this in conjunction with MPAS-Dev/compass#566. The topography (bathymetry, ice draft, ice thickness and various masks) are remapped outside of MPAS-Ocean init mode using a conservative mapping file. Then, the results are read in using The |
@sbrus89 and @mark-petersen, I'd appreciate your review on this when you can. It's somewhat urgent because we have a lot of steps to get working before we can make E3SM v3 meshes, and this is early in the chain. |
No my |
2151da7
to
572b82d
Compare
In the same way that we could previously bypass the interpolation from a lat-lon file for bathymetry, this merge allows us to bypass the interpolation of variables related to land-ice topography and instead read them in from a stream.
572b82d
to
b540d3d
Compare
@mark-petersen and @sbrus89, This now passes the compass |
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.
Thanks. This looks good. Approving based on visual inspection and the bfb match on the pr
test suite, which includes initialization of global meshes.
Thanks @mark-petersen! |
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.
@xylar, this is BFB for the tides test case. I just have one minor comment.
components/mpas-ocean/src/mode_init/mpas_ocn_init_global_ocean.F
Outdated
Show resolved
Hide resolved
@sbrus89, could you have another look as soon as you're able? |
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.
@xylar, this looks good to me. Thanks for adding the additional logic. I was also going to suggest the unexpected value error, so I like that change as well.
…tream' into next (PR #5553) Allow land-ice topo to come from MPAS variables This applies only to the global_ocean test case in init mode for standalone MPAS-Ocean. E3SM simulations are unaffected. In the same way that we could previously bypass the interpolation from a lat-lon file for bathymetry, this merge allows us to bypass the interpolation of variables related to land-ice topography and instead read them in from a stream. [BFB]
passes sanity testing, merged to next |
merged to master |
Thanks so much @jonbob, @sbrus89 and @mark-petersen! |
This merge updates the E3SM-Project submodule from [c9201a4](https://github.com/E3SM-Project/E3SM/tree/c9201a4f44540bb74cb3650e32bcbe27fb762ab1) to [b4d5b10600](https://github.com/E3SM-Project/E3SM/tree/b4d5b10600). This update includes the following MPAS-Ocean and MPAS-Frameworks PRs (check mark indicates bit-for-bit with previous PR in the list): - [ ] (ocn) E3SM-Project/E3SM#5254 - [ ] (fwk) E3SM-Project/E3SM#5490 - [ ] (ocn) E3SM-Project/E3SM#5541 - [ ] (fwk) E3SM-Project/E3SM#5498 - [ ] (ocn) E3SM-Project/E3SM#5564 - [ ] (ocn) E3SM-Project/E3SM#5553 - [ ] (ocn) E3SM-Project/E3SM#5519
This applies only to the
global_ocean
test case ininit
mode for standalone MPAS-Ocean. E3SM simulations are unaffected.In the same way that we could previously bypass the interpolation from a lat-lon file for bathymetry, this merge allows us to bypass the interpolation of variables related to land-ice topography and instead read them in from a stream.
[BFB]