- Timestamp:
- Jul 22, 2024, 9:46:57 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/cospv2/cosp_optics.F90
r5087 r5095 72 72 varOUT(1:dim1,1:dim2,1:dim3) = 0._wp 73 73 do j=1,dim2 74 where(flag(:,j,:) ==1)74 where(flag(:,j,:) .eq. 1) 75 75 varOUT(:,j,:) = varIN2 76 76 endwhere 77 where(flag(:,j,:) ==2)77 where(flag(:,j,:) .eq. 2) 78 78 varOUT(:,j,:) = varIN1 79 79 endwhere … … 96 96 97 97 varOUT(1:dim1,1:dim2,1:dim3) = 0._wp 98 where(flag(:,:,:) ==1)98 where(flag(:,:,:) .eq. 1) 99 99 varOUT(:,:,:) = varIN2 100 100 endwhere 101 where(flag(:,:,:) ==2)101 where(flag(:,:,:) .eq. 2) 102 102 varOUT(:,:,:) = varIN1 103 103 endwhere … … 295 295 296 296 ! Which LIDAR frequency are we using? 297 if (lidar_freq ==355) then297 if (lidar_freq .eq. 355) then 298 298 Cmol = Cmol_355nm 299 299 rdiffm = rdiffm_355nm 300 300 endif 301 if (lidar_freq ==532) then301 if (lidar_freq .eq. 532) then 302 302 Cmol = Cmol_532nm 303 303 rdiffm = rdiffm_532nm … … 336 336 337 337 ! LS and CONV Ice water coefficients 338 if (ice_type ==0) then338 if (ice_type .eq. 0) then 339 339 polpart(INDX_LSICE,1:5) = polpartLSICE0 340 340 polpart(INDX_CVICE,1:5) = polpartCVICE0 341 341 endif 342 if (ice_type ==1) then342 if (ice_type .eq. 1) then 343 343 polpart(INDX_LSICE,1:5) = polpartLSICE1 344 344 polpart(INDX_CVICE,1:5) = polpartCVICE1 … … 393 393 ! Polynomials kp_lidar derived from Mie theory 394 394 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) 396 396 kp_part(1:npoints,1:nlev,i) = & 397 397 polpart(i,1)*(rad_part(1:npoints,1:nlev,i)*1e6)**4 & … … 426 426 ! Alpha of particles in each subcolumn: 427 427 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) 429 429 alpha_part(1:npoints,1:nlev,i) = 3._wp/4._wp * Qscat & 430 430 * rhoair(1:npoints,1:nlev) * qpart(1:npoints,1:nlev,i) & … … 440 440 ! Optical thickness of each layer (particles) 441 441 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) ) 443 443 ! Optical thickness from TOA to layer k (particles) 444 444 do k=zi,zf,zinc
Note: See TracChangeset
for help on using the changeset viewer.