Ignore:
Timestamp:
Nov 30, 2022, 4:37:30 PM (19 months ago)
Author:
dcugnet
Message:
  • remove "config_inca" variable from "control_mod" and "infotrac_phy" (read in infotrac)
  • only kept version of "type_trac" is in tracinca ; few tests are moved from infotrac to this module.
  • simplify and generalize a bit the routines "phyetat0_get" and "phyetat0_srf" from phyetat0, converted to a module.
  • fix the isotopic version: few "USE … » were misplaced between ISOVERIF CPP keys
  • fix the old water and derived isotopes names in the ISOTRAC case
Location:
LMDZ6/trunk/libf/dyn3d_common
Files:
2 edited

Legend:

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

    r4146 r4358  
    2929  INTEGER,SAVE :: ip_ebil_dyn
    3030  LOGICAL,SAVE :: offline
    31   CHARACTER(len=4),SAVE :: config_inca
    3231  CHARACTER(len=10),SAVE :: planet_type ! planet type ('earth','mars',...)
    3332  LOGICAL,SAVE :: output_grads_dyn ! output dynamics diagnostics in
  • LMDZ6/trunk/libf/dyn3d_common/infotrac.F90

    r4325 r4358  
    6767!  | phase       | Phases list ("g"as / "l"iquid / "s"olid)             | /           | [g][l][s]              |
    6868!  | component   | Name(s) of the merged/cumulated section(s)           | /           | coma-separated names   |
    69 !  | iadv        | Advection scheme number                              | iadv        | 1-20,30 exc. 3-9,15,19 |
    7069!  | iGeneration | Generation (>=1)                                     | /           |                        |
    71 !  | isAdvected  | advected tracers flag (.TRUE. if iadv >= 0)          | /           | nqtrue  .TRUE. values  |
    72 !  | isInPhysics | tracers not extracted from the main table in physics | /           | nqtottr .TRUE. values  |
    7370!  | iqParent    | Index of the parent tracer                           | iqpere      | 1:nqtot                |
    7471!  | iqDescen    | Indexes of the childs       (all generations)        | iqfils      | 1:nqtot                |
    7572!  | nqDescen    | Number of the descendants   (all generations)        | nqdesc      | 1:nqtot                |
    7673!  | nqChildren  | Number of childs            (1st generation only)    | nqfils      | 1:nqtot                |
     74!  | keys        | key/val pairs accessible with "getKey" routine       | /           |                        |
     75!  | iadv        | Advection scheme number                              | iadv        | 1,2,10-20(exc.15,19),30|
     76!  | isAdvected  | advected tracers flag (.TRUE. if iadv >= 0)          | /           | nqtrue  .TRUE. values  |
     77!  | isInPhysics | tracers not extracted from the main table in physics | /           | nqtottr .TRUE. values  |
    7778!  | iso_iGroup  | Isotopes group index in isotopes(:)                  | /           | 1:nbIso                |
    7879!  | iso_iName   | Isotope  name  index in isotopes(iso_iGroup)%trac(:) | iso_indnum  | 1:niso                 |
    7980!  | iso_iZone   | Isotope  zone  index in isotopes(iso_iGroup)%zone(:) | zone_num    | 1:nzone                |
    8081!  | iso_iPhas   | Isotope  phase index in isotopes(iso_iGroup)%phas(:) | phase_num   | 1:nphas                |
    81 !  | keys        | key/val pairs accessible with "getKey" routine       | /           |                        |
    8282!  +-------------+------------------------------------------------------+-------------+------------------------+
    8383!
     
    114114
    115115SUBROUTINE init_infotrac
    116    USE control_mod, ONLY: planet_type, config_inca
     116   USE control_mod, ONLY: planet_type
    117117#ifdef REPROBUS
    118118   USE CHEM_REP,    ONLY: Init_chem_rep_trac
     
    182182      msg1 = 'For type_trac = "'//TRIM(types_trac(it))//'":'
    183183      SELECT CASE(types_trac(it))
    184          CASE('inca'); CALL msg(TRIM(msg1)//' coupling with INCA chemistry model, config_inca='//config_inca, modname)
     184         CASE('inca'); CALL msg(TRIM(msg1)//' coupling with INCA chemistry model',        modname)
    185185         CASE('inco'); CALL msg(TRIM(msg1)//' coupling jointly with INCA and CO2 cycle',  modname)
    186186         CASE('repr'); CALL msg(TRIM(msg1)//' coupling with REPROBUS chemistry model',    modname)
     
    191191      END SELECT
    192192
    193       !--- COHERENCE TEST BETWEEN "type_trac" AND "config_inca"
    194       IF(ANY(['inca', 'inco'] == types_trac(it)) .AND. ALL(['aero', 'aeNP', 'chem'] /= config_inca)) &
    195          CALL abort_gcm(modname, 'Incoherence between type_trac and config_inca. Please modify "run.def"',1)
    196 
    197193      !--- COHERENCE TEST BETWEEN "type_trac" AND PREPROCESSING KEYS
    198194      SELECT CASE(types_trac(it))
     
    214210   END DO
    215211   !---------------------------------------------------------------------------------------------------------------------------
    216 
    217    !--- DISABLE "config_inca" OPTION FOR A RUN WITHOUT "INCA" IF IT DIFFERS FROM "none"
    218    IF(fmsg('Setting config_inca="none" as you do not couple with INCA model', &
    219          modname, ALL(types_trac /= 'inca') .AND. ALL(types_trac /= 'inco') .AND. config_inca /= 'none')) config_inca = 'none'
    220212
    221213   nqCO2 = COUNT( [ANY(types_trac == 'inco') .OR. (ANY(types_trac == 'co2i') .AND. ANY(types_trac == 'inca'))] )
Note: See TracChangeset for help on using the changeset viewer.