From 9c16aa07e91509326b8ceec5c1a4bd2b677394b1 Mon Sep 17 00:00:00 2001 From: ackerlar Date: Wed, 30 Oct 2024 20:57:27 +0100 Subject: [PATCH] treat icb heat flux as heat source per layer and remove outgoing heat flux --- src/oce_ale_tracer.F90 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/oce_ale_tracer.F90 b/src/oce_ale_tracer.F90 index 6704714ff..bb40ff335 100644 --- a/src/oce_ale_tracer.F90 +++ b/src/oce_ale_tracer.F90 @@ -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