Error in sign of the non-local term of the vertical turbulent flux in KPP scheme

Hello,

I was informed of an (apparently) known bug in croco’s code concerning the non-local contribution of the vertical turbulent flux in the KPP scheme. It is located in the file “croco-vX.X.X/OCEAN/step3d_t.F”, in line 586:

# ifdef LMD_NONLOCAL
! & -dt*ghats(i,j,k)*(stflx(i,j,itemp)-srflx(i,j))
& +dt*ghats(i,j,k)*(stflx(i,j,itemp)-srflx(i,j))

endif

The commented line is the code as it is downloaded, the next line is the correction substituting the “-” sign for a “+” sign.

This section of the code refers to the article Large et al. 1994, it is computing the non-local contribution in Equation (9), that should be positive.

This term should be stratificating, but with the minus sign it is destratificating. Take the case of cooling of the Boundary Layer, for which stflx-srflx < 0 (ghats > 0), therefore the contribution to FC:

  • With the “-” sign: was positive, a flux upwards.
  • With the “+” sign: would be negative, a flux downwards.

I did not find any reference to this matter and for this reason I create this topic to verify whether this is correct and how well known it is in the croco community.

1 Like

Thank you for your message.

Yes this is a known problem that is under treatment.

Regards,

1 Like