Changeset 4253 for LMDZ6/trunk/libf/dyn3d
- Timestamp:
- Sep 20, 2022, 4:09:48 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/guide_mod.F90
r4252 r4253 1710 1710 USE comvert_mod, ONLY: presnivs 1711 1711 use netcdf95, only: nf95_def_var, nf95_put_var 1712 use netcdf, only: nf90_float 1712 use netcdf, only: nf90_float, nf90_def_var 1713 1713 1714 1714 IMPLICIT NONE … … 1752 1752 1753 1753 ! Creation des variables dimensions 1754 ierr=NF _DEF_VAR(nid,"LONU",NF_FLOAT,1,id_lonu,vid_lonu)1755 ierr=NF _DEF_VAR(nid,"LONV",NF_FLOAT,1,id_lonv,vid_lonv)1756 ierr=NF _DEF_VAR(nid,"LATU",NF_FLOAT,1,id_latu,vid_latu)1757 ierr=NF _DEF_VAR(nid,"LATV",NF_FLOAT,1,id_latv,vid_latv)1758 ierr=NF _DEF_VAR(nid,"LEVEL",NF_FLOAT,1,id_lev,vid_lev)1759 ierr=NF _DEF_VAR(nid,"cu",NF_FLOAT,2,(/id_lonu,id_latu/),vid_cu)1760 ierr=NF _DEF_VAR(nid,"cv",NF_FLOAT,2,(/id_lonv,id_latv/),vid_cv)1761 ierr=NF _DEF_VAR(nid,"au",NF_FLOAT,2,(/id_lonu,id_latu/),vid_au)1762 ierr=NF _DEF_VAR(nid,"av",NF_FLOAT,2,(/id_lonv,id_latv/),vid_av)1754 ierr=NF90_DEF_VAR(nid,"LONU",NF90_FLOAT,id_lonu,vid_lonu) 1755 ierr=NF90_DEF_VAR(nid,"LONV",NF90_FLOAT,id_lonv,vid_lonv) 1756 ierr=NF90_DEF_VAR(nid,"LATU",NF90_FLOAT,id_latu,vid_latu) 1757 ierr=NF90_DEF_VAR(nid,"LATV",NF90_FLOAT,id_latv,vid_latv) 1758 ierr=NF90_DEF_VAR(nid,"LEVEL",NF90_FLOAT,id_lev,vid_lev) 1759 ierr=NF90_DEF_VAR(nid,"cu",NF90_FLOAT,(/id_lonu,id_latu/),vid_cu) 1760 ierr=NF90_DEF_VAR(nid,"cv",NF90_FLOAT,(/id_lonv,id_latv/),vid_cv) 1761 ierr=NF90_DEF_VAR(nid,"au",NF90_FLOAT,(/id_lonu,id_latu/),vid_au) 1762 ierr=NF90_DEF_VAR(nid,"av",NF90_FLOAT,(/id_lonv,id_latv/),vid_av) 1763 1763 call nf95_def_var(nid, "alpha_T", nf90_float, (/id_lonv, id_latu/), & 1764 1764 varid_alpha_t) … … 1798 1798 ! Pressure (GCM) 1799 1799 dim4=(/id_lonv,id_latu,id_lev,id_tim/) 1800 ierr = NF _DEF_VAR(nid,"SP",NF_FLOAT,4,dim4,varid)1800 ierr = NF90_DEF_VAR(nid,"SP",NF90_FLOAT,dim4,varid) 1801 1801 ! Surface pressure (guidage) 1802 1802 IF (guide_P) THEN 1803 1803 dim3=(/id_lonv,id_latu,id_tim/) 1804 ierr = NF _DEF_VAR(nid,"ps",NF_FLOAT,3,dim3,varid)1804 ierr = NF90_DEF_VAR(nid,"ps",NF90_FLOAT,dim3,varid) 1805 1805 ENDIF 1806 1806 ! Zonal wind 1807 1807 IF (guide_u) THEN 1808 1808 dim4=(/id_lonu,id_latu,id_lev,id_tim/) 1809 ierr = NF _DEF_VAR(nid,"u",NF_FLOAT,4,dim4,varid)1810 ierr = NF _DEF_VAR(nid,"ua",NF_FLOAT,4,dim4,varid)1811 ierr = NF _DEF_VAR(nid,"ucov",NF_FLOAT,4,dim4,varid)1809 ierr = NF90_DEF_VAR(nid,"u",NF90_FLOAT,dim4,varid) 1810 ierr = NF90_DEF_VAR(nid,"ua",NF90_FLOAT,dim4,varid) 1811 ierr = NF90_DEF_VAR(nid,"ucov",NF90_FLOAT,dim4,varid) 1812 1812 ENDIF 1813 1813 ! Merid. wind 1814 1814 IF (guide_v) THEN 1815 1815 dim4=(/id_lonv,id_latv,id_lev,id_tim/) 1816 ierr = NF _DEF_VAR(nid,"v",NF_FLOAT,4,dim4,varid)1817 ierr = NF _DEF_VAR(nid,"va",NF_FLOAT,4,dim4,varid)1818 ierr = NF _DEF_VAR(nid,"vcov",NF_FLOAT,4,dim4,varid)1816 ierr = NF90_DEF_VAR(nid,"v",NF90_FLOAT,dim4,varid) 1817 ierr = NF90_DEF_VAR(nid,"va",NF90_FLOAT,dim4,varid) 1818 ierr = NF90_DEF_VAR(nid,"vcov",NF90_FLOAT,dim4,varid) 1819 1819 ENDIF 1820 1820 ! Pot. Temperature 1821 1821 IF (guide_T) THEN 1822 1822 dim4=(/id_lonv,id_latu,id_lev,id_tim/) 1823 ierr = NF _DEF_VAR(nid,"teta",NF_FLOAT,4,dim4,varid)1823 ierr = NF90_DEF_VAR(nid,"teta",NF90_FLOAT,dim4,varid) 1824 1824 ENDIF 1825 1825 ! Specific Humidity 1826 1826 IF (guide_Q) THEN 1827 1827 dim4=(/id_lonv,id_latu,id_lev,id_tim/) 1828 ierr = NF _DEF_VAR(nid,"q",NF_FLOAT,4,dim4,varid)1828 ierr = NF90_DEF_VAR(nid,"q",NF90_FLOAT,dim4,varid) 1829 1829 ENDIF 1830 1830
Note: See TracChangeset
for help on using the changeset viewer.