Changeset 612


Ignore:
Timestamp:
Mar 25, 2005, 4:04:06 PM (19 years ago)
Author:
Laurent Fairhead
Message:

Probleme sur les valeurs de w500 qui peuvent etre hors de l'intervalle
defini pour la creation des bins
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/trunk/Class_Reg/geo2reg.F90

    r611 r612  
    4545  real, allocatable, dimension(:)   :: xpdfmean
    4646
    47   integer nb_bin
     47  integer nb_bin, nbr_inf, nbr_sup
    4848  real min_bin, max_bin, step_bin, w_mult, x_mult
    4949  real xpdftot(mmax)
     
    467467! initialisations:
    468468
    469 
    470469  allocate(xpdfmean(nb_bin))
    471470  allocate(xpdf(nb_bin, itime))
     
    474473  allocate(w_binw(nb_bin, itime))
    475474  allocate(x_binw(nb_bin, itime))
    476 
    477    
    478    
    479 
    480475
    481476!-- temporal loop:
     
    538533      enddo
    539534    enddo
     535    nbr_inf = 0; nbr_sup = 0
    540536! tropical belt:
    541537    do j = 1, jm
     
    549545            x1 = x(i,j)*x_mult
    550546! bin w500:
    551             ir = INT((w1-min_bin)/step_bin) + 1
     547            if (w1 < min_bin) then
     548              ir = 1
     549              nbr_inf = nbr_inf + 1
     550            else if (w1 > max_bin) then
     551              ir = nb_bin
     552              nbr_sup = nbr_sup + 1
     553            else
     554              ir = INT((w1-min_bin)/step_bin) + 1
     555            endif
    552556! monthly PDF :
    553557            xpdfmeantot = xpdfmeantot + surf(i,j)
     
    565569      endif ! lat
    566570    enddo ! j
     571    write(lunout,*)'nbre de points ou w500 < ',min_bin,' = ', nbr_inf
     572    write(lunout,*)'nbre de points ou w500 > ',max_bin,' = ', nbr_sup
    567573  enddo ! m
    568574
     
    626632    stop
    627633  endif
     634  deallocate(var_dim)
    628635 
    629636 
Note: See TracChangeset for help on using the changeset viewer.