Boundary conditions - v13 based on MOM6/v2 ocean bathymetry (OM4) #1149
Boundary conditions - v13 based on MOM6/v2 ocean bathymetry (OM4) #1149
Conversation
gmao-rreichle
left a comment
There was a problem hiding this comment.
see comments below
...dComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_questionary.py
Outdated
Show resolved
Hide resolved
...gcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_cube.py
Outdated
Show resolved
Hide resolved
...idComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/rmTinyCatchParaMod.F90
Outdated
Show resolved
Hide resolved
...idComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/rmTinyCatchParaMod.F90
Outdated
Show resolved
Hide resolved
|
I have make changes based on the given comments. Please let me know what you think about this version. Thank you @gmao-rreichle @mathomp4 @biljanaorescanin |
gmao-rreichle
left a comment
There was a problem hiding this comment.
Thanks, @sinakhani. See more comments below
...dComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_questionary.py
Outdated
Show resolved
Hide resolved
...gcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_cube.py
Outdated
Show resolved
Hide resolved
...dComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_questionary.py
Outdated
Show resolved
Hide resolved
...idComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/rmTinyCatchParaMod.F90
Outdated
Show resolved
Hide resolved
a4f68f7 to
02fe5c7
Compare
|
I just cleaned up the text for merged cases "v12", "v13", and "v14". Please feel free to make further changes. Thank you. |
|
This PR was tested for BCS creation for both old |
gmao-rreichle
left a comment
There was a problem hiding this comment.
see comments below
...gcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_cube.py
Outdated
Show resolved
Hide resolved
...gcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_cube.py
Outdated
Show resolved
Hide resolved
…heet; disable for now
…proc/topography/obsolete; update headers in Fortran/Python drivers
...gcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_ease.py
Outdated
Show resolved
Hide resolved
...m_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_shared.py
Outdated
Show resolved
Hide resolved
|
@gmao-rreichle I think I implemented all your comments but please let me know if I missed something. |
|
I've re-tested few grids and res just to confirm it is zero diff to before and what we want as far as behavior. And all looks good. |
…ake_bcs_shared.py, rmTinyCatchParaMod.F90)
gmao-rreichle
left a comment
There was a problem hiding this comment.
@biljanaorescanin : I just pushed a commit with a few minor updates to the comments and white space. One of the updates might affect a log file, so technically it may not be zero-diff w.r.t. the v13 bcs that you already generated. But there's no need to re-generate the v13 bcs just because of the minimal log file change.
See also in-line comments below.
| TOPO_VERSION = TOPO_VERSION, | ||
| mom6_bathy_version = MOM6_BATHY_VERSION, |
There was a problem hiding this comment.
Don't we need to end these lines with "\"?
| def _normalize_lbcsv(label: str) -> str: | ||
| v = (label or "").strip() | ||
| m = re.match(r'[vV]?\d+|[A-Za-z0-9]+', v) # accepts v13 / 13 / NL3 / etc. | ||
| if not m: | ||
| return v | ||
| key = m.group(0) | ||
| # normalize numeric like '13' -> 'v13' | ||
| if key.isdigit(): | ||
| key = 'v' + key | ||
| return key |
There was a problem hiding this comment.
Why do we need this "normalize" function? Don't we always have a 3-char alphanumeric string for "bcs_version"? When would we have "bcs_version=13" (without the leading "v")?
Uh oh!
There was an error while loading. Please reload this page.