Changeset 3361


Ignore:
Timestamp:
Jul 6, 2018, 9:01:31 AM (6 years ago)
Author:
oboucher
Message:

Embryon of changes for interactive CO2
type_trac=co2i

Location:
LMDZ6/trunk/libf
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d_common/infotrac.F90

    r2690 r3361  
    152152       CALL abort_gcm('infotrac_init','You must compile with cpp key REPROBUS',1)
    153153#endif
     154    ELSE IF (type_trac == 'co2i') THEN
     155       WRITE(lunout,*) 'You have chosen to run with CO2 cycle: type_trac=', type_trac
    154156    ELSE IF (type_trac == 'coag') THEN
    155157       WRITE(lunout,*) 'Tracers are treated for COAGULATION tests : type_trac=', type_trac
     
    177179!
    178180!-----------------------------------------------------------------------
    179     IF (type_trac == 'lmdz' .OR. type_trac == 'repr' .OR. type_trac == 'coag') THEN
     181    IF (type_trac == 'lmdz' .OR. type_trac == 'repr' .OR. type_trac == 'coag' .OR. type_trac == 'co2i') THEN
    180182       OPEN(90,file='traceur.def',form='formatted',status='old', iostat=ierr)
    181183       IF(ierr.EQ.0) THEN
     
    281283!    Get choice of advection schema from file tracer.def or from INCA
    282284!---------------------------------------------------------------------
    283     IF (type_trac == 'lmdz' .OR. type_trac == 'repr' .OR. type_trac == 'coag') THEN
     285    IF (type_trac == 'lmdz' .OR. type_trac == 'repr' .OR. type_trac == 'coag' .OR. type_trac == 'co2i') THEN
    284286       IF(ierr.EQ.0) THEN
    285287          ! Continue to read tracer.def
     
    673675            if (ipere.gt.nqtot) then
    674676                WRITE(lunout,*) 'Le traceur',iq,'appele ', &
    675       &          trim(tnom_0(iq)),', est orpelin.'
     677      &          trim(tnom_0(iq)),', est orphelin.'
    676678                CALL abort_gcm('infotrac_init','Un traceur est orphelin',1)
    677679            endif !if (ipere.gt.nqtot) then
     
    684686    WRITE(lunout,*) 'iqpere=',iqpere
    685687    WRITE(lunout,*) 'iqfils=',iqfils
     688    WRITE(lunout,*) 'infotrac'
    686689
    687690! Calculer le nombre de descendants à partir de iqfils et de nbfils
     
    702705        endif !if (ipere.gt.0) then
    703706      enddo !do while (continu)   
     707      WRITE(lunout,*) iq
    704708      WRITE(lunout,*) 'Le traceur ',iq,', appele ',trim(tnom_0(iq)),' est un traceur de generation: ',generation
    705709    enddo !DO iq=1,nqtot
     
    726730    enddo !do iq=1,nqtot
    727731
     732    WRITE(lunout,*) 'infotrac init fin'
    728733
    729734! detecter quels sont les traceurs isotopiques parmi des traceurs
  • LMDZ6/trunk/libf/phylmd/phytrac_mod.F90

    r3125 r3361  
    100100    USE print_control_mod, ONLY: lunout
    101101    USE aero_mod, ONLY : naero_grp
     102
     103    USE tracco2i_mod
    102104
    103105#ifdef CPP_StratAer
     
    474476       CASE('repr')
    475477          source(:,:)=0.
     478       CASE('co2i')
     479          source(:,:)=0.
    476480#ifdef CPP_StratAer
    477481       CASE('coag')
     
    537541                flag_cvltr(it)=.false.
    538542
     543             CASE('co2i')
     544                !--co2 tracers are not scavenged
     545                flag_cvltr(it)=.false.
     546
    539547#ifdef CPP_StratAer
    540548             CASE('coag')
     
    624632            t_seri, pplay, paprs, sh , &
    625633            tr_seri)
     634
     635    CASE('co2i')
     636       !   -- CO2 interactif --
     637       !   -- source is updated with FF and BB emissions
     638       !   -- OB => PC need to add net flux from ocean and orchidee
     639       !   -- sign convention : positive into the atmosphere
     640       CALL tracco2i(pdtphys, debutphy, &
     641            xlat, xlon, pphis, pphi, &
     642            t_seri, pplay, paprs, tr_seri, source)
    626643
    627644#ifdef CPP_StratAer
Note: See TracChangeset for help on using the changeset viewer.