SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
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
44 USE modd_write_surf_atm, ONLY : lnowrite_texfile
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 !
53 USE yomhook ,ONLY : lhook, dr_hook
54 USE parkind1 ,ONLY : jprb
55 !
56 IMPLICIT NONE
57 !
58 !* 0.1 Declaration of arguments
59 ! ------------------------
60 !
61  CHARACTER(LEN=6), INTENT(IN) :: hprogram ! program calling surf. schemes
62 REAL(KIND=JPRB) :: zhook_handle
63 !
64 !* 0.2 Declaration of local variables
65 ! ------------------------------
66 !
67 !-------------------------------------------------------------------------------
68 !
69 IF (lhook) CALL dr_hook('WRITE_COVER_TEX_START',0,zhook_handle)
70 IF (lnowrite_texfile) THEN
71  ntex=0
72  IF (lhook) CALL dr_hook('WRITE_COVER_TEX_START',1,zhook_handle)
73  RETURN
74 ENDIF
75 !
76 !* opening of the file
77 !
78 IF (hprogram=='MESONH') THEN
79 #ifdef SFX_MNH
80  CALL mnhopen_write_cover_tex(ntex)
81 #endif
82 END IF
83 !
84 IF (hprogram=='LFI ') THEN
85 #ifdef SFX_LFI
86  CALL open_write_cover_tex_lfi(ntex)
87 #endif
88 END IF
89 !
90 IF (hprogram=='ASCII ' .OR. hprogram=='FA ') THEN
91  ntex=13
92  OPEN(ntex,file='class_cover_data.tex',form='formatted')
93 ENDIF
94 !
95 IF (hprogram=='AROME ') THEN
96 #ifdef SFX_ARO
97  CALL aroopen_write_cover_tex(ntex)
98 #endif
99 END IF
100 !
101 IF (ntex==0 .AND. lhook) CALL dr_hook('WRITE_COVER_TEX_START',1,zhook_handle)
102 IF (ntex==0) RETURN
103 !
104 !* writing in the file
105 !
106 WRITE(ntex,*) '\documentstyle[11pt]{report}'
107 WRITE(ntex,*) '\setlength{\textwidth}{18.0cm}'
108 WRITE(ntex,*) '\setlength{\textheight}{24.cm}'
109 WRITE(ntex,*) '\hoffset=-3.5cm'
110 WRITE(ntex,*) '\voffset=-3.cm'
111 WRITE(ntex,*) '%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
112 WRITE(ntex,*) '\begin{document}'
113 WRITE(ntex,*) '{\footnotesize{'
114 IF (lhook) CALL dr_hook('WRITE_COVER_TEX_START',1,zhook_handle)
115 !
116 !
117 !-------------------------------------------------------------------------------
118 !
119 END SUBROUTINE write_cover_tex_start
subroutine write_cover_tex_start(HPROGRAM)
subroutine open_write_cover_tex_lfi(KTEX)