Ignore:
Timestamp:
Jul 18, 2024, 3:07:22 PM (6 months ago)
Author:
abarral
Message:

Replace nf_put_var* by nf90_put_var as discussed w/ Lionel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/guide_mod.F90

    r5068 r5071  
    1212  USE Write_Field
    1313  USE lmdz_netcdf, ONLY: nf90_nowrite, nf90_open, nf90_inq_varid, nf90_close, &
    14           nf90_inq_dimid, nf90_inquire_dimension, nf_put_var_rd, nf90_float, nf90_def_var, &
     14          nf90_inq_dimid, nf90_inquire_dimension, nf90_float, nf90_def_var, &
    1515          nf_create, nf_def_dim, nf_open, nf_unlimited, nf_write, nf_enddef, nf_redef, &
    16           nf_close, nf_inq_varid, nf_put_vara_rd, nf90_get_var, nf90_noerr, nf_clobber, &
    17           nf_64bit_offset, nf_inq_dimid, nf_inq_dimlen
     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_var
    1818  USE pres2lev_mod, ONLY: pres2lev
    1919
     
    17071707
    17081708! Enregistrement des variables dimensions
    1709         ierr = nf_put_var_rd(nid,vid_lonu,rlonu*180./pi)
    1710         ierr = nf_put_var_rd(nid,vid_lonv,rlonv*180./pi)
    1711         ierr = nf_put_var_rd(nid,vid_latu,rlatu*180./pi)
    1712         ierr = nf_put_var_rd(nid,vid_latv,rlatv*180./pi)
    1713         ierr = nf_put_var_rd(nid,vid_lev,presnivs)
    1714         ierr = nf_put_var_rd(nid,vid_cu,cu)
    1715         ierr = nf_put_var_rd(nid,vid_cv,cv)
    1716         ierr = nf_put_var_rd(nid,vid_au,alpha_u)
    1717         ierr = nf_put_var_rd(nid,vid_av,alpha_v)
     1709        ierr = nf90_put_var(nid,vid_lonu,rlonu*180./pi)
     1710        ierr = nf90_put_var(nid,vid_lonv,rlonv*180./pi)
     1711        ierr = nf90_put_var(nid,vid_latu,rlatu*180./pi)
     1712        ierr = nf90_put_var(nid,vid_latv,rlatv*180./pi)
     1713        ierr = nf90_put_var(nid,vid_lev,presnivs)
     1714        ierr = nf90_put_var(nid,vid_cu,cu)
     1715        ierr = nf90_put_var(nid,vid_cv,cv)
     1716        ierr = nf90_put_var(nid,vid_au,alpha_u)
     1717        ierr = nf90_put_var(nid,vid_av,alpha_v)
    17181718        call nf95_put_var(nid, varid_alpha_t, alpha_t)
    17191719        call nf95_put_var(nid, varid_alpha_q, alpha_q)
     
    17891789    END SELECT
    17901790
    1791     ierr = nf_put_vara_rd(nid,varid,start,count,field2)
     1791    ierr = nf90_put_var(nid,varid,field2,start,count)
    17921792    ierr = NF_CLOSE(nid)
    17931793
Note: See TracChangeset for help on using the changeset viewer.