SURFEX  V8_0
Surfex V8_0 release
 All Classes Files Functions Variables
modd_surf_par.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_SURF_PAR - declaration of surface parameters
10 !!
11 !! PURPOSE
12 !! -------
13 ! Declaration of surface parameters
14 !
15 !!
16 !!** IMPLICIT ARGUMENTS
17 !! ------------------
18 !! None
19 !!
20 !! REFERENCE
21 !! ---------
22 !!
23 !! AUTHOR
24 !! ------
25 !! V. Masson *Meteo France*
26 !!
27 !! MODIFICATIONS
28 !! -------------
29 !! Original 02/2004
30 !! J.Escobar 06/2013 for REAL4/8 add EPSILON management
31 !
32 !* 0. DECLARATIONS
33 ! ------------
34 !
35 !
36 IMPLICIT NONE
37 !
38 !-----------------------------------------------------------------------------------------------------
39 INTEGER :: NVERSION ! surface version
40 INTEGER :: NBUGFIX ! bugfix number of this version
41 !
42 #ifndef SFX_MNH
43 REAL, PARAMETER :: XUNDEF = 1.E+20
44 #else
45 #ifdef MNH_MPI_DOUBLE_PRECISION
46 REAL, PARAMETER :: XUNDEF = 1.E+20! HUGE(XUNDEF) ! Z'7FFFFFFFFFFFFFFF' ! undefined value
47 #else
48 REAL, PARAMETER :: XUNDEF = 1.E+6 ! HUGE(XUNDEF) ! Z'7FBFFFFF' ! undefined value
49 #endif
50 #endif
51 INTEGER, PARAMETER :: NUNDEF = 1E+9 ! HUGE(NUNDEF) ! undefined value
52 REAL, PARAMETER :: XSURF_EPSILON = EPSILON(XSURF_EPSILON) ! minimum
53 REAL, PARAMETER :: XSURF_HUGE = HUGE(XSURF_HUGE)
54 REAL, PARAMETER :: XSURF_TINY = TINY(XSURF_TINY)
55 !-----------------------------------------------------------------------------------------------------
56 !
57 END MODULE modd_surf_par