Skip to content

Commit

Permalink
Merge pull request #603 from GEOS-ESM/bugFix/sanAkel/issues_594
Browse files Browse the repository at this point in the history
Fix for issue 594
  • Loading branch information
sdrabenh authored Sep 12, 2022
2 parents 6d845bf + c1bf908 commit de791ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4277,14 +4277,15 @@ subroutine REFRESH(IM,JM,LM,RC)
TKE(:,:,0) = 1e-6
TKE(:,:,LM) = 1e-6
else
TKE = MAPL_UNDEF
TKE = 1e-6 ! https://github.com/GEOS-ESM/GEOSgcm_GridComp/issues/594#issuecomment-1171360993
do L = 1,LM-1
TKE(:,:,L) = ( LAMBDADISS * &
( -1.*(KH(:,:,L)*MAPL_GRAV/((THV(:,:,L) + THV(:,:,L+1))*0.5) * ((THV(:,:,L) - THV(:,:,L+1))/(Z(:,:,L) - Z(:,:,L+1)))) + &
(KM(:,:,L)*((U(:,:,L) - U(:,:,L+1))/(Z(:,:,L) - Z(:,:,L+1)))*((U(:,:,L) - U(:,:,L+1))/(Z(:,:,L) - Z(:,:,L+1)))) + &
(KM(:,:,L)*((V(:,:,L) - V(:,:,L+1))/(Z(:,:,L) - Z(:,:,L+1)))*((V(:,:,L) - V(:,:,L+1))/(Z(:,:,L) - Z(:,:,L+1)))) )) ** 2
TKE(:,:,L) = TKE(:,:,L) ** (1./3.)
enddo
TKE = max(1e-6, TKE) ! https://github.com/GEOS-ESM/GEOSgcm_GridComp/issues/594#issuecomment-1171360993

! If not running SHOC, estimate ISOTROPY from KH and TKE,
! based on Eq. 7 from Bogenschutz and Krueger (2013).
Expand Down

0 comments on commit de791ee

Please sign in to comment.