Ignore:
Timestamp:
Jan 25, 2019, 7:51:34 PM (6 years ago)
Author:
oboucher
Message:

Various additions for the interactive CO2 cycle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/phytrac_mod.F90

    r3418 r3450  
    405405       !Config Key  = convscav
    406406       !Config Desc = Convective scavenging switch: 0=off, 1=on.
    407        !Config Def  = .false.
     407       !Config Def  = .FALSE.
    408408       !Config Help =
    409409       !
    410410!$OMP MASTER
    411        convscav_omp=.false.
     411       convscav_omp=.FALSE.
    412412       call getin('convscav', convscav_omp)
    413413       iflag_vdf_trac_omp=1
     
    479479       CASE('co2i')
    480480          source(:,:)=0.
     481          lessivage  = .FALSE.
     482          aerosol(:) = .FALSE.
     483          pbl_flg(:) = 1
     484          iflag_the_trac= 1
     485          iflag_vdf_trac= 1
     486          iflag_con_trac= 1
    481487#ifdef CPP_StratAer
    482488       CASE('coag')
     
    506512             CASE('lmdz')
    507513                IF (convscav.and.aerosol(it)) THEN
    508                    flag_cvltr(it)=.true.
     514                   flag_cvltr(it)=.TRUE.
    509515                   ccntrAA(it) =ccntrAA_in    !--a modifier par JYG a lire depuis fichier
    510516                   ccntrENV(it)=ccntrENV_in
    511517                   coefcoli(it)=coefcoli_in
    512518                ELSE
    513                    flag_cvltr(it)=.false.
     519                   flag_cvltr(it)=.FALSE.
    514520                ENDIF
    515521
    516522             CASE('repr')
    517                  flag_cvltr(it)=.false.
     523                 flag_cvltr(it)=.FALSE.
    518524
    519525             CASE('inca')
    520526!                IF ((it.EQ.id_Rn222) .OR. ((it.GE.id_SO2) .AND. (it.LE.id_NH3)) ) THEN
    521527!                   !--gas-phase species
    522 !                   flag_cvltr(it)=.false.
     528!                   flag_cvltr(it)=.FALSE.
    523529!
    524530!                ELSEIF ( (it.GE.id_CIDUSTM) .AND. (it.LE.id_AIN) ) THEN
    525531!                   !--insoluble aerosol species
    526 !                   flag_cvltr(it)=.true.
     532!                   flag_cvltr(it)=.TRUE.
    527533!                   ccntrAA(it)=0.7
    528534!                   ccntrENV(it)=0.7
     
    530536!                ELSEIF ( (it.EQ.id_Pb210) .OR. ((it.GE.id_CSSSM) .AND. (it.LE.id_SSN))) THEN
    531537!                   !--soluble aerosol species
    532 !                   flag_cvltr(it)=.true.
     538!                   flag_cvltr(it)=.TRUE.
    533539!                   ccntrAA(it)=0.9
    534540!                   ccntrENV(it)=0.9
     
    540546                !--test OB
    541547                !--for now we do not scavenge in cvltr
    542                 flag_cvltr(it)=.false.
     548                flag_cvltr(it)=.FALSE.
    543549
    544550             CASE('co2i')
    545551                !--co2 tracers are not scavenged
    546                 flag_cvltr(it)=.false.
     552                flag_cvltr(it)=.FALSE.
    547553
    548554#ifdef CPP_StratAer
    549555             CASE('coag')
    550556                IF (convscav.and.aerosol(it)) THEN
    551                    flag_cvltr(it)=.true.
     557                   flag_cvltr(it)=.TRUE.
    552558                   ccntrAA(it) =ccntrAA_in   
    553559                   ccntrENV(it)=ccntrENV_in
    554560                   coefcoli(it)=coefcoli_in
    555561                ELSE
    556                    flag_cvltr(it)=.false.
     562                   flag_cvltr(it)=.FALSE.
    557563                ENDIF
    558564#endif
     
    562568          !
    563569       ELSE ! iflag_con .ne. 3
    564           flag_cvltr(:) = .false.
     570          flag_cvltr(:) = .FALSE.
    565571       ENDIF
    566572       !
     
    593599       ENDIF
    594600       !
    595     END IF ! of IF (debutphy)
     601    ENDIF ! of IF (debutphy)
    596602    !############################################ END INITIALIZATION #######
    597603
     
    637643       !   -- CO2 interactif --
    638644       !   -- source is updated with FF and BB emissions
    639        !   -- OB => PC need to add net flux from ocean and orchidee
     645       !   -- and net fluxes from ocean and orchidee
    640646       !   -- sign convention : positive into the atmosphere
     647
    641648       CALL tracco2i(pdtphys, debutphy, &
    642649            xlat, xlon, pphis, pphi, &
     
    754761#endif
    755762
    756     END IF ! convection
     763    ENDIF ! convection
    757764
    758765    !======================================================================
     
    792799       END DO ! it
    793800
    794     END IF ! Thermiques
     801    ENDIF ! Thermiques
    795802
    796803    !======================================================================
     
    878885       CALL abort_physic('iflag_vdf_trac', 'cas non prevu',1)
    879886       !
    880     END IF ! couche limite
     887    ENDIF ! couche limite
    881888
    882889    !======================================================================
     
    968975                      zdz(i,k)=(paprs(i,k)-paprs(i,k+1))/zrho(i,k)/RG
    969976                      !
    970                    END DO
    971                 END DO
     977                   ENDDO
     978                ENDDO
    972979
    973980                DO k=klev-1, 1, -1
     
    10141021                      !                                (1.-1./(frac_impa(i,k)*frac_nucl(i,k)))
    10151022                      !--------------
    1016                    END DO
    1017                 END DO
    1018              END IF
    1019           END DO
     1023                   ENDDO
     1024                ENDDO
     1025             ENDIF
     1026          ENDDO
    10201027          ! *********   end modified old version
    10211028
     
    10531060                      ! ----------------------------------------------------------------------
    10541061                      tr_seri(i,k,it)=tr_seri(i,k,it)*frac_impa(i,k)*frac_nucl(i,k)
    1055                    END DO
    1056                 END DO
    1057              END IF
    1058           END DO
     1062                   ENDDO
     1063                ENDDO
     1064             ENDIF
     1065          ENDDO
    10591066
    10601067          ! *********   end old version
    10611068       ENDIF  !  iflag_lscav . EQ. 1, 2, 3 or 4
    10621069       !
    1063     END IF !  lessivage
     1070    ENDIF !  lessivage
    10641071
    10651072
Note: See TracChangeset for help on using the changeset viewer.