/[MITgcm]/MITgcm/pkg/kpp/kpp_routines.F
ViewVC logotype

Diff of /MITgcm/pkg/kpp/kpp_routines.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.13 by dimitri, Sat Dec 28 10:11:11 2002 UTC revision 1.14 by dimitri, Tue Feb 18 05:33:55 2003 UTC
# Line 183  c--------------------------------------- Line 183  c---------------------------------------
183    
184  c-----------------------------------------------------------------------  c-----------------------------------------------------------------------
185  c combine interior and boundary layer coefficients and nonlocal term  c combine interior and boundary layer coefficients and nonlocal term
186    c !!!NOTE!!! In shallow (2-level) regions and for shallow mixed layers
187    c (< 1 level), diffusivity blmc can become negative.  The max's below
188    c are a hack until this problem is properly diagnosed and fixed.
189  c-----------------------------------------------------------------------  c-----------------------------------------------------------------------
   
190        do k = 1, Nr        do k = 1, Nr
191           do i = 1, imt           do i = 1, imt
192              if (k .lt. kbl(i)) then              if (k .lt. kbl(i)) then
193                 do md = 1, mdiff                 diffus(i,k,1) = max ( blmc(i,k,1), viscAr  )
194                    diffus(i,k,md) = blmc(i,k,md)                 diffus(i,k,2) = max ( blmc(i,k,2), diffKrS )
195                 end do                 diffus(i,k,3) = max ( blmc(i,k,3), diffKrT )
196              else              else
197                 ghat(i,k) = 0.                 ghat(i,k) = 0.
198              endif              endif

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.22