Skip to content

Commit

Permalink
Calculate layerThickness after calving in RK loop
Browse files Browse the repository at this point in the history
Calculate layerThickness after calving in RK loop, which is necessary
when calculating weighted averages for RK integration.
  • Loading branch information
trhille committed Nov 2, 2023
1 parent 813ee05 commit 5e23b98
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ subroutine li_time_integrator_forwardeuler_rungekutta(domain, err)
call mpas_pool_get_array(thermalPool, 'temperature', temperature)
call mpas_pool_get_array(thermalPool, 'waterFrac', waterFrac)
! get layerThickness after calving
call li_calculate_layerThickness(meshPool, thickness, layerThickness)
layerThicknessTmp(:,:) = layerThickness(:,:)
layerThickness(:,:) = rkSSPweights(rkStage) * layerThicknessPrev(:,:) + &
(1.0_RKIND - rkSSPweights(rkStage)) * layerThickness(:,:)
Expand Down

0 comments on commit 5e23b98

Please sign in to comment.