11!>\file cnvc90.f
2- !! This file contains the calculation of fraction of convective cloud,
3- !! pressure at bottom of convective cloud and at top of convective
4- !! cloud.
2+ !! This module computes the convective cloud fraction, as well as
3+ !! the pressure at the base and top of the convective cloud.
54 module cnvc90
65
76 contains
@@ -11,9 +10,6 @@ end subroutine cnvc90_init
1110
1211!>\defgroup GFS_cnvc90 GFS Convective Cloud Diagnostics Module
1312!> @{
14- !! This module contains the calculation of fraction of convective cloud,
15- !! pressure at bottom of convective cloud and at top of convective
16- !! cloud.
1713!> \section arg_table_cnvc90_run Argument Table
1814!! \htmlinclude cnvc90_run.html
1915!!
@@ -43,23 +39,23 @@ SUBROUTINE cnvc90_run(CLSTP,IM,RN,KBOT,KTOP,KM,PRSI, &
4339
4440 ! Local variables
4541 integer :: i,ibot,itop,lc,lz,n,ncc
46- real (kind= kind_phys) :: ah,cc1,cc2,cvb0,p1,p2,rkbot,rktop,val
42+ real (kind= kind_phys) :: ah,cc1,cc2,cvb0,p1,p2
4743 integer :: NMD(IM)
4844 real (kind= kind_phys) :: PMD(IM)
49- !
45+
5046 real (kind= kind_phys), parameter :: cons_100= 100.0
5147 real (kind= kind_phys) :: R_KBOT_I, R_KTOP_I
52- !
48+
5349 PARAMETER (NCC= 9 )
5450 real (kind= kind_phys) :: CC(NCC),P(NCC)
5551 DATA CC/ 0 .,0.1 ,0.2 ,0.3 ,0.4 ,0.5 ,0.6 ,0.7 ,0.8 /
5652 DATA P/ .14 ,.31 ,.70 ,1.6 ,3.4 ,7.7 ,17 .,38 .,85 ./
5753 DATA CVB0/ 100 ./
58- !
54+
5955 ! Initialize CCPP error handling variables
6056 errmsg = ' '
6157 errflg = 0
62- !
58+
6359 LZ= 0
6460 LC= 0
6561 IF (CLSTP.GE. 1000 .) LZ= 1
@@ -123,9 +119,6 @@ SUBROUTINE cnvc90_run(CLSTP,IM,RN,KBOT,KTOP,KM,PRSI, &
123119 ENDIF
124120 ENDDO
125121 ENDIF
126- RETURN
127122 END SUBROUTINE cnvc90_run
128123!> @}
129-
130124 end module cnvc90
131-
0 commit comments