Changeset 4013 for LMDZ6/branches/Ocean_skin/libf/phylmd/iotd_ecrit.F90
- Timestamp:
- Nov 19, 2021, 4:58:59 PM (3 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
- Property svn:mergeinfo changed
-
LMDZ6/branches/Ocean_skin/libf/phylmd/iotd_ecrit.F90
r3102 r4013 63 63 64 64 65 66 if (n_names_iotd_def>0 .and..not.any(names_iotd_def==nom)) return 65 67 !*************************************************************** 66 68 ! Initialisation of 'firstnom' and create/open the "diagfi.nc" NetCDF file … … 74 76 75 77 76 ! Compute/write/extend ' Time' coordinate (date given in days)78 ! Compute/write/extend 'time' coordinate (date given in days) 77 79 ! (done every "first call" (at given time level) to writediagfi) 78 80 ! Note: date is incremented as 1 step ahead of physics time … … 84 86 endif 85 87 86 !print*,'nom ',nom,firstnom88 !print*,'nom ',nom,firstnom 87 89 88 90 !! Quand on tombe sur la premiere variable on ajoute un pas de temps … … 93 95 94 96 !! print*,'ntime ',ntime 95 date=ntime 97 date=iotd_t0+ntime*iotd_ts 98 !print*,'iotd_ecrit ',iotd_ts,ntime, date 96 99 ! date= float (zitau +1)/float (day_step) 97 100 98 101 ! compute corresponding date (in days and fractions thereof) 99 ! Get NetCDF ID of ' Time' variable102 ! Get NetCDF ID of 'time' variable 100 103 101 104 ierr=NF_SYNC(nid) 102 105 103 ierr= NF_INQ_VARID(nid," Time",varid)104 ! Write (append) the new date to the ' Time' array106 ierr= NF_INQ_VARID(nid,"time",varid) 107 ! Write (append) the new date to the 'time' array 105 108 106 109 … … 159 162 ierr = NF_REDEF (nid) 160 163 ierr = NF_DEF_VAR(nid,nom,NF_FLOAT,ndim,dim_cc,varid) 161 print*,'DEF ',nom,nid,varid164 !print*,'DEF ',nom,nid,varid 162 165 ierr = NF_ENDDEF(nid) 163 166 else 164 167 ierr= NF_INQ_VARID(nid,nom,varid) 165 print*,'INQ ',nom,nid,varid168 !print*,'INQ ',nom,nid,varid 166 169 ! Commandes pour recuperer automatiquement les coordonnees 167 170 ! ierr= NF_INQ_DIMID(nid,"longitude",id(1))
Note: See TracChangeset
for help on using the changeset viewer.