Ignore:
Timestamp:
Sep 20, 2022, 4:09:50 PM (2 years ago)
Author:
lguez
Message:

Replace nf_put_vara_type by nf90_put_var

The immediate motivation is a bug fix: nf_put_vara_type was called
with scalar instead of array actual arguments for dummy array
arguments start and count. Correcting this, we might as well take the
opportunity to use nf90_put_var, so we no longer need to test
NC_DOUBLE and we have half as many calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/iotd_ecrit.F90

    r3978 r4259  
    2222!=================================================================
    2323 
     24      use netcdf, only: nf90_put_var
    2425      implicit none
    2526
     
    108109
    109110
    110            ierr= NF_PUT_VARA_REAL(nid,varid,ntime,1,date)
     111           ierr= NF90_PUT_VAR(nid,varid,date,[ntime])
    111112
    112113!          print*,'date ',date,ierr,nid
     
    172173
    173174
    174       ierr= NF_PUT_VARA_REAL(nid,varid,corner,edges,zx)
     175      ierr= NF90_PUT_VAR(nid,varid,zx,corner,edges)
    175176
    176177      if (ierr.ne.NF_NOERR) then
Note: See TracChangeset for help on using the changeset viewer.