Skip to content

Commit

Permalink
fix(recom): correct variable sinking into benthos for Phy and Dia
Browse files Browse the repository at this point in the history
Fix variable sinking into benthos for Phy and Dia

Frauke detected an error in variable sinking routine.
Despide, zero sinking speed for Phy and Dia in the
namelist.recom, the depth dependent sinking cause
Phy and Dia to reach benthos !!!!! We let
slow-sinking detritus to sink into
benthos with variable speed.
  • Loading branch information
ogurses committed Sep 25, 2024
1 parent 3d25748 commit 181a3e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions src/oce_ale_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1116,10 +1116,11 @@ subroutine ver_sinking_recom_benthos(tr_num,mesh)

! 1) Calculate sinking velociy for vertical sinking case
! ******************************************************
if (allow_var_sinking) then
if (any(recom_det_tracer_id == tracer_id(tr_num))) Vben = Vdet
if (any(recom_phy_tracer_id == tracer_id(tr_num))) Vben = VPhy
if (any(recom_dia_tracer_id == tracer_id(tr_num))) Vben = VDia

if (any(recom_det_tracer_id == tracer_id(tr_num))) Vben = Vdet
if (any(recom_phy_tracer_id == tracer_id(tr_num))) Vben = VPhy
if (any(recom_dia_tracer_id == tracer_id(tr_num))) Vben = VDia
if (allow_var_sinking .and. any(recom_det_tracer_id == tracer_id(tr_num))) then
Vben = Vdet_a * abs(zbar_3d_n(:,n)) + Vben
end if

Expand Down
2 changes: 1 addition & 1 deletion src/recom_sinking.F90
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ subroutine recom_sinking_new(tr_num,mesh)
#endif
end if

!! No sinking if background sinking velocity is less than 0.1 m/day
!! Very low or no sinking if background sinking velocity is less than 0.1 m/day
if (Vsink .gt. 0.1) then

do n = 1,myDim_nod2D
Expand Down

0 comments on commit 181a3e5

Please sign in to comment.