Skip to content

Ice dynamics#1387

Merged
Hallberg-NOAA merged 11 commits into
mom-ocean:dev/gfdlfrom
OlgaSergienko:ice_dynamics
May 14, 2021
Merged

Ice dynamics#1387
Hallberg-NOAA merged 11 commits into
mom-ocean:dev/gfdlfrom
OlgaSergienko:ice_dynamics

Conversation

@OlgaSergienko
Copy link
Copy Markdown
Contributor

@OlgaSergienko OlgaSergienko commented Apr 29, 2021

This PR includes modifications for MOM_ice_shelf_dynamics.F90 that allows for runs with both symmetric and non-symmetric memory. MOM_ice_shelf_initialize.F90 includes a new subroutine initialize_ice_shelf_boundary_from_file that reads ice-shelf velocity boundary conditions (values, masks, etc).

A test case for a symmetric case is
/lustre/f2/dev/gfdl/Olga.Sergienko/MOM6expls/ocean_only/ice_shelf_solo/IS2Dincl_plane_layer_sym/
A test case fro a non-symmetric case is
/lustre/f2/dev/gfdl/Olga.Sergienko/MOM6expls/ocean_only/ice_shelf_solo/IS2Dincl_plane_layer/

Comment thread src/ice_shelf/MOM_ice_shelf_dynamics.F90 Outdated
Comment thread src/ice_shelf/MOM_ice_shelf_dynamics.F90 Outdated
Comment thread src/ice_shelf/MOM_ice_shelf_dynamics.F90 Outdated
! previously allocated for registration for restarts.

if (active_shelf_dynamics) then
allocate( CS%u_bdry_val(Isdq:Iedq,Jsdq:Jedq) ) ; CS%u_bdry_val(:,:) = 0.0
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.

All of these memory declarations are problematic, and would not work for variables on a C-grid with symmetric memory. See the comment about about CS%u_shelf and CS%v_shelf for guidance on how to fix it.

Comment thread src/ice_shelf/MOM_ice_shelf_dynamics.F90 Outdated
Comment thread src/ice_shelf/MOM_ice_shelf_dynamics.F90 Outdated
a new subroutine (initialize_ice_shelf_boundary_from_file) in MOM_ice_shelf_initialize.F90 to read b.c.s from file
Copy link
Copy Markdown
Collaborator

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

Upon visual inspection, everything here seems like it could be OK, although we do not have a test case that exercises this code. Because this code is still under development, I think that this can be safely approved, but with the awareness that there may be additional updates that change answers in some instances before this code is finalized or put into regular use.

@Hallberg-NOAA
Copy link
Copy Markdown
Collaborator

This PR just passed the pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/12662.

@Hallberg-NOAA Hallberg-NOAA merged commit 4dcc194 into mom-ocean:dev/gfdl May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants