Skip to content

Is solo adot#1138

Open
MJHarrison-GFDL wants to merge 4 commits into
NOAA-GFDL:dev/gfdlfrom
MJHarrison-GFDL:IS_solo_adot
Open

Is solo adot#1138
MJHarrison-GFDL wants to merge 4 commits into
NOAA-GFDL:dev/gfdlfrom
MJHarrison-GFDL:IS_solo_adot

Conversation

@MJHarrison-GFDL

Copy link
Copy Markdown

Support for solo ice shelf driver allowing for time-varing surface mass balance input from file using the MOM_parameter ICE_SMB_TIME_VARYING = True.


end subroutine update_shelf_mass

!>Update ice smb

@Hallberg-NOAA Hallberg-NOAA Jun 27, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this comment, please use a space after the doxygen comment and explicitly spell out "surface mass balance" so that this reads:

  !> Update the ice-shelf surface mass balance (SMB) field.

if (CS%debug) call hchksum(SMB, "updatte_ice_SMB", CS%Grid_in%HI, haloshift=0)
endif

return

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A return statement is not needed at the end of a subroutine, and generally should only be used for early exits.


if (CS%time_varying_smb) then
call time_interp_external(CS%smb_file, Time, SMB)
if (CS%debug) call hchksum(SMB, "updatte_ice_SMB", CS%Grid_in%HI, haloshift=0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Here "updatte_ice_SMB" should be "update_ice_SMB".

@Hallberg-NOAA Hallberg-NOAA left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for this new capability, @MJHarrison-GFDL. There are a few very minor corrections that need to be made before this PR is ready to go, but I do not expect there to be any complications.

As written, the 4 commits will be squashed because at least one of the intermediate commits will not compile, but there could be a case for keeping this as a series of commits, provided that each commit in the series does lead to code that correctly compiles.

@Hallberg-NOAA Hallberg-NOAA added enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description) labels Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Parameter change Input parameter changes (addition, removal, or description)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants