Ignore:
Timestamp:
Aug 2, 2024, 2:12:03 PM (7 weeks 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/cosp2/cosp_optics.F90

    r5095 r5158  
    6969   
    7070    varOUT(1:dim1,1:dim2,1:dim3) = 0._wp
    71     do j=1,dim2
     71    DO j=1,dim2
    7272       where(flag(:,j,:) .eq. 1)
    7373          varOUT(:,j,:) = varIN2
     
    133133   
    134134   
    135     do i=1,npoints
     135    DO i=1,npoints
    136136       where(cloudIce(i,:, :) <= 0.)
    137137          fracL(:, :) = 1._wp
     
    168168    w0(1:nPoints,1:nSubCols,1:nLevels) = 0._wp
    169169   
    170     do j =1,nPoints
    171        do i=1,nSubCols
     170    DO j =1,nPoints
     171       DO i=1,nSubCols
    172172          water_g(1:nLevels)  = get_g_nir(  phaseIsLiquid, sizeLIQ(j,i,1:nLevels))
    173173          water_w0(1:nLevels) = get_ssa_nir(phaseIsLiquid, sizeLIQ(j,i,1:nLevels))
     
    187187   
    188188    ! Compute the total optical thickness and the proportion due to liquid in each cell
    189     do i=1,npoints
     189    DO i=1,npoints
    190190       where(tauLIQ(i,1:nSubCols,1:nLevels) + tauICE(i,1:nSubCols,1:nLevels) > 0.)
    191191          fracLIQ(i,1:nSubCols,1:nLevels) = tauLIQ(i,1:nSubCols,1:nLevels)/ &
     
    317317    ! Altitude at half pressure levels:
    318318    zheight(1:npoints,nlev+1) = 0._wp
    319     do k=nlev,1,-1
     319    DO k=nlev,1,-1
    320320       zheight(1:npoints,k) = zheight(1:npoints,k+1) &
    321321            -(presf(1:npoints,k)-presf(1:npoints,k+1))/(rhoair(1:npoints,k)*grav)
     
    349349    ! ##############################################################################
    350350    ! Polynomials kp_lidar derived from Mie theory
    351     do i = 1, npart
     351    DO i = 1, npart
    352352       where (rad_part(1:npoints,1:nlev,i) .gt. 0.0)
    353353          kp_part(1:npoints,1:nlev,i) = &
     
    363363   
    364364    ! Loop over all subcolumns
    365     do icol=1,ncolumns
     365    DO icol=1,ncolumns
    366366       ! ##############################################################################
    367367       ! Mixing ratio particles in each subcolum
     
    376376       ! ##############################################################################
    377377       ! Alpha of particles in each subcolumn:
    378        do i = 1, npart
     378       DO i = 1, npart
    379379          where (rad_part(1:npoints,1:nlev,i) .gt. 0.0)
    380380             alpha_part(1:npoints,icol,1:nlev,i) = 3._wp/4._wp * Qscat &
     
    388388       ! Optical thicknes
    389389       tau_part(1:npoints,icol,1:nlev,1:npart) = rdiffm * alpha_part(1:npoints,icol,1:nlev,1:npart)
    390        do i = 1, npart
     390       DO i = 1, npart
    391391          ! Optical thickness of each layer (particles)
    392392          tau_part(1:npoints,icol,1:nlev,i) = tau_part(1:npoints,icol,1:nlev,i) &
    393393               & * (zheight(1:npoints,1:nlev)-zheight(1:npoints,2:nlev+1) )
    394394          ! Optical thickness from TOA to layer k (particles)
    395           do k=2,nlev
     395          DO k=2,nlev
    396396             tau_part(1:npoints,icol,k,i) = tau_part(1:npoints,icol,k,i) + tau_part(1:npoints,icol,k-1,i)
    397397          enddo
     
    434434    tautot_S_liq(1:npoints,1:ncolumns) = 0._wp
    435435    tautot_S_ice(1:npoints,1:ncolumns) = 0._wp
    436     do icol=1,ncolumns   
     436    DO icol=1,ncolumns
    437437       tautot_S_liq(1:npoints,icol) = tautot_S_liq(1:npoints,icol)+tau_part(1:npoints,icol,nlev,1)+tau_part(1:npoints,icol,nlev,3)
    438438       tautot_S_ice(1:npoints,icol) = tautot_S_ice(1:npoints,icol)+tau_part(1:npoints,icol,nlev,2)+tau_part(1:npoints,icol,nlev,4)
Note: See TracChangeset for help on using the changeset viewer.