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/phymars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/inistats.F

    r38 r410  
    4343      enddo
    4444
    45       ierr = NF_CREATE("stats.nc",NF_CLOBBER,nid)
     45      ierr = NF_CREATE("stats.nc",IOR(NF_CLOBBER,NF_64BIT_OFFSET),nid)
    4646      if (ierr.ne.NF_NOERR) then
    4747         write (*,*) NF_STRERROR(ierr)
  • trunk/LMDZ.MARS/libf/phymars/physdem1.F

    r224 r410  
    9494c  things to store in the physics start file:
    9595c
    96       ierr = NF_CREATE(adjustl(filename),NF_CLOBBER, nid)
     96      ierr = NF_CREATE(adjustl(filename), 
     97     &      IOR(NF_CLOBBER,NF_64BIT_OFFSET), nid)
    9798      IF (ierr.NE.NF_NOERR) THEN
    9899        WRITE(6,*)'physdem1: Problem creating file ',adjustl(filename)
  • trunk/LMDZ.MARS/libf/phymars/writediagfi.F

    r320 r410  
    164164
    165165         ! Create the NetCDF file
    166          ierr = NF_CREATE(fichnom, NF_CLOBBER, nid)
     166         ierr = NF_CREATE(fichnom, IOR(NF_CLOBBER,NF_64BIT_OFFSET), nid)
    167167         ! Define the 'Time' dimension
    168168         ierr = nf_def_dim(nid,"Time",NF_UNLIMITED,idim)
  • trunk/LMDZ.MARS/libf/phymars/writediagsoil.F90

    r38 r410  
    7373 
    7474  ! Create output NetCDF file
    75   ierr=NF_CREATE(filename,NF_CLOBBER,nid)
     75  ierr=NF_CREATE(filename,IOR(NF_CLOBBER,NF_64BIT_OFFSET),nid)
    7676  if (ierr.ne.NF_NOERR) then
    7777    write(*,*)'writediagsoil: Error, failed creating file '//trim(filename)
Note: See TracChangeset for help on using the changeset viewer.