From 3aac240f8ad80ab1d1b170a6def5d59002ab8ac2 Mon Sep 17 00:00:00 2001 From: ogurses Date: Mon, 14 Oct 2024 10:12:55 +0200 Subject: [PATCH] fix(recom): add missing directive for Vcocco MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add __coccos directive to ensure that sinking works when coccus are excluded … if (any(recom_cocco_tracer_id == tracer_id(tr_num))) Vben = VCocco … Is used when __coccos is activated. Otherwise, missing flag cause compilation error for the cases without coccos. --- src/oce_ale_tracer.F90 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/oce_ale_tracer.F90 b/src/oce_ale_tracer.F90 index c4f5781a2..634636606 100644 --- a/src/oce_ale_tracer.F90 +++ b/src/oce_ale_tracer.F90 @@ -1120,10 +1120,9 @@ subroutine ver_sinking_recom_benthos(tr_num,mesh) 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 defined (__coccos) if (any(recom_cocco_tracer_id == tracer_id(tr_num))) Vben = VCocco ! check conditions (#if defined (__coccos)) and add the necessary tracers numbers below OG: ! Adjust iphycalc - -#if defined (__coccos) if(tracer_id(tr_num)==1020) Vben = VCocco !iphycal in case of coccos #endif