Changeset 142 for trunk/SOURCES


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

Debug output suppressed and bug correction in calving

Location:
trunk/SOURCES
Files:
7 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) 
  • trunk/SOURCES/bilan_flux_output_mod.f90

    r140 r142  
    8181 
    8282 
    83  
    84  
    8583! calcul de la moyenne des flux sur dtoutflux 
    86 if ((mod(abs(time),dtoutflux).lt.dtmin).and.(abs(dtsum-dtoutflux).lt.dtmin)) then 
     84!if ((mod(abs(time),dtoutflux).lt.dtmin).and.(abs(dtsum-dtoutflux).lt.dtmin)) then 
     85if (mod(abs(time),dtoutflux).lt.dtmin) then 
    8786  bm_flux(:,:)=bm_flux(:,:)/dtsum 
    8887  bmelt_flux(:,:)=bmelt_flux(:,:)/dtsum 
     
    9291 
    9392! sorties dans debug_3d: 
    94   debug_3d(:,:,87) = bm_flux(:,:)      ! acabf 
     93  debug_3d(:,:,106) = bm_flux(:,:)      ! acabf 
    9594  debug_3d(:,:,107) = bmelt_flux(:,:)   ! libmassbf 
    9695  debug_3d(:,:,108) = dhdt_flux(:,:)    ! dlithkdt 
     
    9998 
    10099! remise a 0 
     100  dtsum = 0. 
    101101  bm_flux(:,:)      = 0. 
    102102  bmelt_flux(:,:)   = 0. 
     
    105105  grline_flux(:,:)  = 0. 
    106106   
    107 else if (abs(dtsum-dtoutflux).lt.dtmin) then 
    108   print*,'pb sorties flux dtoutflux : time=', time 
    109   print*,'dtsum=',dtsum,' dtoutflux', dtoutflux 
    110 else if (mod(abs(time),dtoutflux).lt.dtmin) then 
    111   print*,'pb sorties flux dtsum : time=', time 
    112   print*,'dtsum=',dtsum,' dtoutflux', dtoutflux 
     107!~ else if (abs(dtsum-dtoutflux).lt.dtmin) then 
     108!~   print*,'pb sorties flux dtoutflux : time=', time 
     109!~   print*,'dtsum=',dtsum,' dtoutflux', dtoutflux 
     110!~ else if (mod(abs(time),dtoutflux).lt.dtmin) then 
     111!~   print*,'pb sorties flux dtsum : time=', time 
     112!~   print*,'dtsum=',dtsum,' dtoutflux', dtoutflux 
    113113endif 
    114114 
  • trunk/SOURCES/calving_frange.f90

    r129 r142  
    403403                     S(i,j)=H(i,j)*(1.-ro/row) + sealevel 
    404404                     B(i,j)=S(i,j) - H(i,j) 
     405          ! ATTENTION ne pas mettre ice=0 sinon degradation bilan d'eau (bm et bmelt non comptabilises dans ce cas) 
    405406                   endif   
    406407 
     
    419420       endwhere    
    420421       
    421        calv_dtt(:,:) = calv_dtt(:,:) + calv(:,:) ! somme du calving sur dtt    
    422        ! calv_dtt est remis à 0 dans bilan_eau (tous les dtt) 
     422       calv_dtt(:,:) = calv_dtt(:,:) + calv(:,:) ! somme du calving sur dtt   
     423       ! calv_dtt est remis a 0 dans steps_time_loop (tous les dtt) 
    423424    end subroutine calving 
    424425!------------------------------------------------------------------------------------------ 
  • trunk/SOURCES/flottab2-0.7.f90

    r129 r142  
    6868 integer ::  numtache 
    6969 integer ::  nb_pt 
     70 real    ::  petit_H=0.001 ! pour test ice sur zone flottante 
    7071contains 
    7172! ----------------------------------------------------------------------------------- 
     
    593594    where (flot(:,:)) 
    594595!cdc 1m       where (H(:,:).gt.max(Hmin,Hmin+BM(:,:)-Bmelt(:,:))) 
    595                          where (H(:,:).gt.0.) 
     596      where (H(:,:).gt.max(BM(:,:)-Bmelt(:,:)+petit_H,0.)*dt) 
     597!cdc                     where (H(:,:).gt.0.) 
    596598          ice(:,:)=1 
    597599       elsewhere  
  • trunk/SOURCES/main3D-0.4-40km.f90

    r128 r142  
    213213 
    214214 
    215  
    216   if (iter_beta.eq.0) then 
    217  
    218      if (itracebug.eq.1)  call tracebug(' Avant appel routine icethick3') 
    219      call icethick3 
    220      debug_3D(:,:,88) = S(:,:) 
    221      if (itracebug.eq.1)  call tracebug(' Apres appel routine icethick3') 
    222   end if 
     215!cdc supprime pour initialisation propre 
     216!~   if (iter_beta.eq.0) then 
     217 
     218!~      if (itracebug.eq.1)  call tracebug(' Avant appel routine icethick3') 
     219!~      call icethick3 
     220!~      debug_3D(:,:,88) = S(:,:) 
     221!~      if (itracebug.eq.1)  call tracebug(' Apres appel routine icethick3') 
     222!~   end if 
    223223 
    224224 
  • trunk/SOURCES/steps_time_loop.f90

    r136 r142  
    5757 
    5858     call icethick3 
    59  
    6059     call flottab 
    61  
    6260     call calving 
    63  
    6461     call ablation_bord 
    65  
    6662     call bilan_eau 
    6763     call bilan_flux_output 
    68      if (isynchro.eq.1) then 
    69          call shortoutput 
    70          diff_H = 0. 
    71          Bm_dtt(:,:) = 0. 
    72          bmelt_dtt(:,:) = 0. 
    73          calv_dtt(:,:)=0. 
    74          ablbord_dtt(:,:)=0. 
    75          diff_H_2D(:,:)=0. 
    76          grline_dtt(:,:)=0. 
    77       endif 
     64 
     65!~      if (isynchro.eq.1) then 
     66!~          call shortoutput 
     67!~          diff_H = 0. 
     68!~          Bm_dtt(:,:) = 0. 
     69!~          bmelt_dtt(:,:) = 0. 
     70!~          calv_dtt(:,:)=0. 
     71!~          ablbord_dtt(:,:)=0. 
     72!~          diff_H_2D(:,:)=0. 
     73!~          grline_dtt(:,:)=0. 
     74!~       endif 
    7875      
    7976     call flottab 
     
    161158  call testsort_time_ncdf(time) 
    162159  if (iglob_ncdf .EQ. 1) call sortie_ncdf_cat 
    163  
     160  if (isynchro.eq.1) then 
     161    call shortoutput 
     162    diff_H = 0. 
     163    Bm_dtt(:,:) = 0. 
     164    bmelt_dtt(:,:) = 0. 
     165    calv_dtt(:,:)=0. 
     166    ablbord_dtt(:,:)=0. 
     167    diff_H_2D(:,:)=0. 
     168    grline_dtt(:,:)=0. 
     169  endif 
    164170 
    165171  !   sortie compteur tous les dtcpt ans  
  • trunk/SOURCES/util_recovery.f90

    r141 r142  
    101101         (TIME .EQ. TEND).OR.(ipredef.eq.1) )    THEN 
    102102 
    103        print*,'sortie cptr time ipredef:',time, ipredef 
    104103       if (ipredef .EQ. 1) then 
    105104         ! pour changer de signe entre le passe et le futur 
     
    109108          signe= '-' 
    110109         endif 
    111  
    112110 
    113111        if (int(mod(abs(tab_time(indice)),1000.)).eq.0) then 
     
    129127        endif 
    130128        filin=runname//signe//unite//trim(ADJUSTL(ntime)) 
    131         print*,'sortie cptr filin=',filin 
    132129 
    133130      else !ipredef==0  
Note: See TracChangeset for help on using the changeset viewer.