source: LMDZ6/branches/Amaury_dev/libf/misc/lmdz_cppkeys_wrapper.F90 @ 5101

Last change on this file since 5101 was 5101, checked in by abarral, 2 months ago

Handle DEBUG_IO in lmdz_cppkeys_wrapper.F90
Transform some files .F -> .[fF]90
[ne compile pas à cause de writefield_u non défini - en attente de réponse Laurent]

File size: 1.6 KB
Line 
1! ---------------------------------------------
2! This file is part of an effort to replace most uses of preprocessor CPP keys by fortran variables,
3! to improve readability, compilation coverage, and linting.
4! CPP keys used here should ONLY be used here (unless specified explicitely),
5! and imported through USE ..., ONLY: ... elsewhere
6! CPP keys supported (key -> fortran variables associated):
7!      NC_DOUBLE -> nf90_format
8!      CPP_PHYS  -> CPPKEY_PHYS
9!      INCA      -> CPPKEY_INCA
10!      CPP_StratAer-> CPPKEY_STRATAER
11!      CPP_DUST  -> CPPKEY_DUST
12! ---------------------------------------------
13
14MODULE lmdz_cppkeys_wrapper
15  USE, INTRINSIC :: ISO_FORTRAN_ENV, ONLY: REAL64, REAL32
16  USE netcdf, ONLY: nf90_float, nf90_double
17  IMPLICIT NONE; PRIVATE
18  PUBLIC nf90_format, CPPKEY_PHYS, CPPKEY_INCA, CPPKEY_STRATAER, CPPKEY_DUST, &
19      CPPKEY_DEBUGIO
20
21#ifdef NC_DOUBLE
22  INTEGER, PARAMETER :: nf90_format = nf90_double
23#else
24  INTEGER, PARAMETER :: nf90_format = nf90_float
25#endif
26
27#ifdef CPP_PHYS
28  LOGICAL, PARAMETER :: CPPKEY_PHYS = .TRUE.
29#else
30  LOGICAL, PARAMETER :: CPPKEY_PHYS = .FALSE.
31#endif
32
33#ifdef INCA
34  LOGICAL, PARAMETER :: CPPKEY_INCA = .TRUE.
35#else
36  LOGICAL, PARAMETER :: CPPKEY_INCA = .FALSE.
37#endif
38
39#ifdef CPP_StratAer
40  LOGICAL, PARAMETER :: CPPKEY_STRATAER = .TRUE.
41#else
42  LOGICAL, PARAMETER :: CPPKEY_STRATAER = .FALSE.
43#endif
44
45#ifdef CPP_DUST
46  LOGICAL, PARAMETER :: CPPKEY_DUST = .TRUE.
47#else
48  LOGICAL, PARAMETER :: CPPKEY_DUST = .FALSE.
49#endif
50
51#ifdef DEBUG_IO
52  LOGICAL, PARAMETER :: CPPKEY_DEBUGIO = .TRUE.
53#else
54  LOGICAL, PARAMETER :: CPPKEY_DEBUGIO = .FALSE.
55#endif
56
57END MODULE lmdz_cppkeys_wrapper
Note: See TracBrowser for help on using the repository browser.