44 SUBROUTINE otlft(PBND,TBND,QBND,SLINDX)
48 use vrbls2d,
only: t500
49 use lookup_mod,
only: thl, rdth, jtb, qs0, sqs, rdq, itb, ptbl, &
50 pl, rdp, the0, sthe, rdthe, ttbl
51 use ctlblk_mod,
only: jsta, jend, im, spval, ista, iend
52 use params_mod,
only: d00, h10e5, capa, elocp, eps, oneps
53 use upp_physics,
only: fpvsnew
58 real,
PARAMETER :: D8202=.820231e0 , h5e4=5.e4 , p500=50000.
62 real,
dimension(ista:iend,jsta:jend),
intent(in) :: PBND,TBND,QBND
63 real,
dimension(ista:iend,jsta:jend),
intent(out) :: SLINDX
64 REAL :: TVP, ESATP, QSATP
65 REAL :: BQS00, SQS00, BQS10, SQS10, P00, P10, P01, P11, BQ, SQ, TQ
66 REAL :: BTHE00, STHE00, BTHE10, STHE10, BTH, STH, TTH
67 REAL :: T00, T10, T01, T11, TBT, QBT, APEBT, TTHBT, PPQ, PP
68 REAL :: TQQ, QQ, TPSP, APESP, TTHES, TP, PARTMP
70 INTEGER :: I, J, ITTBK, IQ, IT, IPTBK, ITH, IP
71 INTEGER :: ITTB, IQTB, IPTB, ITHTB
92 if( tbt < spval )
then
94 apebt = (h10e5/pbnd(i,j))**capa
124 bq=(bqs10-bqs00)*tqq+bqs00
125 sq=(sqs10-sqs00)*tqq+sqs00
152 tpsp = p00+(p10-p00)*ppq+(p01-p00)*tqq &
153 +(p00-p10-p01+p11)*ppq*tqq
154 IF(tpsp <= d00) tpsp = h10e5
155 apesp = (h10e5/tpsp)**capa
156 tthes = tthbt*exp(elocp*qbt*apesp/tthbt)
188 bth=(bthe10-bthe00)*qq+bthe00
189 sth=(sthe10-sthe00)*qq+sthe00
190 tth=(tthes-bth)/sth*rdthe
217 partmp=(t00+(t10-t00)*pp+(t01-t00)*qq &
218 +(t00-t10-t01+t11)*pp*qq)
220 partmp=tbt*apebt*d8202
230 esatp=fpvsnew(partmp)
231 qsatp=eps*esatp/(p500-esatp*oneps)
232 tvp=partmp*(1+0.608*qsatp)
233 slindx(i,j)=t500(i,j)-tvp