36 SUBROUTINE trpaus(PTROP,TTROP,ZTROP,UTROP,VTROP,SHTROP)
42 use vrbls3d,
only: pint, t, zint, uh, vh
44 use params_mod,
only: d50
45 use ctlblk_mod,
only: jsta, jend, spval, im, jm, lm, &
54 real,
PARAMETER :: CRTLAP=0.002e0, pstart=5.0e4
58 REAL,
dimension(IM,JM),
intent(out) :: PTROP,TTROP,ZTROP,UTROP, &
60 REAL TLAPSE(LM),DZ2(LM),DELT2(LM),TLAPSE2(LM)
63 real PM,DELT,DZ,RSQDIF
95 loopl:
DO l=llmh-1,2,-1
97 delt = t(i,j,l-1)-t(i,j,l)
98 dz = d50*(zint(i,j,l-1)-zint(i,j,l+1))
101 IF ((tlapse(l)<crtlap).AND.(pm<pstart))
THEN
102 IF (l == 2 .AND. tlapse(l) < crtlap)
GOTO 15
109 dz2(ll) = (2./3.)*(zint(i,j,ll-2)-zint(i,j,l+1))
110 IF ((dz2(ll) > 2000.) .AND. &
111 (dz2(ll+1) > 2000.))
GO TO 15
112 delt2(ll) = t(i,j,ll-2)-t(i,j,l)
113 tlapse2(ll) = -delt2(ll)/dz2(ll)
115 IF (tlapse2(ll) > crtlap)
THEN
124 15 ptrop(i,j) = d50*(pint(i,j,l)+pint(i,j,l+1))
125 ttrop(i,j) = t(i,j,l)
126 ztrop(i,j)= 0.5*(zint(i,j,l)+zint(i,j,l+1))
128 utrop(i,j) = uh(i,j,l)
129 vtrop(i,j) = vh(i,j,l)
130 dz = zint(i,j,l)-zint(i,j,l+1)
131 rsqdif = sqrt(((uh(i,j,l-1)-uh(i,j,l+1))*0.5)**2 &
132 & +((vh(i,j,l-1)-vh(i,j,l+1))*0.5)**2)
133 shtrop(i,j) = rsqdif/dz
140 dz = d50*(zint(i,j,2)-zint(i,j,3))
141 ptrop(i,j) = d50*(pint(i,j,2)+pint(i,j,3))
142 ttrop(i,j) = t(i,j,2)
143 ztrop(i,j)= d50*(zint(i,j,2)+zint(i,j,3))
144 utrop(i,j) = uh(i,j,2)
145 vtrop(i,j) = vh(i,j,2)
146 rsqdif = sqrt(((uh(i,j,1)-uh(i,j,3))*0.5)**2 &
147 & +((vh(i,j,1)-vh(i,j,3))*0.5)**2)
148 shtrop(i,j) = rsqdif/dz