Ignore:
Timestamp:
Jul 22, 2024, 9:46:57 AM (4 months ago)
Author:
abarral
Message:

Revert cosp*/ from the trunk, as it's external code
Add missing bits from FCM2 source

File:
1 edited

Legend:

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

    r5087 r5095  
    7272    varOUT(1:dim1,1:dim2,1:dim3) = 0._wp
    7373    do j=1,dim2
    74        where(flag(:,j,:) == 1)
     74       where(flag(:,j,:) .eq. 1)
    7575          varOUT(:,j,:) = varIN2
    7676       endwhere
    77        where(flag(:,j,:) == 2)
     77       where(flag(:,j,:) .eq. 2)
    7878          varOUT(:,j,:) = varIN1
    7979       endwhere
     
    9696   
    9797    varOUT(1:dim1,1:dim2,1:dim3) = 0._wp
    98    where(flag(:,:,:) == 1)
     98   where(flag(:,:,:) .eq. 1)
    9999       varOUT(:,:,:) = varIN2
    100100    endwhere
    101     where(flag(:,:,:) == 2)
     101    where(flag(:,:,:) .eq. 2)
    102102       varOUT(:,:,:) = varIN1
    103103    endwhere
     
    295295
    296296    ! Which LIDAR frequency are we using?
    297     if (lidar_freq == 355) then
     297    if (lidar_freq .eq. 355) then
    298298       Cmol   = Cmol_355nm
    299299       rdiffm = rdiffm_355nm
    300300    endif
    301     if (lidar_freq == 532) then
     301    if (lidar_freq .eq. 532) then
    302302       Cmol   = Cmol_532nm
    303303       rdiffm = rdiffm_532nm
     
    336336   
    337337    ! LS and CONV Ice water coefficients
    338     if (ice_type == 0) then
     338    if (ice_type .eq. 0) then
    339339       polpart(INDX_LSICE,1:5) = polpartLSICE0
    340340       polpart(INDX_CVICE,1:5) = polpartCVICE0
    341341    endif
    342     if (ice_type == 1) then
     342    if (ice_type .eq. 1) then
    343343       polpart(INDX_LSICE,1:5) = polpartLSICE1
    344344       polpart(INDX_CVICE,1:5) = polpartCVICE1
     
    393393    ! Polynomials kp_lidar derived from Mie theory
    394394    do i = 1, npart
    395        where (rad_part(1:npoints,1:nlev,i) > 0.0)
     395       where (rad_part(1:npoints,1:nlev,i) .gt. 0.0)
    396396          kp_part(1:npoints,1:nlev,i) = &
    397397               polpart(i,1)*(rad_part(1:npoints,1:nlev,i)*1e6)**4 &
     
    426426       ! Alpha of particles in each subcolumn:
    427427       do i = 1, npart
    428           where (rad_part(1:npoints,1:nlev,i) > 0.0)
     428          where (rad_part(1:npoints,1:nlev,i) .gt. 0.0)
    429429             alpha_part(1:npoints,1:nlev,i) = 3._wp/4._wp * Qscat &
    430430                  * rhoair(1:npoints,1:nlev) * qpart(1:npoints,1:nlev,i) &
     
    440440          ! Optical thickness of each layer (particles)
    441441          tau_part(1:npoints,1:nlev,i) = tau_part(1:npoints,1:nlev,i) &
    442    * (zheight(1:npoints,1:nlev)-zheight(1:npoints,2:nlev+1) )
     442               & * (zheight(1:npoints,1:nlev)-zheight(1:npoints,2:nlev+1) )
    443443          ! Optical thickness from TOA to layer k (particles)
    444444          do k=zi,zf,zinc
Note: See TracChangeset for help on using the changeset viewer.