SURFEX v8.1
General documentation of Surfex
write_cover_tex_start.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 write_cover_tex_start(HPROGRAM)
7 ! ##########################
8 !
9 !!**** *WRITE_COVER_TEX* opens the output tex file containing cover data
10 !!
11 !! PURPOSE
12 !! -------
13 !!
14 !! METHOD
15 !! ------
16 !!
17 !!
18 !! EXTERNAL
19 !! --------
20 !!
21 !! IMPLICIT ARGUMENTS
22 !! ------------------
23 !!
24 !! REFERENCE
25 !! ---------
26 !!
27 !! AUTHOR
28 !! ------
29 !!
30 !! V. Masson Meteo-France
31 !!
32 !! MODIFICATION
33 !! ------------
34 !!
35 !! Original 08/01/98
36 !!
37 !----------------------------------------------------------------------------
38 !
39 !* 0. DECLARATION
40 ! -----------
41 !
42 !
43 USE modd_write_cover_tex,ONLY : ntex
45 !
46 #ifdef SFX_LFI
47 USE modi_open_write_cover_tex_lfi
48 #endif
49 #ifdef SFX_MNH
50 USE modi_mnhopen_write_cover_tex
51 #endif
52 #ifdef SFX_ARO
53 USE modi_aroopen_write_cover_tex
54 #endif
55 !
56 USE yomhook ,ONLY : lhook, dr_hook
57 USE parkind1 ,ONLY : jprb
58 !
59 IMPLICIT NONE
60 !
61 !
62 !* 0.1 Declaration of arguments
63 ! ------------------------
64 !
65  CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM ! program calling surf. schemes
66 REAL(KIND=JPRB) :: ZHOOK_HANDLE
67 !
68 !* 0.2 Declaration of local variables
69 ! ------------------------------
70 !
71 !-------------------------------------------------------------------------------
72 !
73 IF (lhook) CALL dr_hook('WRITE_COVER_TEX_START',0,zhook_handle)
74 IF (lnowrite_texfile) THEN
75  ntex=0
76  IF (lhook) CALL dr_hook('WRITE_COVER_TEX_START',1,zhook_handle)
77  RETURN
78 ENDIF
79 !
80 !* opening of the file
81 !
82 IF (hprogram=='MESONH') THEN
83 #ifdef SFX_MNH
84  CALL mnhopen_write_cover_tex(ntex)
85 #endif
86 END IF
87 !
88 IF (hprogram=='LFI ') THEN
89 #ifdef SFX_LFI
91 #endif
92 END IF
93 !
94 IF (hprogram=='ASCII ' .OR. hprogram=='FA ') THEN
95  ntex=13
96  OPEN(ntex,file='class_cover_data.tex',form='formatted')
97 ENDIF
98 !
99 IF (hprogram=='AROME ') THEN
100 #ifdef SFX_ARO
101  CALL aroopen_write_cover_tex(ntex)
102 #endif
103 END IF
104 !
105 IF (ntex==0 .AND. lhook) CALL dr_hook('WRITE_COVER_TEX_START',1,zhook_handle)
106 IF (ntex==0) RETURN
107 !
108 !* writing in the file
109 !
110 WRITE(ntex,*) '\documentstyle[11pt]{report}'
111 WRITE(ntex,*) '\setlength{\textwidth}{18.0cm}'
112 WRITE(ntex,*) '\setlength{\textheight}{24.cm}'
113 WRITE(ntex,*) '\hoffset=-3.5cm'
114 WRITE(ntex,*) '\voffset=-3.cm'
115 WRITE(ntex,*) '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
116 WRITE(ntex,*) '\begin{document}'
117 WRITE(ntex,*) '{\footnotesize{'
118 IF (lhook) CALL dr_hook('WRITE_COVER_TEX_START',1,zhook_handle)
119 !
120 !
121 !-------------------------------------------------------------------------------
122 !
123 END SUBROUTINE write_cover_tex_start
integer, parameter jprb
Definition: parkind1.F90:32
logical lhook
Definition: yomhook.F90:15
subroutine write_cover_tex_start(HPROGRAM)
subroutine open_write_cover_tex_lfi(KTEX)