Ignore:
Timestamp:
Jun 16, 2022, 8:16:59 PM (2 years ago)
Author:
dcugnet
Message:

The variable "types_trac" is the equivalent of "type_trac" in case multiple sections must be read
and used in "tracer.def" file.
Tests on the "type_trac" were replaced with tests on the vector "types_trac".
Most of the time, there are two components: 'lmdz' and a second one. The later has priority on 'lmdz'
and must be used for the tests. For more components, care must be taken to execute specific parts
of the code on the right tracers ; the tracers(:)%component has been created in that respect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phy_common/physics_distribution_mod.F90

    r4127 r4170  
    1313  USE mod_grid_phy_lmdz, ONLY: init_grid_phy_lmdz
    1414  USE dimphy, ONLY : Init_dimphy
    15   USE infotrac_phy, ONLY : type_trac
     15  USE infotrac_phy, ONLY : types_trac
    1616#ifdef REPROBUS
    1717  USE CHEM_REP, ONLY : Init_chem_rep_phys
     
    3838
    3939! Initialization of Reprobus
    40     IF (type_trac == 'repr') THEN
     40    IF (ANY(types_trac == 'repr')) THEN
    4141#ifdef REPROBUS
    4242       CALL Init_chem_rep_phys(klon_omp,nbp_lev)
     
    5252!  USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz!, nbp_lev
    5353!  USE dimphy, ONLY : Init_dimphy
    54 !  USE infotrac_phy, ONLY : type_trac
     54!  USE infotrac_phy, ONLY : types_trac
    5555!#ifdef REPROBUS
    5656!  USE CHEM_REP, ONLY : Init_chem_rep_phys
     
    7272!
    7373!! Initialization of Reprobus
    74 !    IF (type_trac == 'repr') THEN
     74!    IF (ANY(types_trac == 'repr')) THEN
    7575!#ifdef REPROBUS
    7676!       CALL Init_chem_rep_phys(klon_omp,nbp_lev)
Note: See TracChangeset for help on using the changeset viewer.