You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am running into issues with the TKE closure with the Bougeault and Andre length scale (I believe this is the default scheme that is also used in NEMO).
I have infinite values of dissipation epsilon. I looked at the routine potentialml and it seems that indeed we have ld(1) = 0 (at the lowest level the downward length scale is zero). This causes the length scale L(1) to be also zero and dissipation to be infinite. I suspect this is due to the goto 610 which does not allow to increment ld as it should (a couple of lines below, we have ld(i)=ld(i)+h(j) which is never realized at the bottom).
a quick fix is to add a minimum value for ld at the end of this loop: something like this fixes the problem:
610 continue
! if (ld(i).gt.db(i)) ld(i)=db(i) !ld limited by distance to bottom
if (ld(i).le.0.0) ld(i) = db(i)
This may not be the correct fix. I am happy to implement another suggestion if you tell me a better way.
Activity
bolding commentedon Feb 3, 2025
It seems this has not been dealt with yet - I'll talk to Hans about it.