GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: phylmd/rrtm/suscm.F90 Lines: 17 26 65.4 %
Date: 2023-06-30 12:51:15 Branches: 3 6 50.0 %

Line Branch Exec Source
1
1
SUBROUTINE SUSCM(KULOUT)
2
3
#ifdef DOC
4
5
!**** *SUSCM*   - Initialize MODULE YOMSCM controlling extraction of Single-Column profiles.
6
7
!     Purpose.
8
!     --------
9
10
!**   Interface.
11
!     ----------
12
!        *CALL* *SUSCM(KULOUT)
13
14
!        Explicit arguments :
15
!        --------------------
16
!        KULOUT : Logical unit for the output
17
18
!        Implicit arguments :
19
!        --------------------
20
!        MODULE YOMSCM
21
22
!     Method.
23
!     -------
24
!        See documentation
25
26
!     Externals.
27
!     ----------
28
29
!     Reference.
30
!     ----------
31
32
!     Author.
33
!     -------
34
!        J.M. Piriou.
35
36
!     Modifications.
37
!     --------------
38
!        Original : 2002-03-17
39
!        M.Hamrud      01-Oct-2003 CY28 Cleaning
40
!        M.Hamrud      01-Dec-2003 CY28R1 Cleaning
41
!     ------------------------------------------------------------------
42
#endif
43
44
USE PARKIND1  ,ONLY : JPIM     ,JPRB
45
USE YOMHOOK   ,ONLY : LHOOK,   DR_HOOK
46
! Ce qui concerne NULNAM commente par MPL le 15.04.09
47
!USE YOMLUN   , ONLY : NULNAM
48
USE YOMSCM  , ONLY : &
49
 & LGSCM, NFRSCM, NSCMTS, NSCM_SPACE_S &
50
 & , GSCM_LON1, GSCM_LON2, GSCM_LAT1, GSCM_LAT2 &
51
 & , GSCM_RADIUS, NSCM_ADD_SAMPL
52
53
IMPLICIT NONE
54
55
INTEGER(KIND=JPIM),INTENT(IN)    :: KULOUT
56
INTEGER(KIND=JPIM) ::J
57
REAL(KIND=JPRB) :: ZHOOK_HANDLE
58
59
#include "posnam.intfb.h"
60
61
#include "namscm.h"
62
63
!-------------------------------------------------
64
! 1. Default values.
65
!-------------------------------------------------
66
67
1
IF (LHOOK) CALL DR_HOOK('SUSCM',0,ZHOOK_HANDLE)
68
1
LGSCM=.FALSE.
69
1
NFRSCM=1
70
1
NSCMTS=0
71
1
NSCM_SPACE_S=0
72
1
NSCM_ADD_SAMPL=1
73
1
GSCM_LON1=0.0_JPRB
74
1
GSCM_LON2=0.0_JPRB
75
1
GSCM_LAT1=0.0_JPRB
76
1
GSCM_LAT2=0.0_JPRB
77
1
GSCM_RADIUS=2.E-04_JPRB
78
!     ------------------------------------------------------------------
79
80
!*       2.    Modify default values.
81
!              ----------------------
82
83
! Ce qui concerne NAMSCEN commente par MPL le 15.04.09
84
!CALL POSNAM(NULNAM,'NAMSCM')
85
!READ(NULNAM,NAMSCM)
86
!     ------------------------------------------------------------------
87
88
!*       3.    Print final values.
89
!              -------------------
90
91
1
WRITE(UNIT=KULOUT,FMT='(A)') ' MODULE YOMSCM'
92
1
WRITE(UNIT=KULOUT,FMT='(A,L5)') '   LGSCM = ',LGSCM
93
1
IF(LGSCM) THEN
94
  WRITE(UNIT=KULOUT,FMT='(3(A,I5),5(A,G12.6))') &
95
   & '   NFRSCM = ',NFRSCM &
96
   & ,'NSCM_SPACE_S = ',NSCM_SPACE_S &
97
   & ,'NSCM_ADD_SAMPL = ',NSCM_ADD_SAMPL &
98
   & ,'GSCM_LON1 = ',GSCM_LON1 &
99
   & ,'GSCM_LON2 = ',GSCM_LON2 &
100
   & ,'GSCM_LAT1 = ',GSCM_LAT1 &
101
   & ,'GSCM_LAT2 = ',GSCM_LAT2 &
102
   & ,'GSCM_RADIUS = ',GSCM_RADIUS
103
  WRITE(KULOUT,*) '   NSCMTS =  ',NSCMTS(0),(NSCMTS(J),J=1,ABS(NSCMTS(0)))
104
ENDIF
105
1
IF (LHOOK) CALL DR_HOOK('SUSCM',1,ZHOOK_HANDLE)
106
1
END SUBROUTINE SUSCM