SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
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 !
52 IMPLICIT NONE
53 !
54 !* 0.1 Declarations of arguments
55 ! -------------------------
56 !
57  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling GROUND
58 INTEGER, INTENT(OUT) :: kluout ! Logical unit of output listing
59 REAL(KIND=JPRB) :: zhook_handle
60 !
61 !* 0.2 Declarations of local variables
62 ! -------------------------------
63 !
64 !-------------------------------------------------------------------------------
65 !
66 IF (lhook) CALL dr_hook('GET_LUOUT',0,zhook_handle)
67 IF (hprogram=='MESONH') THEN
68 #ifdef SFX_MNH
69  CALL mnhget_luout(hprogram,kluout)
70 #endif
71 ELSE IF (hprogram=='AROME ') THEN
72 #ifdef SFX_ARO
73  CALL aroget_luout(hprogram,kluout)
74 #endif
75 ELSE IF (hprogram=='LFI ') THEN
76 #ifdef SFX_LFI
77  CALL lfiget_luout(hprogram,kluout)
78 #endif
79 ELSE
80  kluout = 10
81 END IF
82 IF (lhook) CALL dr_hook('GET_LUOUT',1,zhook_handle)
83 !
84 !-------------------------------------------------------------------------------
85 !
86 END SUBROUTINE get_luout
subroutine lfiget_luout(HPROGRAM, KLUOUT)
Definition: lfiget_luout.F90:6
subroutine get_luout(HPROGRAM, KLUOUT)
Definition: get_luout.F90:6