source: LMDZ6/trunk/libf/misc/lmdz_netcdf.F90 @ 5079

Last change on this file since 5079 was 5075, checked in by abarral, 5 months ago

[continued & end] replace netcdf by lmdz_netcdf.F90 wrapper
"use netcdf" is now only used in lmdz_netcdf.F90 (except ecrad and obsolete/)
<include "netcdf.inc"> is now likewise only used in lmdz_netcdf.F90.

systematically specify explicitely <USE lmdz_netcdf, ONLY:> (probably left some missing, to correct later on)

Further replacement of nf_put_* by nf90_put_* (same for _get_)

[minor] replace deprecated boolean operators along the way

File size: 834 bytes
Line 
1! ---------------------------------------------
2! This module serves as a wrapper around netcdf.
3! It serves two primary functions:
4!  1) Turn netcdf into a "real" fortran module, without the INCLUDE call
5!  2) Handle the NC_DOUBLE CPP key. This key should ONLY be used here.
6! The "real" netcdf module/headers should ONLY be called here.
7! ---------------------------------------------
8
9MODULE lmdz_netcdf
10  USE, INTRINSIC :: ISO_FORTRAN_ENV, ONLY : REAL64, REAL32
11  USE netcdf
12  IMPLICIT NONE
13  ! Note: as we want to expose netcdf through this module, we don't make all PRIVATE by default as usual
14  ! Instead, explicitely make PRIVATE the relevant items.
15
16  INCLUDE 'netcdf.inc'
17
18#ifdef NC_DOUBLE
19  INTEGER, PARAMETER :: NF90_FORMAT = NF90_DOUBLE
20#else
21  INTEGER, PARAMETER :: NF90_FORMAT = NF90_FLOAT
22#endif
23END MODULE lmdz_netcdf
Note: See TracBrowser for help on using the repository browser.