Changeset 5088 for LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd
- Timestamp:
- Jul 20, 2024, 4:30:31 PM (7 months ago)
- 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 21 21 USE etat0phys, ONLY: etat0phys_netcdf 22 22 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_VAR23 USE netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, NF90_NOERR, & 24 NF90_INQUIRE_DIMENSION, nf90_inq_dimid, NF90_INQ_VARID, NF90_GET_VAR 25 25 USE infotrac, ONLY: init_infotrac 26 26 USE dimphy, ONLY: klon … … 191 191 WRITE(lunout,*)'BEWARE !! File "startphy0.nc" found.' 192 192 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) 194 194 iret=NF90_INQUIRE_DIMENSION(nid_sta,nid_nph,len=nphys) 195 195 IF(nphys/=klon) THEN -
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/limit_netcdf.F90
r5087 r5088 71 71 #ifndef CPP_1D 72 72 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, & 74 74 NF90_DEF_DIM, NF90_DEF_VAR, NF90_PUT_VAR, NF90_PUT_ATT, & 75 75 NF90_NOERR, NF90_NOWRITE, NF90_GLOBAL, & 76 76 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 78 79 USE inter_barxy_m, ONLY: inter_barxy 79 80 USE netcdf95, ONLY: nf95_def_var, nf95_put_att, nf95_put_var … … 251 252 252 253 !--- 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) 262 263 call nf95_def_var(nid, "longitude", NF90_FLOAT, ndim, varid_longitude) 263 264 call nf95_def_var(nid, "latitude", NF90_FLOAT, ndim, varid_latitude) … … 321 322 ! 2) Dimensional variables have the same names as corresponding dimensions. 322 323 !----------------------------------------------------------------------------- 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, & 325 326 NF90_GET_ATT 326 327 USE pchsp_95_m, only: pchsp_95 … … 740 741 ! Purpose: NetCDF errors handling. 741 742 !------------------------------------------------------------------------------- 742 USE lmdz_netcdf, ONLY : NF90_NOERR, NF90_STRERROR743 USE netcdf, ONLY : NF90_NOERR, NF90_STRERROR 743 744 IMPLICIT NONE 744 745 !-------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.