Ignore:
Timestamp:
Jul 19, 2024, 10:05:57 AM (2 months ago)
Author:
abarral
Message:

[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:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/limit_netcdf.F90

    r5073 r5075  
    7171#ifndef CPP_1D
    7272  USE indice_sol_mod
    73   USE netcdf,             ONLY: NF90_OPEN,    NF90_CREATE,  NF90_CLOSE,        &
     73  USE lmdz_netcdf,             ONLY: NF90_OPEN,    NF90_CREATE,  NF90_CLOSE,        &
    7474                  NF90_DEF_DIM, NF90_DEF_VAR, NF90_PUT_VAR, NF90_PUT_ATT,      &
    75                   NF90_NOERR,   NF90_NOWRITE, NF90_DOUBLE, NF90_GLOBAL,       &
     75                  NF90_NOERR,   NF90_NOWRITE, NF90_GLOBAL,       &
    7676                  NF90_CLOBBER, NF90_ENDDEF,  NF90_UNLIMITED, NF90_FLOAT,      &
    77                   NF90_64BIT_OFFSET
     77                  NF90_64BIT_OFFSET, NF90_FORMAT
    7878  USE inter_barxy_m,      ONLY: inter_barxy
    7979  USE netcdf95,           ONLY: nf95_def_var, nf95_put_att, nf95_put_var
    8080  USE comconst_mod, ONLY: pi
    8181  USE phys_cal_mod, ONLY: calend
    82   USE lmdz_netcdf, ONLY: NF90_FORMAT
    8382  IMPLICIT NONE
    8483!-------------------------------------------------------------------------------
     
    322321!     2) Dimensional variables have the same names as corresponding dimensions.
    323322!-----------------------------------------------------------------------------
    324   USE netcdf, ONLY: NF90_OPEN, NF90_INQ_VARID, NF90_INQUIRE_VARIABLE, &
     323  USE lmdz_netcdf, ONLY: NF90_OPEN, NF90_INQ_VARID, NF90_INQUIRE_VARIABLE, &
    325324       NF90_CLOSE, NF90_INQ_DIMID, NF90_INQUIRE_DIMENSION, NF90_GET_VAR, &
    326325       NF90_GET_ATT
     
    741740! Purpose: NetCDF errors handling.
    742741!-------------------------------------------------------------------------------
    743   USE netcdf, ONLY : NF90_NOERR, NF90_STRERROR
     742  USE lmdz_netcdf, ONLY : NF90_NOERR, NF90_STRERROR
    744743  IMPLICIT NONE
    745744!-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.