Changeset 2904


Ignore:
Timestamp:
Feb 23, 2023, 6:32:38 PM (21 months ago)
Author:
abierjon
Message:

Mars GCM:
In aeroptical.F90, handle cases between :

  • "all opacities in the column are missing values" (in which case we set column-integrated tau=missval)

and

  • "at least one opacity is not a missing value but is 0" (in which case we set tau=0)

AB

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2902 r2904  
    39063906== 22/02/2023 == LL
    39073907PEM: First implementation of a dynamic ice table (vs. static ice table at equilibrium) following Schorgofer (2010,Icarus)
     3908
     3909== 23/02/2023 == AB
     3910In aeroptical.F90, handle cases between :
     3911- "all opacities in the column are missing values" (in which case we set column-integrated tau=missval)
     3912and
     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  
    426426    ENDIF
    427427
    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     
    431432       do ialt=1,altlen
    432433         IF (reffval_ok(iaer).ne.0) THEN ! if the user gave a variable's name and not a value
     
    439440           ! out of the optpropfile boundaries
    440441           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)"
    442443           write(aeroptlogfileID,*)""
    443444           
     
    470471         ! COMPUTATION OF THE COLUMN-INTEGRATED OPTICAL DEPTH [/]
    471472         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
    473481         endif
    474482       endif ! trim(compute_col).eq."yes"
    475483       
    476       enddo ! it
    477      enddo ! ilat
    478     enddo ! ilon
     484      enddo ! ilat
     485     enddo ! ilon
     486    enddo ! it
    479487
    480488!==========================================================================
Note: See TracChangeset for help on using the changeset viewer.