Changeset 3803


Ignore:
Timestamp:
Jun 10, 2025, 2:28:53 PM (4 days ago)
Author:
slebonnois
Message:

SL, VENUS PCM : correction following Martin's correction, optcv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.VENUS/libf/phyvenus/optcv.F90

    r3794 r3803  
    7373  real*8 DRAYAER
    7474  double precision wn_cont, p_cont, p_air, T_cont, dtemp, dtempc
     75  double precision p_cross
    7576
    7677  ! variable species mixing ratio variables
     
    174175                 p_cont  = dble(PMID(k)*scalep*gfrac(igas)*(1.-QVAR(k)))
    175176              endif
    176 
    177               dtemp=0.0
     177 
     178              do jgas=1,ngasmx
     179                if(gfrac(jgas).eq.-1)then ! variable
     180                  p_cross  = dble(PMID(k)*scalep*QVAR(k)) ! qvar = mol/mol
     181                else
     182                  p_cross  = dble(PMID(k)*scalep*gfrac(jgas)*(1.-QVAR(k)))
     183                endif
     184               
     185                dtemp=0.0
    178186
    179187! For Venus: only H2O and CO2
    180               do jgas=1,ngasmx
    181188                if ( ((igas .eq. igas_H2O) .and. (jgas .eq. igas_H2O)) .or.  &
    182                      ((igas .eq. igas_H2O) .and. (jgas .eq. igas_CO2)) .or.   &
     189                     ((igas .eq. igas_H2O) .and. (jgas .eq. igas_CO2)) .or.  &
    183190                     ((igas .eq. igas_CO2) .and. (jgas .eq. igas_CO2)) ) then
    184                   call interpolate_continuum('',igas,jgas,'VI',nw,T_cont,p_cont,p_cont,dtemp,.false.)
     191                     
     192                  call interpolate_continuum('',igas,jgas,'VI',nw,T_cont,p_cont,p_cross,dtemp,.false.)
     193
    185194                endif
    186               enddo
    187 
    188               DCONT = DCONT + dtemp
    189 
    190            enddo
     195               
     196                DCONT = DCONT + dtemp
     197 
     198              enddo ! jgas=1,ngasmx
     199           enddo ! igas=1,ngasmx
    191200
    192201           DCONT = DCONT*dz(k)
Note: See TracChangeset for help on using the changeset viewer.