Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/core_seaice/shared/mpas_seaice_berg_decay.F
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,26 @@ subroutine seaice_run_berg_decay(domain, clock)!{{{
logical, pointer :: &
config_berg_allow_rollover ! flag to turn on / off berg rollover due to instability

type(MPAS_pool_type), pointer :: &
bergVelocitySolverPool

real(kind=RKIND), dimension(:,:), pointer :: &
uBergVelocity, & ! berg velocity
vBergVelocity

call MPAS_pool_get_subpool(domain % blocklist % structs, "berg_velocity_solver", bergVelocitySolverPool)

call MPAS_pool_get_array(bergVelocitySolverPool, "uBergVelocity", uBergVelocity)
call MPAS_pool_get_array(bergVelocitySolverPool, "vBergVelocity", vBergVelocity)

call MPAS_pool_get_config(domain % configs, "config_berg_allow_rollover", config_berg_allow_rollover)

! halo exchange
call mpas_timer_start("Berg velocity solver halo")
call MPAS_dmpar_field_halo_exch(domain, 'uBergVelocity')
call MPAS_dmpar_field_halo_exch(domain, 'vBergVelocity')
call mpas_timer_stop("Berg velocity solver halo")

block => domain % blocklist
do while (associated(block))

Expand Down