Skip to content

Commit

Permalink
Update layerThickness halos after advection
Browse files Browse the repository at this point in the history
Update layerThickness halos after advection. This reduces the error
in a test with 500 m/yr face-melt, so it seems to be necessary, but
it does not solve the issue entirely.
  • Loading branch information
trhille committed Oct 20, 2023
1 parent fb51715 commit 8fe44f0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,10 @@ subroutine li_advection_thickness_tracers(&
enddo
endif

! Update halos after advection.
call mpas_timer_start("halo updates")
call mpas_dmpar_field_halo_exch(domain, 'layerThickness')
call mpas_timer_stop("halo updates")

! Calculate dynamicThickening (layerThickness is updated by advection at this point, while thickness is still old)
dynamicThickening = (sum(layerThickness, 1) - thickness) / dt * scyr ! units of m/yr
Expand Down

0 comments on commit 8fe44f0

Please sign in to comment.