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_optics.F90

    r5099 r5158  
    7171   
    7272    varOUT(1:dim1,1:dim2,1:dim3) = 0._wp
    73     do j=1,dim2
     73    DO j=1,dim2
    7474       where(flag(:,j,:) .eq. 1)
    7575          varOUT(:,j,:) = varIN2
     
    135135   
    136136   
    137     do i=1,npoints
     137    DO i=1,npoints
    138138       where(cloudIce(i,:, :) <= 0.)
    139139          fracL(:, :) = 1._wp
     
    170170    w0(1:nPoints,1:nSubCols,1:nLevels) = 0._wp
    171171   
    172     do j =1,nPoints
    173        do i=1,nSubCols
     172    DO j =1,nPoints
     173       DO i=1,nSubCols
    174174          water_g(1:nLevels)  = get_g_nir(  phaseIsLiquid, sizeLIQ(j,i,1:nLevels))
    175175          water_w0(1:nLevels) = get_ssa_nir(phaseIsLiquid, sizeLIQ(j,i,1:nLevels))
     
    189189   
    190190    ! Compute the total optical thickness and the proportion due to liquid in each cell
    191     do i=1,npoints
     191    DO i=1,npoints
    192192       where(tauLIQ(i,1:nSubCols,1:nLevels) + tauICE(i,1:nSubCols,1:nLevels) > 0.)
    193193          fracLIQ(i,1:nSubCols,1:nLevels) = tauLIQ(i,1:nSubCols,1:nLevels)/ &
     
    358358    ! Altitude at half pressure levels:
    359359    zheight(1:npoints,nlev+1) = 0._wp
    360     do k=nlev,1,-1
     360    DO k=nlev,1,-1
    361361       zheight(1:npoints,k) = zheight(1:npoints,k+1) &
    362362            -(presf(1:npoints,k)-presf(1:npoints,k+1))/(rhoair(1:npoints,k)*grav)
     
    392392    ! ##############################################################################
    393393    ! Polynomials kp_lidar derived from Mie theory
    394     do i = 1, npart
     394    DO i = 1, npart
    395395       where (rad_part(1:npoints,1:nlev,i) .gt. 0.0)
    396396          kp_part(1:npoints,1:nlev,i) = &
     
    412412
    413413    ! Loop over all subcolumns
    414     do icol=1,ncolumns
     414    DO icol=1,ncolumns
    415415       ! ##############################################################################
    416416       ! Mixing ratio particles in each subcolum
     
    425425       ! ##############################################################################
    426426       ! Alpha of particles in each subcolumn:
    427        do i = 1, npart
     427       DO i = 1, npart
    428428          where (rad_part(1:npoints,1:nlev,i) .gt. 0.0)
    429429             alpha_part(1:npoints,1:nlev,i) = 3._wp/4._wp * Qscat &
     
    437437       ! Optical thicknes
    438438       tau_part(1:npoints,1:nlev,1:npart) = rdiffm * alpha_part(1:npoints,1:nlev,1:npart)
    439        do i = 1, npart
     439       DO i = 1, npart
    440440          ! Optical thickness of each layer (particles)
    441441          tau_part(1:npoints,1:nlev,i) = tau_part(1:npoints,1:nlev,i) &
    442442               & * (zheight(1:npoints,1:nlev)-zheight(1:npoints,2:nlev+1) )
    443443          ! Optical thickness from TOA to layer k (particles)
    444           do k=zi,zf,zinc
     444          DO k=zi,zf,zinc
    445445             tau_part(1:npoints,k,i) = tau_part(1:npoints,k,i) + tau_part(1:npoints,k+zoffset,i)
    446446          enddo
Note: See TracChangeset for help on using the changeset viewer.