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/phylmd/radlwsw_m.F90

    r4116 r4170  
    4848  USE DIMPHY
    4949  USE assert_m, ONLY : assert
    50   USE infotrac_phy, ONLY : type_trac
     50  USE infotrac_phy, ONLY : types_trac
    5151  USE write_field_phy
    5252
     
    550550  PSCT = solaire/zdist/zdist
    551551
    552   IF (type_trac == 'repr') THEN
     552  IF (ANY(types_trac == 'repr')) THEN
    553553#ifdef REPROBUS
    554554    IF (iflag_rrtm==0) THEN
     
    634634    ENDDO
    635635
    636     IF (type_trac == 'repr') THEN
     636    IF (ANY(types_trac == 'repr')) THEN
    637637#ifdef REPROBUS
    638638       ndimozon = size(wo, 3)
Note: See TracChangeset for help on using the changeset viewer.