Changeset 3803 for LMDZ6/trunk/libf


Ignore:
Timestamp:
Jan 18, 2021, 8:02:21 PM (4 years ago)
Author:
Ehouarn Millour
Message:

Make dynamics restart.nc file be in "64-bit offset" mode to enable generating large files. While at it also enforce this for limit.nc, guide_ins.nc and grilles_gcm.nc generated by the model.
EM

Location:
LMDZ6/trunk/libf
Files:
6 edited

Legend:

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

    r2622 r3803  
    99  USE infotrac
    1010  USE netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL,    &
    11                     NF90_CLOSE,  NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER
     11                    NF90_CLOSE,  NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER,   &
     12                    NF90_64BIT_OFFSET
    1213  USE dynredem_mod, ONLY: cre_var, put_var1, put_var2, err, modname, fil
    1314  USE comvert_mod, ONLY: ap,bp,aps,bps,presnivs,pseudoalt,pa,preff, &
     
    104105
    105106!--- File creation
    106   CALL err(NF90_CREATE(fichnom,NF90_CLOBBER,nid))
     107  CALL err(NF90_CREATE(fichnom,IOR(NF90_CLOBBER,NF90_64BIT_OFFSET),nid))
    107108
    108109!--- Some global attributes
  • LMDZ6/trunk/libf/dyn3d/guide_mod.F90

    r3103 r3803  
    15501550! ----------------------------------------------
    15511551! Ouverture du fichier
    1552         ierr=NF_CREATE("guide_ins.nc",NF_CLOBBER,nid)
     1552        ierr=NF_CREATE("guide_ins.nc",IOR(NF_CLOBBER,NF_64BIT_OFFSET),nid)
    15531553! Definition des dimensions
    15541554        ierr=NF_DEF_DIM(nid,"LONU",iip1,id_lonu)
  • LMDZ6/trunk/libf/dyn3d_common/grilles_gcm_netcdf_sub.F90

    r2600 r3803  
    7878  ! CREATION OUTPUT
    7979  ! ouverture fichier netcdf de sortie out
    80   status=NF_CREATE('grilles_gcm.nc',NF_CLOBBER,ncid_out)
     80  status=NF_CREATE('grilles_gcm.nc',IOR(NF_CLOBBER,NF_64BIT_OFFSET),ncid_out)
    8181  CALL handle_err(status)
    8282  status=NF_DEF_DIM(ncid_out,'lonu',iim+1,out_lonudim)
  • LMDZ6/trunk/libf/dyn3dmem/dynredem_loc.F90

    r2622 r3803  
    1111  USE infotrac
    1212  USE netcdf, ONLY: NF90_CREATE, NF90_DEF_DIM, NF90_INQ_VARID, NF90_GLOBAL,    &
    13                     NF90_CLOSE,  NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER
     13                    NF90_CLOSE,  NF90_PUT_ATT, NF90_UNLIMITED, NF90_CLOBBER,   &
     14                    NF90_64BIT_OFFSET
    1415  USE dynredem_mod, ONLY: cre_var, put_var, err, modname, fil
    1516  USE comvert_mod, ONLY: ap,bp,aps,bps,presnivs,pseudoalt,pa,preff, &
     
    110111
    111112!--- File creation
    112   CALL err(NF90_CREATE(fichnom,NF90_CLOBBER,nid))
     113  CALL err(NF90_CREATE(fichnom,IOR(NF90_CLOBBER,NF90_64BIT_OFFSET),nid))
    113114
    114115!--- Some global attributes
  • LMDZ6/trunk/libf/dyn3dmem/guide_loc_mod.F90

    r3795 r3803  
    21982198! ----------------------------------------------
    21992199! Ouverture du fichier
    2200         ierr=NF_CREATE("guide_ins.nc",NF_CLOBBER,nid)
     2200        ierr=NF_CREATE("guide_ins.nc",IOR(NF_CLOBBER,NF_64BIT_OFFSET),nid)
    22012201! Definition des dimensions
    22022202        ierr=NF_DEF_DIM(nid,"LONU",iip1,id_lonu)
  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/limit_netcdf.F90

    r3380 r3803  
    7474                  NF90_DEF_DIM, NF90_DEF_VAR, NF90_PUT_VAR, NF90_PUT_ATT,      &
    7575                  NF90_NOERR,   NF90_NOWRITE, NF90_DOUBLE,  NF90_GLOBAL,       &
    76                   NF90_CLOBBER, NF90_ENDDEF,  NF90_UNLIMITED, NF90_FLOAT
     76                  NF90_CLOBBER, NF90_ENDDEF,  NF90_UNLIMITED, NF90_FLOAT,      &
     77                  NF90_64BIT_OFFSET
    7778  USE inter_barxy_m,      ONLY: inter_barxy
    7879  USE netcdf95,           ONLY: nf95_def_var, nf95_put_att, nf95_put_var
     
    228229
    229230  !--- File creation
    230   CALL ncerr(NF90_CREATE(fnam,NF90_CLOBBER,nid),fnam)
     231  CALL ncerr(NF90_CREATE(fnam,IOR(NF90_CLOBBER,NF90_64BIT_OFFSET),nid),fnam)
    231232  CALL ncerr(NF90_PUT_ATT(nid,NF90_GLOBAL,"title","Fichier conditions aux limites"),fnam)
    232233  str='File produced using ce0l executable.'
Note: See TracChangeset for help on using the changeset viewer.