!> @file !> @brief Subroutine related to dewpoint temperature. ! !> Computes dewpoint from P, T, and Q. !> !> @param[in] P1D Pressure (Pa). !> @param[in] Q1D Specific humidity (kg/kg). !> @param[in] T1D Temperature (K). !> @param[out] TDWP Dewpoint temperature (K). !> !> ### Program history log: !> Date | Programmer | Comments !> -----|------------|--------- !> 1992-12-22 | Russ Treadon | Initial !> 1993-10-04 | Russ Treadon | Added check to bound dewpoint temperature to not exceed the ambient temperature. !> 1998-06-08 | T Black | Conversion from 1-D to 2-D !> 2000-01-04 | Jim Tuccillo | MPI version !> 2021-07-23 | Wen Meng | Retrict computation from undefined points !> !> @author Russ Treadon W/NP2 @date 1992-12-22 SUBROUTINE CALDWP(P1D,Q1D,TDWP,T1D) ! ! ! SET PARAMETERS. use params_mod, only: eps, oneps, d001, h1m12 use ctlblk_mod, only: jsta, jend, im, spval, ista, iend !- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - implicit none ! ! DECLARE VARIABLES. ! REAL,dimension(ista:iend,jsta:jend),intent(in) :: P1D,Q1D,T1D REAL,dimension(ista:iend,jsta:jend),intent(inout) :: TDWP REAL EVP(ista:iend,jsta:jend) integer I,J ! !**************************************************************************** ! START CALDWP HERE. ! ! COMPUTE VAPOR PRESSURE. CONVERT TO CENITBARS. ! !$omp parallel do private(i,j) DO J=JSTA,JEND DO I=ISTA,IEND IF(P1D(I,j)