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/dyn3dmem/leapfrog_loc.F

    r4148 r4170  
    15191519
    15201520#ifdef INCA
    1521          if (type_trac == 'inca' .OR. type_trac == 'inco') then
     1521         if (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) then
    15221522            call finalize_inca
    15231523         endif
    15241524#endif
    15251525#ifdef REPROBUS
    1526          if (type_trac == 'repr') then
     1526         if (ANY(types_trac == 'repr')) then
    15271527         call finalize_reprobus
    15281528         endif
     
    15721572
    15731573#ifdef INCA
    1574               if (type_trac == 'inca' .OR. type_trac == 'inco') then
     1574              if (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) then
    15751575                 call finalize_inca
    15761576              endif
    15771577#endif
    15781578#ifdef REPROBUS
    1579               if (type_trac == 'repr') then
     1579              if (ANY(types_trac == 'repr')) then
    15801580         call finalize_reprobus
    15811581              endif
     
    17431743
    17441744#ifdef INCA
    1745                  if (type_trac == 'inca' .OR. type_trac == 'inco') then
     1745                 if (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) then
    17461746                    call finalize_inca
    17471747                 endif
    17481748#endif
    17491749#ifdef REPROBUS
    1750                  if (type_trac == 'repr') then
     1750                 if (ANY(types_trac == 'repr')) then
    17511751         call finalize_reprobus
    17521752                 endif
     
    18541854
    18551855#ifdef INCA
    1856       if (type_trac == 'inca' .OR. type_trac == 'inco') then
     1856      if (ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) then
    18571857         call finalize_inca
    18581858      endif
    18591859#endif
    18601860#ifdef REPROBUS
    1861       if (type_trac == 'repr') then
     1861      if (ANY(types_trac == 'repr')) then
    18621862         call finalize_reprobus
    18631863      endif
Note: See TracChangeset for help on using the changeset viewer.