SURFEX v8.1
General documentation of Surfex
modd_io_surf_fa.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 ! ##################
7 ! ##################
8 !
9 !!**** *MODD_IO_SURF_FA -
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!
15 !!** IMPLICIT ARGUMENTS
16 !! ------------------
17 !! None
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !! AUTHOR
23 !! ------
24 !! V. Masson *Meteo France*
25 !!
26 !! MODIFICATIONS
27 !! -------------
28 !!
29 !
30 !* 0. DECLARATIONS
31 !
32 IMPLICIT NONE
33 !
34  CHARACTER(LEN=6), SAVE :: cdnomc ='header' ! Name of the header
35  CHARACTER(LEN=28),SAVE :: cfile_fa ='SURFIN.fa' ! Name of the input
36  CHARACTER(LEN=28),SAVE :: cfilein_fa ='SURFIN.fa' ! Name of the input
37  CHARACTER(LEN=28),SAVE :: cfilein_fa_save ='SURFIN.fa' ! Name of the input
38  CHARACTER(LEN=28),SAVE :: cfileout_fa ='SURFOUT.fa' ! Name of the input
39  CHARACTER(LEN=28),SAVE :: cfilepgd_fa ='PGD.fa' ! Name of the pgd file
40  CHARACTER(LEN=4), SAVE :: cprefix1d ='SFX.' ! Prefix name in fa file
41  CHARACTER(LEN=1), SAVE :: cprefix2d ='X' ! Prefix name in fa file
42 !
43  CHARACTER(LEN=6) :: cmask ! surface mask type
44 !
45 INTEGER :: nunit_fa =19 ! logical unit of surface file (FA part)
46 INTEGER :: nluout ! logical unit of output file
47 INTEGER :: iverbfa=0 ! amount of message from FA lib
48 !
49 LOGICAL, SAVE :: lfanocompact=.false.
50 LOGICAL, SAVE :: lprep =.false.
51 LOGICAL :: lopen ! flag to know if the file has been openned during the surface call
52 !
53 INTEGER, DIMENSION(:), POINTER :: nmask=>null() ! 1D mask to read only interesting
54 INTEGER :: nfull ! total number of points of surface
55 INTEGER :: nfull_ext ! total number of points including the extension zone (ALADIN)
56 INTEGER :: ndgl,ndlon,ndlux,ndgux ! dimensions of ALADIN domain
57 !
58 REAL :: perpk,pebeta,pelon0,pelat0, &! grid projection parameters
59  pedelx,pedely,pelon1,pelat1 ! for the ALADIN domain
60 !
61 END MODULE modd_io_surf_fa
character(len=28), save cfileout_fa
character(len=28), save cfile_fa
character(len=4), save cprefix1d
character(len=28), save cfilein_fa_save
character(len=6), save cdnomc
character(len=6) cmask
character(len=1), save cprefix2d
character(len=28), save cfilepgd_fa
logical, save lprep
character(len=28), save cfilein_fa
logical, save lfanocompact
integer, dimension(:), pointer nmask