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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/tracinca_mod.F90

    r2784 r4358  
    1212                     ! config_inca='chem' => INCA with chemistry
    1313                     ! config_inca='aero' => INCA with aerosols
     14                     ! config_inca='aeNP' => INCA with aerosols NP (?)
    1415CONTAINS
    1516
     
    1718    ! This subroutine initialize some control varaibles.
    1819
    19     USE infotrac_phy, ONLY: nbtr
    20     USE ioipsl_getin_p_mod, ONLY: getin_p
     20    USE infotrac_phy, ONLY: nbtr, types_trac
    2121    IMPLICIT NONE
    2222   
     
    2525    LOGICAL,INTENT(OUT) :: lessivage
    2626   
    27    
    2827    ! Initialization
    2928    lessivage  =.FALSE.
    3029    aerosol(:) = .FALSE.
     30
     31    !--- COHERENCE TEST BETWEEN "type_trac" AND "config_inca"
     32    IF((ANY(types_trac == 'inca') .OR. ANY(types_trac == 'inco')) .AND. ALL(config_inca /= ['aero', 'aeNP', 'chem']))&
     33       CALL abort_gcm('tracinca_init', 'INCA enabled, but unknown config_inca = "'//TRIM(config_inca)//'".'          &
     34                             //'Please modify "run.def"', 1)
     35
     36    !--- PROBLEM IF "config_inca" DIFFERS FROM "none" AND INCA HAS NOT BEEN ACTIVATED
     37    IF(ALL(types_trac /= 'inca') .AND. ALL(types_trac /= 'inco')  .AND.     config_inca /= 'none') &
     38       CALL abort_gcm('tracinca_init', 'INCA disabled, but config_inca = "'//TRIM(config_inca)//'" should be "none".'&
     39                             //'Please modify "run.def"', 1)
    3140
    3241  END SUBROUTINE tracinca_init
Note: See TracChangeset for help on using the changeset viewer.