Skip to content

Commit

Permalink
Fix accidental doubling of faceMeltingFlux
Browse files Browse the repository at this point in the history
Fix accidental doubling of faceMeltingFlux when calculating global
stats.
  • Loading branch information
trhille committed Oct 18, 2023
1 parent 479ba60 commit fb51715
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,18 +369,14 @@ subroutine li_compute_global_stats(domain, memberName, timeLevel, err)
blockSumFloatingCalvingFlux = blockSumFloatingCalvingFlux + floatingCalvingThickness(iCell) * &
areaCell(iCell) * rhoi / ( deltat / scyr )

! mass loss due to calving (kg yr^{-1})
! mass loss due to face-melting (kg yr^{-1})
blockSumFaceMeltingFlux = blockSumFaceMeltingFlux + faceMeltingThickness(iCell) * &
areaCell(iCell) * rhoi / ( deltat / scyr )
blockSumGroundedFaceMeltingFlux = blockSumGroundedFaceMeltingFlux + groundedFaceMeltingThickness(iCell) * &
areaCell(iCell) * rhoi / ( deltat / scyr )
blockSumFloatingFaceMeltingFlux = blockSumFloatingFaceMeltingFlux + floatingFaceMeltingThickness(iCell) * &
areaCell(iCell) * rhoi / ( deltat / scyr )

! mass loss due to face-melting (kg yr^{-1})
blockSumFaceMeltingFlux = blockSumFaceMeltingFlux + faceMeltingThickness(iCell) * &
areaCell(iCell) * rhoi / ( deltat / scyr )

! max surface speed
if (surfaceSpeed(iCell) > blockMaxSurfaceSpeed) then
blockMaxSurfaceSpeed = surfaceSpeed(iCell)
Expand Down

0 comments on commit fb51715

Please sign in to comment.