SURFEX v8.1
General documentation of Surfex
modd_io_surf_nc.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_NC* Keep in memory the netcdf ID of the output files
10 !!
11 !! PURPOSE
12 !! -------
13 !
14 !!
15 !!** IMPLICIT ARGUMENTS
16 !! ------------------
17 !! None
18 !!
19 !! REFERENCE
20 !! ---------
21 !!
22 !! AUTHOR
23 !! ------
24 !! S. Faroux *Meteo France*
25 !!
26 !! MODIFICATIONS
27 !! -------------
28 !
29 !* 0. DECLARATIONS
30 ! ------------
31 !
32 !
33 IMPLICIT NONE
34 !------------------------------------------------------------------------------
35 !
36 !* variables for each patch
37 !
38  CHARACTER(LEN=28),SAVE :: cfile_nc
39  CHARACTER(LEN=28),SAVE :: cfilein_nc
40  CHARACTER(LEN=28),SAVE :: cfilein_nc_save ! Name of the input
41  CHARACTER(LEN=28),SAVE :: cfileout_nc ! Name of the output
42  CHARACTER(LEN=28),SAVE :: cfileout_nc_save = '' ! Name of the output
43  CHARACTER(LEN=28),SAVE :: cfilepgd_nc ! Name of the pgd file
44  CHARACTER(LEN=28),SAVE :: cluout_nc
45 !
46 INTEGER :: nid_nc
47 INTEGER :: nluout ! logical unit of output file
48 LOGICAL, SAVE :: lcreated = .false.
49 LOGICAL :: ldef = .false.
50 !
51 INTEGER, DIMENSION(:),POINTER :: nmask=>null()
52  CHARACTER(LEN=6) :: cmask ! surface mask type
53 INTEGER :: nfull
54 INTEGER :: nfull_aux ! total number fo points of surface (Auxilarry file for prep)
55 !
56 LOGICAL, SAVE :: lmask = .false.
57 !
58 INTEGER, DIMENSION(:),ALLOCATABLE :: nmask_ign
59 !
60 !------------------------------------------------------------------------------
61 !
62 END MODULE modd_io_surf_nc
63 
character(len=28), save cfileout_nc
character(len=28), save cfileout_nc_save
logical, save lmask
character(len=28), save cluout_nc
integer, dimension(:), pointer nmask
logical, save lcreated
character(len=6) cmask
integer, dimension(:), allocatable nmask_ign
character(len=28), save cfile_nc
character(len=28), save cfilepgd_nc
character(len=28), save cfilein_nc_save
character(len=28), save cfilein_nc