Repository navigation
Add submodules for ocean/develop and landice/develop - #4
Conversation
We don't want people's work directories getting committed.
|
@mark-petersen and @matthewhoffman, this should be really simple to review. Just make sure you agree that the submodules are indeed set to the current |
| local.config | ||
|
|
||
| # exclude any new worktrees added | ||
| MPAS-Model/* |
There was a problem hiding this comment.
This is really nice. It didn't sink in that we could have multiple worktrees at this level within a compass repo. Thanks for thinking of this as a workflow.
mark-petersen
left a comment
There was a problem hiding this comment.
I tested this by compiling within the submodule,
MPAS-Model/ocean/develop
and altering general.config.ocean to point there. It all works fine.
Could you update the ocean/develop submodule to the head 53837597? We merged a nice performance improvement this morning.
Going forward, we can see how often we want to update. If we update with MPAS namelist change PRs, I think it will be every week or two. But we are well practiced at submodules, so I think it will be smooth.
Done.
Yeah, I don't have a feel yet for how often we need to update. Eventually, I want to have a check in the other direction, at least for MPAS-Ocean so we can mark which |
|
@matthewhoffman and @mark-petersen, thanks again! |
Addressed review comments MPAS-Dev#1, MPAS-Dev#2, MPAS-Dev#3, MPAS-Dev#4, MPAS-Dev#5, MPAS-Dev#6, MPAS-Dev#7, MPAS-Dev#8 from the Copilot review. Deferred MPAS-Dev#9 (Dask dependency) and MPAS-Dev#10 (test suite) as low priority. CODE FIXES: region) to the nearest region by great-circle distance (cKDTree), instead of silently assigning them to basin 1 via argmax. Overlapping cells (multiple regions) still pick the first matching region. Added lat/lon parameters to build_basin_ids and updated the call site in load_mesh_and_basins. greenland_3d.py so only the public API (Config and run) remains non- underscored. This satisfies the repository convention that non-underscore module-scope symbols should be documented in api.rst. ice) with a finite JSON target would crash calibrate_gamma0 instead of being excluded. Now NaN out empty regions in the target array before calibration, so active_regions correctly excludes both NaN targets and empty regions. DOC FIXES: (it uses forcing_interval_annual). GrIS 3D stays in Monthly (correct). {mesh}_2dThermalForcing_*.nc (GrIS) and {mesh}_3dThermalForcing_*.nc (AIS; optional GrIS), and fixed lowercase smb→SMB. locations (user/dev ismip7_forcing.rst) since the checked-in JSON requests 20 levels and it's configurable. NETCDF3_64BIT" to "netCDF4 engine → nccopy -k nc6 for CDF-2" (actual implementation uses netCDF4 + nccopy conversion). block (required by ismip7_run as melt_params_path but was undocumented). Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
This merge adds submodules for ocean/develop and landice/develop. These submodules will be maintained as the official versions of MPAS-Ocean and MALI that COMPASS is intended to be compatible with at a given time.