Skip to content

Commit

Permalink
Merge branch 'main' into workbench_kickout_duplicated_curlv
Browse files Browse the repository at this point in the history
  • Loading branch information
JanStreffing authored Oct 31, 2024
2 parents 2ffe133 + 8231e55 commit e330429
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/oce_ale_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,11 @@ subroutine diff_ver_part_impl_ale(tr_num, dynamics, tracers, ice, partit, mesh)
!_______________________________________________________________________
! case of activated shortwave penetration into the ocean, ad 3d contribution
if (use_icebergs .and. (.not. turn_off_hf) .and. tracers%data(tr_num)%ID==1) then
do nz=nzmin, nzmax-1
do nz=nzmin, nzmax

zinv=1.0_WP*dt !/(zbar(nz)-zbar(nz+1)) ale!
!!PS tr(nz)=tr(nz)+(sw_3d(nz, n)-sw_3d(nz+1, n) * ( area(nz+1,n)/areasvol(nz,n)) ) * zinv
tr(nz)=tr(nz)+(ibhf_n(nz, n)-ibhf_n(nz+1, n) * area(nz+1,n)/areasvol(nz,n)) * zinv / vcpw
tr(nz)=tr(nz) + ibhf_n(nz, n) * zinv / vcpw
end do
end if

Expand Down

0 comments on commit e330429

Please sign in to comment.