Ignore:
Timestamp:
Jul 5, 2021, 4:04:28 PM (3 years ago)
Author:
aslmd
Message:

Generic GCM:

Adding k-coefficients mixing on the fly
Working with MordernTrac?

JVO + YJ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/optci.F90

    r2520 r2543  
    1515  use comcstfi_mod, only: g, r, mugaz
    1616  use callkeys_mod, only: kastprof,continuum,graybody
     17  use recombin_corrk_mod, only: corrk_recombin, gasi_recomb
    1718  implicit none
    1819
     
    247248              ! transfer on the tested simulations !
    248249
    249               tmpk = GASI(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG)
     250              IF (corrk_recombin) THEN ! added by JVO
     251                tmpk = GASI_RECOMB(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG) ! contains the mix of recombined species
     252              ELSE
     253                tmpk = GASI(MT(K):MT(K)+1,MP(K):MP(K)+1,1,NW,NG)
     254              ENDIF
    250255
    251256              KCOEF(1) = tmpk(1,1) ! KCOEF(1) = GASI(MT(K),MP(K),1,NW,NG)
     
    256261           else
    257262
    258               tmpkvar = GASI(MT(K):MT(K)+1,MP(K):MP(K)+1,NVAR(K):NVAR(K)+1,NW,NG)
     263              IF (corrk_recombin) THEN ! added by JVO
     264                tmpkvar = GASI_RECOMB(MT(K):MT(K)+1,MP(K):MP(K)+1,NVAR(K):NVAR(K)+1,NW,NG)
     265              ELSE
     266                tmpkvar = GASI(MT(K):MT(K)+1,MP(K):MP(K)+1,NVAR(K):NVAR(K)+1,NW,NG)
     267              ENDIF
    259268
    260269              KCOEF(1) = tmpkvar(1,1,1) + WRATIO(K) *  &
Note: See TracChangeset for help on using the changeset viewer.