Skip to content

Commit aebdd62

Browse files
committed
Update halos for damage before applying to stiffnessFactor
Update halos for damage before applying to stiffnessFactor. Testing showed imprinting of the decomposition on damage and stiffnessFactor fields before applying this halo update.
1 parent fe6b0e8 commit aebdd62

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

components/mpas-albany-landice/src/mode_forward/mpas_li_calving.F

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,6 +3331,11 @@ subroutine li_calculate_damage(domain, err)
33313331
err = ior(err, 1)
33323332
endif
33333333
3334+
call mpas_timer_start("halo updates")
3335+
call mpas_dmpar_field_halo_exch(domain, 'damage')
3336+
call mpas_dmpar_field_halo_exch(domain, 'damageNye')
3337+
call mpas_timer_stop("halo updates")
3338+
33343339
if (config_print_calving_info) then
33353340
! End of routine accounting/reporting
33363341
localMinInfo(1) = minval(damageSource)
@@ -3538,6 +3543,13 @@ subroutine li_finalize_damage_after_advection(domain, err)
35383543
damage = 1.0_RKIND
35393544
end where
35403545
3546+
! Halo update for damage before applying to stiffnessFactor
3547+
! NOTE: THIS WILL NOT WORK ON MULTIPLE BLOCKS PER PROCESSOR
3548+
call mpas_timer_start("halo updates")
3549+
call mpas_dmpar_field_halo_exch(domain, 'damage')
3550+
call mpas_dmpar_field_halo_exch(domain, 'damageNye')
3551+
call mpas_timer_stop("halo updates")
3552+
35413553
if (config_damage_rheology_coupling) then
35423554
do iCell = 1, nCells
35433555
if (li_mask_is_floating_ice(cellMask(iCell))) then

0 commit comments

Comments
 (0)