Ignore:
Timestamp:
Mar 15, 2019, 4:05:59 PM (6 years ago)
Author:
jvatant
Message:

Fix an error in tracer management in 1D when running with both mufi and chem.
--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/dyn1d/rcm1d.F

    r2076 r2116  
    1212     &                     dtemisice
    1313      use comdiurn_h, only: sinlat, coslat, sinlon, coslon
    14       use comchem_h, only: nkim, nlaykim_up, ykim_up
     14      use comchem_h, only: nkim, nlaykim_up, cnames, ykim_up
    1515      use comsoil_h, only: nsoilmx, layer, mlayer, inertiedat, volcapa
    1616      use phyredem, only: physdem0,physdem1
     
    780780        do iq=1,nkim
    781781       
    782           file_prof = "profile_"//trim(noms(iq))//"_up"
     782          file_prof = "profile_"//trim(cnames(iq))//"_up"
    783783
    784784          INQUIRE(file=trim(file_prof),exist=findprof)
     
    787787            ! Read profile for upper chemistry specie.
    788788            PRINT *, "Input file found for upper chemistry specie ",
    789      &                trim(noms(iq))//"_up"
     789     &                trim(cnames(iq))//"_up"
    790790            OPEN(11,file=trim(file_prof),status='old',form='formatted')
    791791            PRINT *, "---> reading upper profile from input file ..."
     
    795795          ELSE
    796796            PRINT *, "No input profile found for ",
    797      &                trim(noms(iq))//"_up"
     797     &                trim(cnames(iq))//"_up"
    798798            PRINT *, "---> we set it to zero - that's bold !!"
    799799          ENDIF
Note: See TracChangeset for help on using the changeset viewer.