Last change
on this file since 5088 was
5088,
checked in by abarral, 2 months ago
|
Remove all managed netcdf77 usage (excluding external: rrtm, ecrad)
Remove call to netcdf.inc
Replace USE lmdz_netcdf by USE netcdf
Replace lmdz_netcdf.F90 by lmdz_netcdf_format.F90
|
File size:
722 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 | |
---|
9 | MODULE lmdz_netcdf_format |
---|
10 | USE, INTRINSIC :: ISO_FORTRAN_ENV, ONLY : REAL64, REAL32 |
---|
11 | USE netcdf, ONLY: nf90_float, nf90_double |
---|
12 | IMPLICIT NONE; PRIVATE |
---|
13 | PUBLIC nf90_format |
---|
14 | |
---|
15 | #ifdef NC_DOUBLE |
---|
16 | INTEGER, PARAMETER :: nf90_format = nf90_double |
---|
17 | #else |
---|
18 | INTEGER, PARAMETER :: nf90_format = nf90_float |
---|
19 | #endif |
---|
20 | END MODULE lmdz_netcdf_format |
---|
Note: See
TracBrowser
for help on using the repository browser.