Ignore:
Timestamp:
Jan 31, 2022, 9:20:17 PM (3 years ago)
Author:
dcugnet
Message:
  • Fix for unadvected tracers (iadv==0)
  • The key %isH2Ofamily, from the derived type "trac_type", is replaced with the more general

key %isInPhysics, which is TRUE for tracers both in "qx" and "tr_seri".

Currently, FALSE for tracers descending on H2O (isotopes and tagging tracers included). Could be set to FALSE
for interactive CO2 (type_trac=='inco') or ice supersaturated cloud content (tranfered to "rneb_seri")

Location:
LMDZ6/trunk/libf/phylmdiso
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/phyetat0.F90

    r4056 r4071  
    471471     it = 0
    472472     DO iq = 1, nqtot
    473         IF(.NOT.tracers(iq)%isAdvected .OR. tracers(iq)%isH2Ofamily) CYCLE
     473        IF(.NOT.(tracers(iq)%isAdvected .AND. tracers(iq)%isInPhysics)) CYCLE
    474474        it = it+1
    475475        found=phyetat0_get(1,trs(:,it),"trs_"//TRIM(tracers(iq)%name), &
  • LMDZ6/trunk/libf/phylmdiso/phyredem.F90

    r4056 r4071  
    350350       it = 0
    351351       DO iq = 1, nqtot
    352           IF(.NOT.tracers(iq)%isAdvected .OR. tracers(iq)%isH2Ofamily) CYCLE
     352          IF(.NOT.(tracers(iq)%isAdvected .AND. tracers(iq)%isInPhysics)) CYCLE
    353353          it = it+1
    354354          CALL put_field(pass,"trs_"//tracers(iq)%name, "", trs(:, it))
  • LMDZ6/trunk/libf/phylmdiso/phys_output_mod.F90

    r4056 r4071  
    504504          itr = 0
    505505          DO iq = 1, nqtot
    506             IF(.NOT.tracers(iq)%isAdvected .OR. tracers(iq)%isH2Ofamily) CYCLE
     506            IF(.NOT.(tracers(iq)%isAdvected .AND. tracers(iq)%isInPhysics)) CYCLE
    507507            itr = itr + 1
    508508            dn = 'd'//TRIM(tracers(iq)%name)//'_'
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r4065 r4071  
    24742474       itr = 0
    24752475       DO iq = 1, nqtot
    2476          IF(tracers(iq)%isH2Ofamily) CYCLE
     2476         IF(.NOT.tracers(iq)%isInPhysics) CYCLE
    24772477         itr = itr+1
    24782478!#ifdef ISOVERIF
     
    24982498       itr = 0
    24992499       do iq = 1, nqtot
    2500          IF(tracers(iq)%isH2Ofamily) CYCLE
     2500         IF(.NOT.tracers(iq)%isInPhysics) CYCLE
    25012501         itr = itr+1
    25022502         tr_ancien(:,:,itr)=tr_seri(:,:,itr)       
     
    65316531    itr = 0
    65326532    DO iq = 1, nqtot
    6533        IF(tracers(iq)%isH2Ofamily) CYCLE
     6533       IF(.NOT.tracers(iq)%isInPhysics) CYCLE
    65346534       itr = itr+1
    65356535       DO  k = 1, klev
Note: See TracChangeset for help on using the changeset viewer.