[1989] | 1 | !----------------------------------------------------------------------- |
---|
| 2 | SUBROUTINE SURHCRI(KULOUT) |
---|
| 3 | !----------------------------------------------------------------------- |
---|
[5159] | 4 | |
---|
[1989] | 5 | !**** *SURHCRI * - COMPUTATION OF THE CRTITICAL RELATIVE HUMIDITY |
---|
| 6 | ! PROFILE FOR SMITH'S CONDENSATION SCHEME. |
---|
[5159] | 7 | |
---|
[1989] | 8 | !** Interface. |
---|
| 9 | ! ---------- |
---|
| 10 | ! *CALL* *SURHCRI* |
---|
[5159] | 11 | |
---|
[1989] | 12 | !----------------------------------------------------------------------- |
---|
[5159] | 13 | |
---|
[1989] | 14 | ! - ARGUMENTS D'ENTREE./INPUT ARGUMENTS. |
---|
| 15 | ! ------------------------------------ |
---|
[5159] | 16 | |
---|
[1989] | 17 | !----------------------------------------------------------------------- |
---|
[5159] | 18 | |
---|
[1989] | 19 | ! - ARGUMENTS IMPLICITES. |
---|
| 20 | ! --------------------- |
---|
[5159] | 21 | |
---|
[1989] | 22 | ! COMMON /YOMPHY/ |
---|
| 23 | ! COMMON /YOMPHY0/ |
---|
[5159] | 24 | |
---|
[1989] | 25 | !* |
---|
| 26 | !----------------------------------------------------------------------- |
---|
[5159] | 27 | |
---|
[1989] | 28 | ! Auteur. |
---|
| 29 | ! ------- |
---|
| 30 | ! 05-03, Luc Gerard (from Ph. Lopez acrhcri) |
---|
[5159] | 31 | |
---|
[1989] | 32 | ! Modifications. |
---|
| 33 | ! -------------- |
---|
| 34 | ! 06-10, nettoyage - R. Brozkova |
---|
| 35 | !----------------------------------------------------------------------- |
---|
[5159] | 36 | |
---|
[1989] | 37 | USE PARKIND1 ,ONLY : JPIM ,JPRB |
---|
| 38 | USE YOMHOOK ,ONLY : LHOOK, DR_HOOK |
---|
[5159] | 39 | |
---|
[1989] | 40 | USE YOMPHY0 , ONLY : RHCRIT1, RHCRIT2, RETAMIN, GRHCMOD, RHCRI ,NRHCRI |
---|
| 41 | USE YOMDIM , ONLY : NFLEVG |
---|
| 42 | USE YOMGC , ONLY : GAW, GM |
---|
| 43 | USE YOMGEM , ONLY : VP00, TEQH |
---|
| 44 | USE YOMPHY , ONLY : LGWRHCRI |
---|
| 45 | USE YOMSTA , ONLY : STPRE |
---|
| 46 | |
---|
| 47 | IMPLICIT NONE |
---|
| 48 | |
---|
| 49 | INTEGER (KIND=JPIM),INTENT(IN) :: KULOUT |
---|
| 50 | |
---|
| 51 | ! LOCAL |
---|
| 52 | |
---|
| 53 | REAL(KIND=JPRB) :: ZVETAF |
---|
| 54 | REAL(KIND=JPRB) :: ZGAW0,ZEGAW,ZFACT,ZFACT0,ZFACTA,ZFACTB,ZFACTC, & |
---|
| 55 | & ZA,ZB,ZC |
---|
| 56 | INTEGER (KIND=JPIM) :: JLEV |
---|
| 57 | REAL(KIND=JPRB) :: ZHOOK_HANDLE |
---|
| 58 | IF (LHOOK) CALL DR_HOOK('SURHCRI',0,ZHOOK_HANDLE) |
---|
| 59 | |
---|
| 60 | ! ------------------------------------------------------------------ |
---|
| 61 | |
---|
| 62 | IF(NRHCRI == NFLEVG) THEN |
---|
| 63 | |
---|
| 64 | ! ------------------------------------------------------------------ |
---|
| 65 | |
---|
| 66 | ! CRITICAL RELATIVE HUMIDITY PROFILE |
---|
| 67 | ! DEPENDENT ON THE LOCAL RESOLUTION. |
---|
| 68 | ! ---------------------------------- |
---|
| 69 | |
---|
| 70 | ZFACT0=(RETAMIN*(RETAMIN-1._JPRB))**2 |
---|
| 71 | ZFACTA=(2._JPRB*RETAMIN-1._JPRB) |
---|
| 72 | ZFACTB=(1._JPRB-3._JPRB*RETAMIN**2) |
---|
| 73 | ZFACTC=(3._JPRB*RETAMIN-2._JPRB)*RETAMIN |
---|
| 74 | IF (LGWRHCRI) THEN |
---|
| 75 | ZGAW0=2.42E-05_JPRB |
---|
| 76 | ZEGAW=(1.0_JPRB-EXP(-GAW(1)/ZGAW0))/ZFACT0 |
---|
| 77 | ELSE |
---|
| 78 | ZEGAW=(1.0_JPRB-GRHCMOD*EXP(-1.0_JPRB/(TEQH*GM(1))))/ZFACT0 |
---|
| 79 | ENDIF |
---|
| 80 | |
---|
| 81 | ZFACT=(RHCRIT2-RHCRIT1)*ZEGAW |
---|
| 82 | ZA=ZFACTA*ZFACT |
---|
| 83 | ZB=ZFACTB*ZFACT |
---|
| 84 | ZC=ZFACTC*ZFACT |
---|
| 85 | |
---|
| 86 | DO JLEV=1,NFLEVG |
---|
| 87 | ZVETAF=STPRE (JLEV)/VP00 |
---|
| 88 | RHCRI(JLEV) = ZA * ZVETAF**3 & |
---|
| 89 | & + ZB * ZVETAF**2 & |
---|
| 90 | & + ZC * ZVETAF & |
---|
| 91 | & + RHCRIT2 |
---|
| 92 | ENDDO |
---|
| 93 | |
---|
| 94 | WRITE(KULOUT,'(A)') 'RHCRI: SMITH SCHEME CRITICAL RH PROFILE:' |
---|
| 95 | WRITE(KULOUT,'((10(G9.3)))') (RHCRI(JLEV),JLEV=1,NFLEVG) |
---|
| 96 | ELSE |
---|
| 97 | WRITE(KULOUT,*) 'NRHCRI=',NRHCRI,': GLOBAL MODEL, NO RHCRI INITIALISATION IN SETUP' |
---|
| 98 | ENDIF |
---|
| 99 | IF (LHOOK) CALL DR_HOOK('SURHCRI',1,ZHOOK_HANDLE) |
---|
| 100 | END SUBROUTINE SURHCRI |
---|