Ignore:
Timestamp:
Jul 20, 2024, 4:30:31 PM (7 months ago)
Author:
abarral
Message:

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

Location:
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/ce0l.F90

    r5075 r5088  
    2121  USE etat0phys,      ONLY: etat0phys_netcdf
    2222  USE limit,          ONLY: limit_netcdf
    23   USE lmdz_netcdf,         ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, NF90_NOERR,    &
    24          NF90_INQUIRE_DIMENSION, NF90_INQ_DIMID, NF90_INQ_VARID, NF90_GET_VAR
     23  USE netcdf,         ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, NF90_NOERR,    &
     24         NF90_INQUIRE_DIMENSION, nf90_inq_dimid, NF90_INQ_VARID, NF90_GET_VAR
    2525  USE infotrac,       ONLY: init_infotrac
    2626  USE dimphy,         ONLY: klon
     
    191191    WRITE(lunout,*)'BEWARE !! File "startphy0.nc" found.'
    192192    WRITE(lunout,*)'Getting the land mask from a previous run.'
    193     iret=NF90_INQ_DIMID(nid_sta,'points_physiques',nid_nph)
     193    iret=nf90_inq_dimid(nid_sta,'points_physiques',nid_nph)
    194194    iret=NF90_INQUIRE_DIMENSION(nid_sta,nid_nph,len=nphys)
    195195    IF(nphys/=klon) THEN
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/limit_netcdf.F90

    r5087 r5088  
    7171#ifndef CPP_1D
    7272  USE indice_sol_mod
    73   USE lmdz_netcdf,             ONLY: NF90_OPEN,    NF90_CREATE,  NF90_CLOSE,        &
     73  USE netcdf,             ONLY: NF90_OPEN,    NF90_CREATE,  NF90_CLOSE,        &
    7474                  NF90_DEF_DIM, NF90_DEF_VAR, NF90_PUT_VAR, NF90_PUT_ATT,      &
    7575                  NF90_NOERR,   NF90_NOWRITE,  NF90_GLOBAL,       &
    7676                  NF90_CLOBBER, NF90_ENDDEF,  NF90_UNLIMITED, NF90_FLOAT,      &
    77                   NF90_64BIT_OFFSET, NF90_FORMAT
     77                  NF90_64BIT_OFFSET
     78  USE lmdz_netcdf_format, ONLY: nf90_format
    7879  USE inter_barxy_m,      ONLY: inter_barxy
    7980  USE netcdf95,           ONLY: nf95_def_var, nf95_put_att, nf95_put_var
     
    251252
    252253  !--- Variables creation
    253   CALL ncerr(NF90_DEF_VAR(nid,"TEMPS",NF90_FORMAT,[ntim],id_tim),fnam)
    254   CALL ncerr(NF90_DEF_VAR(nid,"FOCE", NF90_FORMAT,dims,id_FOCE),fnam)
    255   CALL ncerr(NF90_DEF_VAR(nid,"FSIC", NF90_FORMAT,dims,id_FSIC),fnam)
    256   CALL ncerr(NF90_DEF_VAR(nid,"FTER", NF90_FORMAT,dims,id_FTER),fnam)
    257   CALL ncerr(NF90_DEF_VAR(nid,"FLIC", NF90_FORMAT,dims,id_FLIC),fnam)
    258   CALL ncerr(NF90_DEF_VAR(nid,"SST",  NF90_FORMAT,dims,id_SST),fnam)
    259   CALL ncerr(NF90_DEF_VAR(nid,"BILS", NF90_FORMAT,dims,id_BILS),fnam)
    260   CALL ncerr(NF90_DEF_VAR(nid,"ALB",  NF90_FORMAT,dims,id_ALB),fnam)
    261   CALL ncerr(NF90_DEF_VAR(nid,"RUG",  NF90_FORMAT,dims,id_RUG),fnam)
     254  CALL ncerr(NF90_DEF_VAR(nid,"TEMPS",nf90_format,[ntim],id_tim),fnam)
     255  CALL ncerr(NF90_DEF_VAR(nid,"FOCE", nf90_format,dims,id_FOCE),fnam)
     256  CALL ncerr(NF90_DEF_VAR(nid,"FSIC", nf90_format,dims,id_FSIC),fnam)
     257  CALL ncerr(NF90_DEF_VAR(nid,"FTER", nf90_format,dims,id_FTER),fnam)
     258  CALL ncerr(NF90_DEF_VAR(nid,"FLIC", nf90_format,dims,id_FLIC),fnam)
     259  CALL ncerr(NF90_DEF_VAR(nid,"SST",  nf90_format,dims,id_SST),fnam)
     260  CALL ncerr(NF90_DEF_VAR(nid,"BILS", nf90_format,dims,id_BILS),fnam)
     261  CALL ncerr(NF90_DEF_VAR(nid,"ALB",  nf90_format,dims,id_ALB),fnam)
     262  CALL ncerr(NF90_DEF_VAR(nid,"RUG",  nf90_format,dims,id_RUG),fnam)
    262263  call nf95_def_var(nid, "longitude", NF90_FLOAT, ndim, varid_longitude)
    263264  call nf95_def_var(nid, "latitude",  NF90_FLOAT, ndim, varid_latitude)
     
    321322!     2) Dimensional variables have the same names as corresponding dimensions.
    322323!-----------------------------------------------------------------------------
    323   USE lmdz_netcdf, ONLY: NF90_OPEN, NF90_INQ_VARID, NF90_INQUIRE_VARIABLE, &
    324        NF90_CLOSE, NF90_INQ_DIMID, NF90_INQUIRE_DIMENSION, NF90_GET_VAR, &
     324  USE netcdf, ONLY: NF90_OPEN, NF90_INQ_VARID, NF90_INQUIRE_VARIABLE, &
     325       NF90_CLOSE, nf90_inq_dimid, NF90_INQUIRE_DIMENSION, NF90_GET_VAR, &
    325326       NF90_GET_ATT
    326327  USE pchsp_95_m, only: pchsp_95
     
    740741! Purpose: NetCDF errors handling.
    741742!-------------------------------------------------------------------------------
    742   USE lmdz_netcdf, ONLY : NF90_NOERR, NF90_STRERROR
     743  USE netcdf, ONLY : NF90_NOERR, NF90_STRERROR
    743744  IMPLICIT NONE
    744745!-------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.