From 181a3e5ae07e26b08a7d142acf201b36e9375ccc Mon Sep 17 00:00:00 2001 From: ogurses Date: Wed, 25 Sep 2024 16:18:05 +0200 Subject: [PATCH] fix(recom): correct variable sinking into benthos for Phy and Dia 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. --- src/oce_ale_tracer.F90 | 9 +++++---- src/recom_sinking.F90 | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/oce_ale_tracer.F90 b/src/oce_ale_tracer.F90 index 2c2e45970..621734792 100644 --- a/src/oce_ale_tracer.F90 +++ b/src/oce_ale_tracer.F90 @@ -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 diff --git a/src/recom_sinking.F90 b/src/recom_sinking.F90 index c3964b15c..8a0317856 100644 --- a/src/recom_sinking.F90 +++ b/src/recom_sinking.F90 @@ -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