Ignore:
Timestamp:
Aug 2, 2024, 2:12:03 PM (3 months ago)
Author:
abarral
Message:

Add missing klon on strataer_emiss_mod.F90
Correct various missing explicit declarations
Replace tabs by spaces (tabs are not part of the fortran charset)
Continue cleaning modules
Removed unused arguments and variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/cospv2/cosp_stats.F90

    r5099 r5158  
    8181   r = 0._wp
    8282
    83    do i=1,Npoints
     83   DO i=1,Npoints
    8484     ! Calculate tops and bottoms of new and old grids
    8585     oldgrid_bot = zhalf(i,:)
     
    8888     l = 0 ! Index of level in the old grid
    8989     ! Loop over levels in the new grid
    90      do k = 1,Nglevels
     90     DO k = 1,Nglevels
    9191       Nw = 0 ! Number of weigths
    9292       wt = 0._wp ! Sum of weights
    9393       ! Loop over levels in the old grid and accumulate total for weighted average
    94        do
     94       DO
    9595         l = l + 1
    9696         w = 0.0 ! Initialise weight to 0
     
    119119             Nw = Nw + 1
    120120             wt = wt + w
    121              do j=1,Ncolumns
     121             DO j=1,Ncolumns
    122122               if (lunits) then
    123123                 if (y(i,j,l) /= R_UNDEF) then
     
    138138       ! Calculate average in new grid
    139139       if (Nw > 0) then
    140          do j=1,Ncolumns
     140         DO j=1,Ncolumns
    141141           r(i,j,k) = r(i,j,k)/wt
    142142         enddo
     
    146146
    147147   ! Set points under surface to R_UNDEF, and change to dBZ if necessary
    148    do k=1,Nglevels
    149      do j=1,Ncolumns
    150        do i=1,Npoints
     148   DO k=1,Nglevels
     149     DO j=1,Ncolumns
     150       DO i=1,Npoints
    151151         if (newgrid_top(k) > zhalf(i,1)) then ! Level above model bottom level
    152152           if (lunits) then
     
    202202    radar_tcc = 0._wp
    203203    radar_tcc2 = 0._wp
    204     do pr=1,Npoints
    205        do i=1,Ncolumns
     204    DO pr=1,Npoints
     205       DO i=1,Ncolumns
    206206          flag_sat = 0
    207207          flag_cld = 0
     
    210210          ! look for j_1km from bottom to top
    211211          j = 1
    212           do while (Ze_tot(pr,i,j) .eq. R_GROUND)
     212          DO while (Ze_tot(pr,i,j) .eq. R_GROUND)
    213213             j = j+1
    214214          enddo
    215215          j_1km = j+1  !this is the vertical index of 1km above surface 
    216216         
    217           do j=1,Nlevels
     217          DO j=1,Nlevels
    218218             sc_ratio = beta_tot(pr,i,j)/beta_mol(pr,j)
    219219             if ((sc_ratio .le. s_att) .and. (flag_sat .eq. 0)) flag_sat = j
     
    266266    integer :: ij
    267267   
    268     do ij=2,Nbins+1 
     268    DO ij=2,Nbins+1
    269269       hist1D(ij-1) = count(var .ge. bins(ij-1) .and. var .lt. bins(ij))
    270270       if (count(var .eq. R_GROUND) .ge. 1) hist1D(ij-1)=R_UNDEF
     
    298298    integer :: ij,ik
    299299   
    300     do ij=2,nbin1+1
    301        do ik=2,nbin2+1
     300    DO ij=2,nbin1+1
     301       DO ik=2,nbin2+1
    302302          jointHist(ij-1,ik-1)=count(var1 .ge. bin1(ij-1) .and. var1 .lt. bin1(ij) .and. &
    303303               var2 .ge. bin2(ik-1) .and. var2 .lt. bin2(ik))       
Note: See TracChangeset for help on using the changeset viewer.