Skip to content

Commit a9ece7d

Browse files
committed
Clean up after rebase following Runge-Kutta merge
Clean up after rebase following Runge-Kutta merge
1 parent 461ef8e commit a9ece7d

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ subroutine li_advection_thickness_tracers(&
8181
geometryPool, &
8282
thermalPool, &
8383
scratchPool, &
84-
domain, &
8584
err, &
8685
advectTracersIn)
8786

@@ -111,8 +110,6 @@ subroutine li_advection_thickness_tracers(&
111110
!-----------------------------------------------------------------
112111
type (domain_type), intent(inout) :: domain !< Input/Output: domain object
113112

114-
type (domain_type), intent(inout) :: domain
115-
116113
type (mpas_pool_type), intent(inout) :: &
117114
velocityPool !< Input/output: velocity information
118115
! (needs to be inout for li_calculate_mask call

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ subroutine li_time_integrator_forwardeuler_rungekutta(domain, err)
8484
use li_velocity
8585
use li_bedtopo
8686
use li_mask
87-
use li_advection, only: li_grounded_to_floating
8887

8988
!-----------------------------------------------------------------
9089
! input variables
@@ -377,7 +376,7 @@ subroutine li_time_integrator_forwardeuler_rungekutta(domain, err)
377376
(1.0_RKIND - rkSSPweights(rkStage)) * layerThickness(:,:)
378377
thickness = sum(layerThickness, 1)
379378
! Calculate masks after updating thickness
380-
call li_calculate_mask(meshPool, velocityPool, geometryPool, err_tmp)
379+
call li_calculate_mask(meshPool, velocityPool, geometryPool, domain, err_tmp)
381380
err = ior(err, err_tmp)
382381

383382
if (trim(config_thermal_solver) .ne. 'none') then
@@ -481,7 +480,7 @@ subroutine li_time_integrator_forwardeuler_rungekutta(domain, err)
481480

482481
! Finalize budget updates
483482
! Update masks after RK integration
484-
call li_calculate_mask(meshPool, velocityPool, geometryPool, err_tmp)
483+
call li_calculate_mask(meshPool, velocityPool, geometryPool, domain, err_tmp)
485484
err = ior(err, err_tmp)
486485

487486
call mpas_pool_get_array(geometryPool, 'cellMask', cellMask)
@@ -493,10 +492,6 @@ subroutine li_time_integrator_forwardeuler_rungekutta(domain, err)
493492
call mpas_dmpar_field_halo_exch(domain, 'vertexMask')
494493
call mpas_timer_stop("halo updates")
495494

496-
! Calculate volume converted from grounded to floating
497-
! This needs to be determined after SMB/BMB are applied because those can change floating/grounded state
498-
call li_grounded_to_floating(cellMaskPrev, cellMask, thickness, groundedToFloatingThickness, nCells)
499-
500495
sfcMassBalApplied(:) = sfcMassBalAccum(:)
501496
groundedSfcMassBalApplied(:) = groundedSfcMassBalAccum(:)
502497
basalMassBalApplied(:) = basalMassBalAccum(:)
@@ -1103,7 +1098,6 @@ subroutine advection_solver(domain, err)
11031098
geometryPool, &
11041099
thermalPool, &
11051100
scratchPool, &
1106-
domain, &
11071101
err_tmp, &
11081102
advectTracersIn = .true.)
11091103

@@ -1123,7 +1117,6 @@ subroutine advection_solver(domain, err)
11231117
geometryPool, &
11241118
thermalPool, &
11251119
scratchPool, &
1126-
domain, &
11271120
err_tmp, &
11281121
advectTracersIn = .false.)
11291122

0 commit comments

Comments
 (0)