Changeset 2572 for trunk/LMDZ.COMMON/libf/dyn3dpar
- Timestamp:
- Oct 25, 2021, 9:57:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/dyn3dpar/guide_p_mod.F90
r1650 r2572 1409 1409 IF (guide_plevs.EQ.1) THEN 1410 1410 #ifdef NC_DOUBLE 1411 status=NF_GET_VARA_DOUBLE(ncidpl,varidap, 1,nlevnc,apnc)1412 status=NF_GET_VARA_DOUBLE(ncidpl,varidbp, 1,nlevnc,bpnc)1411 status=NF_GET_VARA_DOUBLE(ncidpl,varidap,[1],[nlevnc],apnc) 1412 status=NF_GET_VARA_DOUBLE(ncidpl,varidbp,[1],[nlevnc],bpnc) 1413 1413 #else 1414 status=NF_GET_VARA_REAL(ncidpl,varidap, 1,nlevnc,apnc)1415 status=NF_GET_VARA_REAL(ncidpl,varidbp, 1,nlevnc,bpnc)1414 status=NF_GET_VARA_REAL(ncidpl,varidap,[1],[nlevnc],apnc) 1415 status=NF_GET_VARA_REAL(ncidpl,varidbp,[1],[nlevnc],bpnc) 1416 1416 #endif 1417 1417 ELSEIF (guide_plevs.EQ.0) THEN 1418 1418 #ifdef NC_DOUBLE 1419 status=NF_GET_VARA_DOUBLE(ncidpl,varidpl, 1,nlevnc,apnc)1419 status=NF_GET_VARA_DOUBLE(ncidpl,varidpl,[1],[nlevnc],apnc) 1420 1420 #else 1421 status=NF_GET_VARA_REAL(ncidpl,varidpl, 1,nlevnc,apnc)1421 status=NF_GET_VARA_REAL(ncidpl,varidpl,[1],[nlevnc],apnc) 1422 1422 #endif 1423 1423 apnc=apnc*100.! conversion en Pascals … … 1674 1674 if (guide_plevs.EQ.1) then 1675 1675 #ifdef NC_DOUBLE 1676 status=NF_GET_VARA_DOUBLE(ncidpl,varidap, 1,nlevnc,apnc)1677 status=NF_GET_VARA_DOUBLE(ncidpl,varidbp, 1,nlevnc,bpnc)1676 status=NF_GET_VARA_DOUBLE(ncidpl,varidap,[1],[nlevnc],apnc) 1677 status=NF_GET_VARA_DOUBLE(ncidpl,varidbp,[1],[nlevnc],bpnc) 1678 1678 #else 1679 status=NF_GET_VARA_REAL(ncidpl,varidap, 1,nlevnc,apnc)1680 status=NF_GET_VARA_REAL(ncidpl,varidbp, 1,nlevnc,bpnc)1679 status=NF_GET_VARA_REAL(ncidpl,varidap,[1],[nlevnc],apnc) 1680 status=NF_GET_VARA_REAL(ncidpl,varidbp,[1],[nlevnc],bpnc) 1681 1681 #endif 1682 1682 elseif (guide_plevs.EQ.0) THEN 1683 1683 #ifdef NC_DOUBLE 1684 status=NF_GET_VARA_DOUBLE(ncidpl,varidpl, 1,nlevnc,apnc)1684 status=NF_GET_VARA_DOUBLE(ncidpl,varidpl,[1],[nlevnc],apnc) 1685 1685 #else 1686 status=NF_GET_VARA_REAL(ncidpl,varidpl, 1,nlevnc,apnc)1686 status=NF_GET_VARA_REAL(ncidpl,varidpl,[1],[nlevnc],apnc) 1687 1687 #endif 1688 1688 apnc=apnc*100.! conversion en Pascals … … 1856 1856 ! Definition des dimensions 1857 1857 ierr=NF_DEF_DIM(nid,"LONU",iip1,id_lonu) 1858 print*,'id_lonu 1 ',id_lonu1859 1858 ierr=NF_DEF_DIM(nid,"LONV",iip1,id_lonv) 1860 1859 ierr=NF_DEF_DIM(nid,"LATU",jjp1,id_latu) … … 1864 1863 1865 1864 ! Creation des variables dimensions 1866 ierr=NF_DEF_VAR(nid,"LONU",NF_FLOAT,1,id_lonu,vid_lonu) 1867 print*,'id_lonu 2 ',id_lonu 1868 ierr=NF_DEF_VAR(nid,"LONV",NF_FLOAT,1,id_lonv,vid_lonv) 1869 ierr=NF_DEF_VAR(nid,"LATU",NF_FLOAT,1,id_latu,vid_latu) 1870 ierr=NF_DEF_VAR(nid,"LATV",NF_FLOAT,1,id_latv,vid_latv) 1871 ierr=NF_DEF_VAR(nid,"LEVEL",NF_FLOAT,1,id_lev,vid_lev) 1865 ierr=NF_DEF_VAR(nid,"LONU",NF_FLOAT,1,[id_lonu],vid_lonu) 1866 ierr=NF_DEF_VAR(nid,"LONV",NF_FLOAT,1,[id_lonv],vid_lonv) 1867 ierr=NF_DEF_VAR(nid,"LATU",NF_FLOAT,1,[id_latu],vid_latu) 1868 ierr=NF_DEF_VAR(nid,"LATV",NF_FLOAT,1,[id_latv],vid_latv) 1869 ierr=NF_DEF_VAR(nid,"LEVEL",NF_FLOAT,1,[id_lev],vid_lev) 1872 1870 ierr=NF_DEF_VAR(nid,"cu",NF_FLOAT,2,(/id_lonu,id_latu/),vid_cu) 1873 1871 ierr=NF_DEF_VAR(nid,"cv",NF_FLOAT,2,(/id_lonv,id_latv/),vid_cv)
Note: See TracChangeset
for help on using the changeset viewer.