Ignore:
Timestamp:
Nov 22, 2011, 5:07:44 PM (13 years ago)
Author:
acolaitis
Message:

Modified NCDF norm of our files from classic to 64bit offset to support variables indices of more than integer*4 maximum length. This is a priori retrocompatible with classic format. I have tested it, it works for all file outputs, newstart (on classic or 64-bit offset files). One can check the format of his .nc with ncdump -k file.nc

Location:
trunk/LMDZ.MARS/libf/dyn3d
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/dyn3d/anl_mcdstats.F

    r38 r410  
    412412 
    413413          ierr = NF_CREATE(trim(adjustl(nomfich))//"_P.nc",
    414      &                     NF_CLOBBER, nout)
     414     &                     IOR(NF_CLOBBER,NF_64BIT_OFFSET), nout)
    415415          if (ierr.NE.NF_NOERR) THEN
    416416            write(*,*)' Pb d''ouverture du fichier '
     
    431431
    432432          ierr = NF_CREATE(trim(adjustl(nomfich))//"_Z.nc",
    433      &                     NF_CLOBBER, nout)
     433     &                     IOR(NF_CLOBBER,NF_64BIT_OFFSET), nout)
    434434          IF(ierr.NE.NF_NOERR) THEN
    435435            write(*,*)' Pb d''ouverture du fichier '
  • trunk/LMDZ.MARS/libf/dyn3d/anl_stats-diag.F

    r38 r410  
    403403 
    404404          ierr = NF_CREATE(trim(adjustl(nomfich))//"_P.nc",
    405      &                     NF_CLOBBER, nout)
     405     &                     IOR(NF_CLOBBER,NF_64BIT_OFFSET), nout)
    406406          if (ierr.NE.NF_NOERR) THEN
    407407            write(*,*)' Pb d''ouverture du fichier '
     
    422422
    423423          ierr = NF_CREATE(trim(adjustl(nomfich))//"_Z.nc",
    424      &                     NF_CLOBBER, nout)
     424     &                     IOR(NF_CLOBBER,NF_64BIT_OFFSET), nout)
    425425          IF(ierr.NE.NF_NOERR) THEN
    426426            write(*,*)' Pb d''ouverture du fichier '
  • trunk/LMDZ.MARS/libf/dyn3d/dynredem.F

    r38 r410  
    111111c Creation du fichier:
    112112c
    113       ierr = NF_CREATE(fichnom, NF_CLOBBER, nid)
     113      ierr = NF_CREATE(fichnom, IOR(NF_CLOBBER,NF_64BIT_OFFSET), nid)
    114114      IF (ierr.NE.NF_NOERR) THEN
    115115         WRITE(6,*)" Failed creating file "//fichnom
  • trunk/LMDZ.MARS/libf/dyn3d/iniav.F

    r38 r410  
    3939      time0_av=pfrac0
    4040c
    41       ierr = NF_CREATE(fichnom, NF_CLOBBER, nid)
     41      ierr = NF_CREATE(fichnom, IOR(NF_CLOBBER,NF_64BIT_OFFSET), nid)
    4242      IF (ierr.NE.NF_NOERR) THEN
    4343         WRITE(6,*)" Pb d ouverture du fichier "//fichnom
  • trunk/LMDZ.MARS/libf/dyn3d/start2archive.F

    r38 r410  
    281281         write(*,*)'OK, Could not open file "start_archive.nc"'
    282282         write(*,*)'So let s create a new "start_archive"'
    283          ierr = NF_CREATE('start_archive.nc', NF_CLOBBER, nid)
     283         ierr = NF_CREATE('start_archive.nc',
     284     &  IOR(NF_CLOBBER,NF_64BIT_OFFSET), nid)
    284285         call ini_archive(nid,day_ini,phis,ithS,tab_cntrl_fi)
    285286      endif
  • trunk/LMDZ.MARS/libf/dyn3d/writediagdyn.F90

    r38 r410  
    6363 
    6464  ! Create output NetCDF file
    65   ierr=NF_CREATE(filename,NF_CLOBBER,nid)
     65  ierr=NF_CREATE(filename,IOR(NF_CLOBBER,NF_64BIT_OFFSET),nid)
    6666  if (ierr.ne.NF_NOERR) then
    6767    write(*,*)'writediagdyn: Error, failed creating file '//trim(filename)
Note: See TracChangeset for help on using the changeset viewer.