- Timestamp:
- Aug 2, 2024, 2:12:03 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/cosp2/cosp_optics.F90
r5095 r5158 69 69 70 70 varOUT(1:dim1,1:dim2,1:dim3) = 0._wp 71 doj=1,dim271 DO j=1,dim2 72 72 where(flag(:,j,:) .eq. 1) 73 73 varOUT(:,j,:) = varIN2 … … 133 133 134 134 135 doi=1,npoints135 DO i=1,npoints 136 136 where(cloudIce(i,:, :) <= 0.) 137 137 fracL(:, :) = 1._wp … … 168 168 w0(1:nPoints,1:nSubCols,1:nLevels) = 0._wp 169 169 170 doj =1,nPoints171 doi=1,nSubCols170 DO j =1,nPoints 171 DO i=1,nSubCols 172 172 water_g(1:nLevels) = get_g_nir( phaseIsLiquid, sizeLIQ(j,i,1:nLevels)) 173 173 water_w0(1:nLevels) = get_ssa_nir(phaseIsLiquid, sizeLIQ(j,i,1:nLevels)) … … 187 187 188 188 ! Compute the total optical thickness and the proportion due to liquid in each cell 189 doi=1,npoints189 DO i=1,npoints 190 190 where(tauLIQ(i,1:nSubCols,1:nLevels) + tauICE(i,1:nSubCols,1:nLevels) > 0.) 191 191 fracLIQ(i,1:nSubCols,1:nLevels) = tauLIQ(i,1:nSubCols,1:nLevels)/ & … … 317 317 ! Altitude at half pressure levels: 318 318 zheight(1:npoints,nlev+1) = 0._wp 319 dok=nlev,1,-1319 DO k=nlev,1,-1 320 320 zheight(1:npoints,k) = zheight(1:npoints,k+1) & 321 321 -(presf(1:npoints,k)-presf(1:npoints,k+1))/(rhoair(1:npoints,k)*grav) … … 349 349 ! ############################################################################## 350 350 ! Polynomials kp_lidar derived from Mie theory 351 doi = 1, npart351 DO i = 1, npart 352 352 where (rad_part(1:npoints,1:nlev,i) .gt. 0.0) 353 353 kp_part(1:npoints,1:nlev,i) = & … … 363 363 364 364 ! Loop over all subcolumns 365 doicol=1,ncolumns365 DO icol=1,ncolumns 366 366 ! ############################################################################## 367 367 ! Mixing ratio particles in each subcolum … … 376 376 ! ############################################################################## 377 377 ! Alpha of particles in each subcolumn: 378 doi = 1, npart378 DO i = 1, npart 379 379 where (rad_part(1:npoints,1:nlev,i) .gt. 0.0) 380 380 alpha_part(1:npoints,icol,1:nlev,i) = 3._wp/4._wp * Qscat & … … 388 388 ! Optical thicknes 389 389 tau_part(1:npoints,icol,1:nlev,1:npart) = rdiffm * alpha_part(1:npoints,icol,1:nlev,1:npart) 390 doi = 1, npart390 DO i = 1, npart 391 391 ! Optical thickness of each layer (particles) 392 392 tau_part(1:npoints,icol,1:nlev,i) = tau_part(1:npoints,icol,1:nlev,i) & 393 393 & * (zheight(1:npoints,1:nlev)-zheight(1:npoints,2:nlev+1) ) 394 394 ! Optical thickness from TOA to layer k (particles) 395 dok=2,nlev395 DO k=2,nlev 396 396 tau_part(1:npoints,icol,k,i) = tau_part(1:npoints,icol,k,i) + tau_part(1:npoints,icol,k-1,i) 397 397 enddo … … 434 434 tautot_S_liq(1:npoints,1:ncolumns) = 0._wp 435 435 tautot_S_ice(1:npoints,1:ncolumns) = 0._wp 436 do icol=1,ncolumns436 DO icol=1,ncolumns 437 437 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) 438 438 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.