Skip to content

Commit

Permalink
Adds meltw and melth into FW_in and heat_in, respectively
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-marques committed Dec 3, 2018
1 parent 07b8936 commit c284cdd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/diagnostics/MOM_sum_output.F90
Expand Up @@ -952,6 +952,10 @@ subroutine accumulate_net_input(fluxes, sfc_state, dt, G, CS)
endif
endif

if (associated(fluxes%meltw)) then ; do j=js,je ; do i=is,ie
FW_in(i,j) = FW_in(i,j) + dt * G%areaT(i,j) * fluxes%meltw(i,j)
enddo ; enddo ; endif

salt_in(:,:) = 0.0 ; heat_in(:,:) = 0.0
if (CS%use_temperature) then

Expand All @@ -960,6 +964,10 @@ subroutine accumulate_net_input(fluxes, sfc_state, dt, G, CS)
(fluxes%lw(i,j) + (fluxes%latent(i,j) + fluxes%sens(i,j))))
enddo ; enddo ; endif

if (associated(fluxes%melth)) then ; do j=js,je ; do i=is,ie
heat_in(i,j) = heat_in(i,j) + dt*G%areaT(i,j) * fluxes%melth(i,j)
enddo ; enddo ; endif

! smg: new code
! include heat content from water transport across ocean surface
! if (associated(fluxes%heat_content_lprec)) then ; do j=js,je ; do i=is,ie
Expand Down

0 comments on commit c284cdd

Please sign in to comment.