Changeset 5073 for LMDZ6/trunk/libf/misc/lmdz_netcdf.F90
- Timestamp:
- Jul 18, 2024, 4:57:05 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/misc/lmdz_netcdf.F90
r5071 r5073 3 3 ! It serves two primary functions: 4 4 ! 1) Turn netcdf into a "real" fortran module, without the INCLUDE call 5 ! 2) Handle the NC_DOUBLE CPP key. Ideally, this key should ONLY appear here (WIP). TODO5 ! 2) Handle the NC_DOUBLE CPP key. This key should ONLY be used here. 6 6 ! Ideally, the "real" netcdf module/headers should ONLY be called here. (WIP) TODO 7 7 ! --------------------------------------------- 8 ! TODO check that none of the wrapped functions remain elsewhere9 8 ! TODO check all uses of `use netcdf` + netcdf.inc 10 9 … … 15 14 ! Note: as we want to expose netcdf through this module, we don't make all PRIVATE by default as usual 16 15 ! Instead, explicitely make PRIVATE the relevant items. 17 PRIVATE CPP_NC_DOUBLE18 16 19 17 INCLUDE 'netcdf.inc' 20 18 21 19 #ifdef NC_DOUBLE 22 LOGICAL, PARAMETER :: CPP_NC_DOUBLE = .TRUE. ! Define a variable to reduce use of preprocessor ahead23 20 INTEGER, PARAMETER :: NF90_FORMAT = NF90_DOUBLE 24 INTEGER, PARAMETER :: REAL_FORMAT = REAL6425 21 #else 26 LOGICAL, PARAMETER :: CPP_NC_DOUBLE = .FALSE.27 22 INTEGER, PARAMETER :: NF90_FORMAT = NF90_FLOAT 28 INTEGER, PARAMETER :: REAL_FORMAT = REAL3229 23 #endif 30 CONTAINS31 32 24 END MODULE lmdz_netcdf
Note: See TracChangeset
for help on using the changeset viewer.