- Timestamp:
- Aug 2, 2024, 2:12:03 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/cospv2/cosp_optics.F90
r5099 r5158 71 71 72 72 varOUT(1:dim1,1:dim2,1:dim3) = 0._wp 73 doj=1,dim273 DO j=1,dim2 74 74 where(flag(:,j,:) .eq. 1) 75 75 varOUT(:,j,:) = varIN2 … … 135 135 136 136 137 doi=1,npoints137 DO i=1,npoints 138 138 where(cloudIce(i,:, :) <= 0.) 139 139 fracL(:, :) = 1._wp … … 170 170 w0(1:nPoints,1:nSubCols,1:nLevels) = 0._wp 171 171 172 doj =1,nPoints173 doi=1,nSubCols172 DO j =1,nPoints 173 DO i=1,nSubCols 174 174 water_g(1:nLevels) = get_g_nir( phaseIsLiquid, sizeLIQ(j,i,1:nLevels)) 175 175 water_w0(1:nLevels) = get_ssa_nir(phaseIsLiquid, sizeLIQ(j,i,1:nLevels)) … … 189 189 190 190 ! Compute the total optical thickness and the proportion due to liquid in each cell 191 doi=1,npoints191 DO i=1,npoints 192 192 where(tauLIQ(i,1:nSubCols,1:nLevels) + tauICE(i,1:nSubCols,1:nLevels) > 0.) 193 193 fracLIQ(i,1:nSubCols,1:nLevels) = tauLIQ(i,1:nSubCols,1:nLevels)/ & … … 358 358 ! Altitude at half pressure levels: 359 359 zheight(1:npoints,nlev+1) = 0._wp 360 dok=nlev,1,-1360 DO k=nlev,1,-1 361 361 zheight(1:npoints,k) = zheight(1:npoints,k+1) & 362 362 -(presf(1:npoints,k)-presf(1:npoints,k+1))/(rhoair(1:npoints,k)*grav) … … 392 392 ! ############################################################################## 393 393 ! Polynomials kp_lidar derived from Mie theory 394 doi = 1, npart394 DO i = 1, npart 395 395 where (rad_part(1:npoints,1:nlev,i) .gt. 0.0) 396 396 kp_part(1:npoints,1:nlev,i) = & … … 412 412 413 413 ! Loop over all subcolumns 414 doicol=1,ncolumns414 DO icol=1,ncolumns 415 415 ! ############################################################################## 416 416 ! Mixing ratio particles in each subcolum … … 425 425 ! ############################################################################## 426 426 ! Alpha of particles in each subcolumn: 427 doi = 1, npart427 DO i = 1, npart 428 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 & … … 437 437 ! Optical thicknes 438 438 tau_part(1:npoints,1:nlev,1:npart) = rdiffm * alpha_part(1:npoints,1:nlev,1:npart) 439 doi = 1, npart439 DO i = 1, npart 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 442 & * (zheight(1:npoints,1:nlev)-zheight(1:npoints,2:nlev+1) ) 443 443 ! Optical thickness from TOA to layer k (particles) 444 dok=zi,zf,zinc444 DO k=zi,zf,zinc 445 445 tau_part(1:npoints,k,i) = tau_part(1:npoints,k,i) + tau_part(1:npoints,k+zoffset,i) 446 446 enddo
Note: See TracChangeset
for help on using the changeset viewer.