Changeset 5088 for LMDZ6/branches/Amaury_dev/libf/dyn3d
- Timestamp:
- Jul 20, 2024, 4:30:31 PM (6 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/dyn3d
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/dyn3d/dynetat0.F90
r5075 r5088 8 8 USE infotrac, ONLY: nqtot, tracers, niso, iqIsoPha, iH2O, isoName 9 9 USE strings_mod, ONLY: maxlen, msg, strStack, real2str, int2str 10 USE lmdz_netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_INQ_VARID, &10 USE netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_INQ_VARID, & 11 11 NF90_CLOSE, NF90_GET_VAR, NF90_NoErr 12 12 USE readTracFiles_mod, ONLY: new2oldH2O, newHNO3, oldHNO3, getKey -
LMDZ6/branches/Amaury_dev/libf/dyn3d/dynredem.F90
r5075 r5088 9 9 USE strings_mod, ONLY: maxlen 10 10 USE infotrac, ONLY: nqtot, tracers 11 USE lmdz_netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL, &11 USE netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL, & 12 12 NF90_CLOSE, NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER, & 13 13 NF90_64BIT_OFFSET … … 169 169 USE infotrac, ONLY: nqtot, tracers, type_trac 170 170 USE control_mod 171 USE lmdz_netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_GET_VAR, NF90_INQ_VARID, &171 USE netcdf, ONLY: NF90_OPEN, NF90_NOWRITE, NF90_GET_VAR, NF90_INQ_VARID, & 172 172 NF90_CLOSE, NF90_WRITE, NF90_PUT_VAR, NF90_NoErr 173 173 USE dynredem_mod, ONLY: dynredem_write_u, dynredem_write_v, dynredem_read_u, & -
LMDZ6/branches/Amaury_dev/libf/dyn3d/dynredem_mod.F90
r5075 r5088 1 1 MODULE dynredem_mod 2 2 3 USE lmdz_netcdf, ONLY: nf90_strerror,nf90_noerr,nf90_redef,nf90_put_var,nf90_enddef,nf90_put_att,& 4 nf90_inq_varid,nf90_get_var,nf90_format,nf90_def_var 3 USE netcdf, ONLY: nf90_strerror,nf90_noerr,nf90_redef,nf90_put_var,nf90_enddef,nf90_put_att,& 4 nf90_inq_varid,nf90_get_var,nf90_def_var 5 USE lmdz_netcdf_format, ONLY: nf90_format 5 6 IMPLICIT NONE; PRIVATE 6 7 PUBLIC :: dynredem_write_u, dynredem_write_v, dynredem_read_u, err … … 95 96 CHARACTER(LEN=*), OPTIONAL, INTENT(IN) :: units 96 97 !=============================================================================== 97 CALL err(NF90_DEF_VAR(ncid,var, NF90_FORMAT,did,nvarid),"inq",var)98 CALL err(NF90_DEF_VAR(ncid,var,nf90_format,did,nvarid),"inq",var) 98 99 IF(title/="") CALL err(NF90_PUT_ATT(ncid,nvarid,"title",title),var) 99 100 IF(PRESENT(units)) CALL err(NF90_PUT_ATT(ncid,nvarid,"units",units),var) -
LMDZ6/branches/Amaury_dev/libf/dyn3d/guide_mod.F90
r5075 r5088 11 11 USE getparam, ONLY: ini_getparam, fin_getparam, getpar 12 12 USE Write_Field 13 USE lmdz_netcdf, ONLY: nf90_nowrite, nf90_open, nf90_inq_varid, nf90_close, &13 USE netcdf, ONLY: nf90_nowrite, nf90_open, nf90_inq_varid, nf90_close, & 14 14 nf90_inq_dimid, nf90_inquire_dimension, nf90_float, nf90_def_var, & 15 nf _create, nf_def_dim, nf_open, nf_unlimited, nf_write, nf_enddef, nf_redef, &16 nf _close, nf_inq_varid, nf90_get_var, nf90_noerr, nf_clobber, &17 nf _64bit_offset, nf_inq_dimid, nf_inq_dimlen, nf90_put_var15 nf90_create, nf90_def_dim, nf90_open, nf90_unlimited, nf90_write, nf90_enddef, nf90_redef, & 16 nf90_close, nf90_inq_varid, nf90_get_var, nf90_noerr, nf90_clobber, & 17 nf90_64bit_offset, nf90_inq_dimid, nf90_inquire_dimension, nf90_put_var 18 18 USE pres2lev_mod, ONLY: pres2lev 19 19 … … 72 72 SUBROUTINE guide_init 73 73 74 use lmdz_netcdf, only: nf90_noerr74 use netcdf, only: nf90_noerr 75 75 USE control_mod, ONLY: day_step 76 76 USE serre_mod, ONLY: grossismx … … 226 226 227 227 endif 228 error= NF_INQ_DIMID(ncidpl,'LEVEL',rid)229 IF (error/=NF90_NOERR) error= NF_INQ_DIMID(ncidpl,'PRESSURE',rid)228 error=nf90_inq_dimid(ncidpl,'LEVEL',rid) 229 IF (error/=NF90_NOERR) error=nf90_inq_dimid(ncidpl,'PRESSURE',rid) 230 230 IF (error/=NF90_NOERR) THEN 231 231 CALL abort_gcm(modname,'Nudging: error reading pressure levels',1) 232 232 ENDIF 233 error= NF_INQ_DIMLEN(ncidpl,rid,nlevnc)233 error=nf90_inquire_dimension(ncidpl,rid,len=nlevnc) 234 234 write(*,*)trim(modname)//' : number of vertical levels nlevnc', nlevnc 235 235 rcod = nf90_close(ncidpl) … … 1168 1168 if (ncidpl==-99) ncidpl=ncidu 1169 1169 1170 status= NF90_INQ_DIMID(ncidu, "LONU", dimid)1170 status=nf90_inq_dimid(ncidu, "LONU", dimid) 1171 1171 status=NF90_INQUIRE_DIMENSION(ncidu,dimid,namedim,lendim) 1172 1172 IF (lendim /= iip1) THEN … … 1175 1175 ENDIF 1176 1176 1177 status= NF90_INQ_DIMID(ncidu, "LATU", dimid)1177 status=nf90_inq_dimid(ncidu, "LATU", dimid) 1178 1178 status=NF90_INQUIRE_DIMENSION(ncidu,dimid,namedim,lendim) 1179 1179 IF (lendim /= jjp1) THEN … … 1199 1199 if (ncidpl==-99) ncidpl=ncidv 1200 1200 1201 status= NF90_INQ_DIMID(ncidv, "LONV", dimid)1201 status=nf90_inq_dimid(ncidv, "LONV", dimid) 1202 1202 status=NF90_INQUIRE_DIMENSION(ncidv,dimid,namedim,lendim) 1203 1203 … … 1208 1208 1209 1209 1210 status= NF90_INQ_DIMID(ncidv, "LATV", dimid)1210 status=nf90_inq_dimid(ncidv, "LATV", dimid) 1211 1211 status=NF90_INQUIRE_DIMENSION(ncidv,dimid,namedim,lendim) 1212 1212 IF (lendim /= jjm) THEN … … 1232 1232 if (ncidpl==-99) ncidpl=ncidt 1233 1233 1234 status= NF90_INQ_DIMID(ncidt, "LONV", dimid)1234 status=nf90_inq_dimid(ncidt, "LONV", dimid) 1235 1235 status=NF90_INQUIRE_DIMENSION(ncidt,dimid,namedim,lendim) 1236 1236 IF (lendim /= iip1) THEN … … 1239 1239 ENDIF 1240 1240 1241 status= NF90_INQ_DIMID(ncidt, "LATU", dimid)1241 status=nf90_inq_dimid(ncidt, "LATU", dimid) 1242 1242 status=NF90_INQUIRE_DIMENSION(ncidt,dimid,namedim,lendim) 1243 1243 IF (lendim /= jjp1) THEN … … 1263 1263 if (ncidpl==-99) ncidpl=ncidQ 1264 1264 1265 status= NF90_INQ_DIMID(ncidQ, "LONV", dimid)1265 status=nf90_inq_dimid(ncidQ, "LONV", dimid) 1266 1266 status=NF90_INQUIRE_DIMENSION(ncidQ,dimid,namedim,lendim) 1267 1267 IF (lendim /= iip1) THEN … … 1270 1270 ENDIF 1271 1271 1272 status= NF90_INQ_DIMID(ncidQ, "LATU", dimid)1272 status=nf90_inq_dimid(ncidQ, "LATU", dimid) 1273 1273 status=NF90_INQUIRE_DIMENSION(ncidQ,dimid,namedim,lendim) 1274 1274 IF (lendim /= jjp1) THEN … … 1680 1680 ! ---------------------------------------------- 1681 1681 ! Ouverture du fichier 1682 ierr= NF_CREATE("guide_ins.nc",IOR(NF_CLOBBER,NF_64BIT_OFFSET),nid)1682 ierr=nf90_create("guide_ins.nc",IOR(nf90_clobber,nf90_64bit_offset),nid) 1683 1683 ! Definition des dimensions 1684 ierr= NF_DEF_DIM(nid,"LONU",iip1,id_lonu)1685 ierr= NF_DEF_DIM(nid,"LONV",iip1,id_lonv)1686 ierr= NF_DEF_DIM(nid,"LATU",jjp1,id_latu)1687 ierr= NF_DEF_DIM(nid,"LATV",jjm,id_latv)1688 ierr= NF_DEF_DIM(nid,"LEVEL",llm,id_lev)1689 ierr= NF_DEF_DIM(nid,"TIME",NF_UNLIMITED,id_tim)1684 ierr=nf90_def_dim(nid,"LONU",iip1,id_lonu) 1685 ierr=nf90_def_dim(nid,"LONV",iip1,id_lonv) 1686 ierr=nf90_def_dim(nid,"LATU",jjp1,id_latu) 1687 ierr=nf90_def_dim(nid,"LATV",jjm,id_latv) 1688 ierr=nf90_def_dim(nid,"LEVEL",llm,id_lev) 1689 ierr=nf90_def_dim(nid,"TIME",nf90_unlimited,id_tim) 1690 1690 1691 1691 ! Creation des variables dimensions … … 1704 1704 varid_alpha_q) 1705 1705 1706 ierr= NF_ENDDEF(nid)1706 ierr=nf90_enddef(nid) 1707 1707 1708 1708 ! Enregistrement des variables dimensions … … 1721 1721 ! Cr�ation des variables sauvegard�es 1722 1722 ! -------------------------------------------------------------------- 1723 ierr = NF_REDEF(nid)1723 ierr = nf90_redef(nid) 1724 1724 ! Pressure (GCM) 1725 1725 dim4=(/id_lonv,id_latu,id_lev,id_tim/) … … 1755 1755 ENDIF 1756 1756 1757 ierr = NF_ENDDEF(nid)1758 ierr = NF_CLOSE(nid)1757 ierr = nf90_enddef(nid) 1758 ierr = nf90_close(nid) 1759 1759 ENDIF ! timestep=0 1760 1760 … … 1762 1762 ! Enregistrement du champ 1763 1763 ! -------------------------------------------------------------------- 1764 ierr= NF_OPEN("guide_ins.nc",NF_WRITE,nid)1764 ierr=nf90_open("guide_ins.nc",nf90_write,nid) 1765 1765 1766 1766 IF (varname=="SP") timestep=timestep+1 1767 1767 1768 ierr = NF_INQ_VARID(nid,varname,varid)1768 ierr = nf90_inq_varid(nid,varname,varid) 1769 1769 SELECT CASE (varname) 1770 1770 CASE ("SP","ps") … … 1790 1790 1791 1791 ierr = nf90_put_var(nid,varid,field2,start,count) 1792 ierr = NF_CLOSE(nid)1792 ierr = nf90_close(nid) 1793 1793 1794 1794 END SUBROUTINE guide_out -
LMDZ6/branches/Amaury_dev/libf/dyn3d/iniacademic.F90
r5075 r5088 22 22 USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0 23 23 USE readTracFiles_mod, ONLY: addPhase 24 use lmdz_netcdf, only : NF90_NOWRITE,NF90_OPEN,NF90_NOERR,NF90_INQ_VARID,NF90_CLOSE,NF90_GET_VAR24 use netcdf, only : NF90_NOWRITE,NF90_OPEN,NF90_NOERR,NF90_INQ_VARID,NF90_CLOSE,NF90_GET_VAR 25 25 26 26 ! Author: Frederic Hourdin original: 15/01/93
Note: See TracChangeset
for help on using the changeset viewer.