Ignore:
Timestamp:
10/17/17 17:03:23 (7 years ago)
Author:
dumas
Message:

Debug output suppressed and bug correction in calving

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/Ant40_files/output_anta40_mod-0.4.f90

    r139 r142  
    9595  do k=1,nvar 
    9696    read(568,'(a100)') namevar(k) 
    97     print*,trim(namevar(k)) 
    9897    read(568,'(a100)') standard_name(k) 
    99     print*,trim(standard_name(k)) 
    10098    read(568,'(a100)') long_name(k) 
    101     print*,trim(long_name(k)) 
    10299    read(568,'(a100)') units(k) 
    103     print*,trim(units(k)) 
    104100    read(568,*) 
    105101  enddo 
    106102  close(568) 
    107   print*,'apres lecture fichier descriptions variables' 
    108103! Fichier Netcdf initMIP 
    109104! creation du fichier Netcdf : 
    110105  status=nf90_create(path = 'short'//runname//'.nc', cmode = nf90_clobber, ncid = ncid) 
    111106  if (status /= nf90_noerr) call handle_err(status) 
    112   print*,'apres nf90_create' 
    113107 
    114108! definition des dimension : 
    115109  status=nf90_def_dim(ncid, name="time", len=NF90_UNLIMITED, dimid=timeDimID) 
    116110  if (status /= nf90_noerr) call handle_err(status) 
    117   print*,'apres 2' 
    118111  status=nf90_def_var(ncid, name="time", xtype=nf90_float, dimids=(/ timeDimID/), varid=timeVarID)  
    119112  if (status /= nf90_noerr) call handle_err(status) 
    120113  status=nf90_put_att(ncid, timeVarID, "standard_name", "time") 
    121114  if (status /= nf90_noerr) call handle_err(status) 
    122   print*,'apres 3' 
    123115  status=nf90_put_att(ncid, timeVarID,"units", "years since 2007-01-01 00:00:00") 
    124116  if (status /= nf90_noerr) call handle_err(status) 
    125   print*,'apres 4' 
    126117 
    127118! definition des variables de sortie : 
     
    129120    status=nf90_def_var(ncid, name=trim(namevar(k)), xtype=nf90_float, dimids= & 
    130121          (/ timeDimID /), varid=varID(k)) 
    131   print*,'apres 5' 
    132122    if (status /= nf90_noerr) call handle_err(status) 
    133123    status=nf90_put_att(ncid, varID(k), "standard_name", trim(standard_name(k))) 
    134     print*,'apres 6',trim(standard_name(k)) 
    135124    if (status /= nf90_noerr) call handle_err(status) 
    136125    status=nf90_put_att(ncid, varID(k), "long_name", trim(long_name(k))) 
    137     print*,'apres 7',trim(long_name(k)) 
    138126    if (status /= nf90_noerr) call handle_err(status) 
    139127    status=nf90_put_att(ncid, varID(k), "units", trim(units(k))) 
    140     print*,'apres 8', trim(units(k)) 
    141128    if (status /= nf90_noerr) call handle_err(status) 
    142129  enddo 
    143   print*,'apres boucle' 
    144130 
    145131! fin de la definition du fchier : 
     
    284270!940   format('%%%% ',a,'   time=',f8.0,' %%%%') 
    285271 
    286 print*, 'dans shortoutput avant netcdf ncshortout', ncshortout 
    287272 
    288273if (ncshortout.eq.1) then  ! ecriture netcdf 
     
    305290 
    306291  nbtimeout=nbtimeout+1 
    307   print*,'ecriture shortnc', nbtimeout 
     292   
    308293  status=nf90_put_var(ncid, timeVarID, time, start=(/nbtimeout/)) 
    309294  if (status /= nf90_noerr) call handle_err(status) 
Note: See TracChangeset for help on using the changeset viewer.