Skip to content

Add submodules for ocean/develop and landice/develop - #4

Merged
xylar merged 3 commits into
MPAS-Dev:masterfrom
xylar:add_submodules
Nov 9, 2020
Merged

xylar merged 3 commits into
MPAS-Dev:masterfrom
xylar:add_submodules

Conversation

@xylar

@xylar xylar commented Nov 6, 2020

Copy link
Copy Markdown
Collaborator

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.

xylar added 2 commits November 6, 2020 11:01
We don't want people's work directories getting committed.
@xylar

xylar commented Nov 6, 2020

Copy link
Copy Markdown
Collaborator Author

@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 ocean/develop and landice/develop.

Comment thread .gitignore
local.config

# exclude any new worktrees added
MPAS-Model/*

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 mark-petersen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@xylar

xylar commented Nov 9, 2020

Copy link
Copy Markdown
Collaborator Author

Could you update the ocean/develop submodule to the head 53837597? We merged a nice performance improvement this morning.

Done.

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.

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 compass version is (or versions are) compatible with a given checkout of MPAS-Ocean. But for now I think we will just have to get a feel for it.

@xylar
xylar merged commit d436987 into MPAS-Dev:master Nov 9, 2020
@xylar
xylar deleted the add_submodules branch November 9, 2020 21:41
@xylar

xylar commented Nov 9, 2020

Copy link
Copy Markdown
Collaborator Author

@matthewhoffman and @mark-petersen, thanks again!

trhille added a commit to trhille/compass that referenced this pull request Sep 26, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants