CCPP SciDoc v7.0.0
v7.0.0
Common Community Physics Package Developed at DTC
Loading...
Searching...
No Matches
rad_sw_pre.F90
1
3
5
module
rad_sw_pre
6
contains
7
8
13
subroutine
rad_sw_pre_run (im, lsswr, coszen, nday, idxday, errmsg, errflg)
14
use
machine,
only
: kind_phys
15
implicit none
16
17
! Inputs
18
integer
,
intent(in)
:: im
19
logical
,
intent(in)
:: lsswr
20
real
(kind_phys),
dimension(:)
,
intent(in)
:: coszen
21
22
! Outputs
23
integer
,
intent(out)
:: nday
24
integer
,
dimension(:)
,
intent(out)
:: idxday
25
character(len=*)
,
intent(out)
:: errmsg
26
integer
,
intent(out)
:: errflg
27
28
! Local variables
29
integer
:: i
30
31
! Initialize CCPP error handling variables
32
errmsg =
''
33
errflg = 0
34
35
if
(lsswr)
then
36
! Check for daytime points for SW radiation.
37
nday = 0
38
idxday = 0
39
do
i = 1, im
40
if
(coszen(i) >= 0.0001)
then
41
nday = nday + 1
42
idxday(nday) = i
43
endif
44
enddo
45
else
46
nday = 0
47
idxday = 0
48
endif
49
50
end subroutine
rad_sw_pre_run
51
end module
rad_sw_pre
rad_sw_pre
This module gathers the sunlit points for the shortwave radiation schemes.
Definition
rad_sw_pre.F90:5
Radiation
RRTMG
rad_sw_pre.F90
Generated by
1.12.0