SURFEX v8.1
General documentation of Surfex
sucst_ifsaux.F90
Go to the documentation of this file.
1 SUBROUTINE sucst_ifsaux
2 
3 !**** *SUCST_IFSAUX * - Routine to initialize the constants of the model.
4 
5 ! Purpose.
6 ! --------
7 ! Initialize and print the common YOMCST_IFSAUX
8 ! Should be consistent with the content of arp/setup/sucst.F90
9 ! Do not use currently with LDYNCORE=T, RPLRADI /=1
10 
11 !** Interface.
12 ! ----------
13 ! *CALL* *SUCST_IFSAUX (..)
14 
15 ! Explicit arguments :
16 ! --------------------
17 ! none
18 
19 ! Implicit arguments :
20 ! --------------------
21 ! COMMON YOMCST_IFSAUX
22 
23 ! Method.
24 ! -------
25 ! See documentation
26 
27 ! Externals.
28 ! ----------
29 
30 ! Reference.
31 ! ----------
32 ! ECMWF Research Department documentation of the IFS
33 
34 ! Author.
35 ! -------
36 ! Mats Hamrud and Philippe Courtier *ECMWF*
37 
38 ! Modifications.
39 ! --------------
40 ! Original : 87-10-15
41 ! K. Yessad (Jun 2009): IFSAUX version
42 ! ------------------------------------------------------------------
43 
44 USE parkind1 ,ONLY : jpim ,jprb
45 USE yomhook ,ONLY : lhook, dr_hook
46 
47 USE yomcst_ifsaux, ONLY : xrpi ,xra
48 
49 ! -----------------------------------------------------------------
50 
51 IMPLICIT NONE
52 
53 REAL(KIND=JPRB) :: ZXRPLRADI
54 REAL(KIND=JPRB) :: ZHOOK_HANDLE
55 
56 ! -----------------------------------------------------------------
57 IF (lhook) CALL dr_hook('SUCST_IFSAUX',0,zhook_handle)
58 ! -----------------------------------------------------------------
59 
60 !* 1. DEFINE FUNDAMENTAL CONSTANTS.
61 ! -----------------------------
62 
63 xrpi=2.0_jprb*asin(1.0_jprb)
64 
65 ! ------------------------------------------------------------------
66 
67 !* 2. DEFINE GEOIDE.
68 ! --------------
69 
70 zxrplradi=1.0_jprb
71 xra=6371229._jprb*zxrplradi
72 
73 ! ------------------------------------------------------------------
74 
75 IF (lhook) CALL dr_hook('SUCST_IFSAUX',1,zhook_handle)
76 END SUBROUTINE sucst_ifsaux
real(kind=jprb) xrpi
integer, parameter jpim
Definition: parkind1.F90:13
subroutine sucst_ifsaux
Definition: sucst_ifsaux.F90:2
real(kind=jprb) xra
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15