SURFEX v8.1
General documentation of Surfex
get_luout.F90
Go to the documentation of this file.
1 !SFX_LIC Copyright 1994-2014 CNRS, Meteo-France and Universite Paul Sabatier
2 !SFX_LIC This is part of the SURFEX software governed by the CeCILL-C licence
3 !SFX_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4 !SFX_LIC for details. version 1.
5 ! #########
6  SUBROUTINE get_luout(HPROGRAM,KLUOUT)
7 ! #######################################################
8 !
9 !!**** *GET_LUOUT* - routine to get output listing logical unit
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !!** METHOD
15 !! ------
16 !!
17 !! EXTERNAL
18 !! --------
19 !!
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !!
28 !! AUTHOR
29 !! ------
30 !! V. Masson *Meteo France*
31 !!
32 !! MODIFICATIONS
33 !! -------------
34 !! Original 01/2004
35 !-------------------------------------------------------------------------------
36 !
37 !* 0. DECLARATIONS
38 ! ------------
39 !
40 !
41 !
42 USE yomhook ,ONLY : lhook, dr_hook
43 USE parkind1 ,ONLY : jprb
44 !
45 #ifdef SFX_LFI
46 USE modi_lfiget_luout
47 #endif
48 #ifdef SFX_MNH
49 USE modi_mnhget_luout
50 #endif
51 #ifdef SFX_ARO
52 USE modi_aroget_luout
53 #endif
54 !
55 IMPLICIT NONE
56 !
57 !
58 !* 0.1 Declarations of arguments
59 ! -------------------------
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling GROUND
62 INTEGER, INTENT(OUT) :: KLUOUT ! Logical unit of output listing
63 REAL(KIND=JPRB) :: ZHOOK_HANDLE
64 !
65 !* 0.2 Declarations of local variables
66 ! -------------------------------
67 !
68 !-------------------------------------------------------------------------------
69 !
70 IF (lhook) CALL dr_hook('GET_LUOUT',0,zhook_handle)
71 IF (hprogram=='MESONH') THEN
72 #ifdef SFX_MNH
73  CALL mnhget_luout(hprogram,kluout)
74 #endif
75 ELSE IF (hprogram=='AROME ') THEN
76 #ifdef SFX_ARO
77  CALL aroget_luout(hprogram,kluout)
78 #endif
79 ELSE IF (hprogram=='LFI ') THEN
80 #ifdef SFX_LFI
81  CALL lfiget_luout(hprogram,kluout)
82 #endif
83 ELSE
84  kluout = 10
85 END IF
86 IF (lhook) CALL dr_hook('GET_LUOUT',1,zhook_handle)
87 !
88 !-------------------------------------------------------------------------------
89 !
90 END SUBROUTINE get_luout
subroutine lfiget_luout(HPROGRAM, KLUOUT)
Definition: lfiget_luout.F90:7
integer, parameter jprb
Definition: parkind1.F90:32
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:7
logical lhook
Definition: yomhook.F90:15