Changeset 2904
- Timestamp:
- Feb 23, 2023, 6:32:38 PM (21 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/README
r2902 r2904 3906 3906 == 22/02/2023 == LL 3907 3907 PEM: First implementation of a dynamic ice table (vs. static ice table at equilibrium) following Schorgofer (2010,Icarus) 3908 3909 == 23/02/2023 == AB 3910 In aeroptical.F90, handle cases between : 3911 - "all opacities in the column are missing values" (in which case we set column-integrated tau=missval) 3912 and 3913 - "at least one opacity is not a missing value but is 0" (in which case we set tau=0) -
trunk/LMDZ.MARS/util/aeroptical.F90
r2830 r2904 426 426 ENDIF 427 427 428 do ilon=1,lonlen 429 do ilat=1,latlen 430 do it=1,timelen 428 do it=1,timelen 429 do ilon=1,lonlen 430 do ilat=1,latlen 431 431 432 do ialt=1,altlen 432 433 IF (reffval_ok(iaer).ne.0) THEN ! if the user gave a variable's name and not a value … … 439 440 ! out of the optpropfile boundaries 440 441 opa_aer(ilon,ilat,ialt,it)=missval(iaer) 441 write(aeroptlogfileID,*) "(mmr = ",mmr(ilon,ilat,ialt,it),"kg/kg)"442 write(aeroptlogfileID,*) "(mmr(", ilon, ",", ilat, ",", ialt, ",", it,") = ",mmr(ilon,ilat,ialt,it),"kg/kg)" 442 443 write(aeroptlogfileID,*)"" 443 444 … … 470 471 ! COMPUTATION OF THE COLUMN-INTEGRATED OPTICAL DEPTH [/] 471 472 if (tau_aer(ilon,ilat,it).eq.0) then 472 tau_aer(ilon,ilat,it)= missval(iaer) 473 ! Handle cases between "all opacities are missing values" (in which case we set tau=missval) 474 ! and "at least one opacity is not a missing value but is 0" (in which case we set tau=0) 475 if (ANY(opa_aer(ilon,ilat,:,it).ne.missval(iaer))) then 476 ! if at least one opacity in the column is not a missing value, i.e at least one opacity equals 0 477 tau_aer(ilon,ilat,it)= 0 478 else 479 tau_aer(ilon,ilat,it)= missval(iaer) 480 endif 473 481 endif 474 482 endif ! trim(compute_col).eq."yes" 475 483 476 enddo ! i t477 enddo ! il at478 enddo ! i lon484 enddo ! ilat 485 enddo ! ilon 486 enddo ! it 479 487 480 488 !==========================================================================
Note: See TracChangeset
for help on using the changeset viewer.