Skip to content

Commit

Permalink
fix(recom): add missing directive for Vcocco
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ogurses committed Oct 14, 2024
1 parent 62230f0 commit 3aac240
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/oce_ale_tracer.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3aac240

Please sign in to comment.