21 SUBROUTINE caldwp(P1D,Q1D,TDWP,T1D)
27 use ctlblk_mod
, only: jsta, jend, im, spval
33 REAL,
dimension(IM,jsta:jend),
intent(in) :: p1d,q1d,t1d
34 REAL,
dimension(IM,jsta:jend),
intent(inout) :: tdwp
36 REAL evp(im,jsta:jend)
47 IF(p1d(i,j)<spval .and. q1d(i,j)<spval)
THEN
48 evp(i,j) = p1d(i,j)*q1d(i,j)/(eps+oneps*q1d(i,j))
49 evp(i,j) = max(h1m12,evp(i,j)*d001)
58 CALL dewpoint(evp,tdwp)
65 tdwp(i,j) = min(tdwp(i,j),t1d(i,j))