Ignore:
Timestamp:
Sep 10, 2024, 4:25:29 PM (2 months ago)
Author:
abarral
Message:

(WIP) Replace REPROBUS CPP KEY by logical
properly name modules

Location:
LMDZ6/branches/Amaury_dev/libf/dyn3d_common
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/initdynav.F90

    r5159 r5182  
    44
    55  USE IOIPSL
    6   USE infotrac, ONLY: nqtot
     6  USE lmdz_infotrac, ONLY: nqtot
    77  USE com_io_dyn_mod, ONLY: histaveid, histvaveid, histuaveid, &
    88          dynhistave_file, dynhistvave_file, dynhistuave_file
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/inithist.F90

    r5159 r5182  
    44
    55  USE IOIPSL
    6   USE infotrac, ONLY: nqtot
     6  USE lmdz_infotrac, ONLY: nqtot
    77  USE com_io_dyn_mod, ONLY: histid, histvid, histuid, &
    88          dynhist_file, dynhistv_file, dynhistu_file
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/iso_verif_dyn.f90

    r5117 r5182  
    6464  function iso_verif_aberrant_nostop &
    6565          (x,iso,q,err_msg)
    66     USE infotrac, ONLY: isoName, getKey
     66    USE lmdz_infotrac, ONLY: isoName, getKey
    6767    IMPLICIT NONE
    6868
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/lmdz_infotrac.f90

    r5181 r5182  
    1 !$Id$
    2 
    3 MODULE infotrac
     1MODULE lmdz_infotrac
    42
    53  USE       lmdz_strings, ONLY: msg, fmsg, maxlen, cat, dispTable, int2str, bool2str, strStack, strParse
     
    116114  SUBROUTINE init_infotrac
    117115    USE control_mod, ONLY: planet_type
    118 #ifdef REPROBUS
    119    USE CHEM_REP,    ONLY: Init_chem_rep_trac
    120 #endif
    121     USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_STRATAER
     116    USE lmdz_reprobus_wrappers, ONLY: init_chem_rep_trac
     117    USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_STRATAER, CPPKEY_REPROBUS
    122118    USE lmdz_iniprint, ONLY: lunout, prt_level
    123 
    124   USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
     119    USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
     120
    125121    IMPLICIT NONE
    126122    !==============================================================================================================================
     
    204200      END IF
    205201    CASE('repr')
    206 #ifndef REPROBUS
    207       CALL abort_gcm(modname, 'You must add cpp key REPROBUS and compile with REPROBUS code', 1)
    208 #endif
     202      IF (.NOT. CPPKEY_REPROBUS)
     203        CALL abort_gcm(modname, 'You must add cpp key REPROBUS and compile with REPROBUS code', 1)
     204      END IF
    209205    CASE('coag')
    210206      IF (.NOT. CPPKEY_STRATAER) THEN
     
    233229      !---------------------------------------------------------------------------------------------------------------------------
    234230      nqo = SIZE(tracers) - nqCO2
    235       CALL Init_chem_inca_trac(nqINCA)                               !--- Get nqINCA from INCA
     231      CALL init_chem_inca_trac(nqINCA)                               !--- Get nqINCA from INCA
    236232      nbtr = nqINCA + nqCO2                                          !--- Number of tracers passed to phytrac
    237233      nqtrue = nbtr + nqo                                            !--- Total number of "true" tracers
     
    277273    !---------------------------------------------------------------------------------------------------------------------------
    278274
    279 #ifdef REPROBUS
    280    !--- Transfert the number of tracers to Reprobus
    281    CALL Init_chem_rep_trac(nbtr, nqo, tracers(:)%name)
    282 
    283 #endif
     275    IF (CPPKEY_REPROBUS) THEN
     276      !--- Transfert the number of tracers to Reprobus
     277      CALL init_chem_rep_trac(nbtr, nqo, tracers(:)%name)
     278    END IF
     279
    284280    !==============================================================================================================================
    285281    ! 2) Calculate nqtot, number of tracers needed (greater if advection schemes 20 or 30 have been chosen).
     
    426422  END SUBROUTINE init_infotrac
    427423
    428 END MODULE infotrac
     424END MODULE lmdz_infotrac
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/test_period.f90

    r5159 r5182  
    88  !                       teta, q , p et phis                 ..........
    99
    10   USE infotrac, ONLY: nqtot
     10  USE lmdz_infotrac, ONLY: nqtot
    1111
    1212  USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/writedynav.F90

    r5159 r5182  
    44
    55  USE ioipsl
    6   USE infotrac, ONLY: nqtot
     6  USE lmdz_infotrac, ONLY: nqtot
    77  USE com_io_dyn_mod, ONLY: histaveid, histvaveid, histuaveid
    88  USE comconst_mod, ONLY: cpp
  • LMDZ6/branches/Amaury_dev/libf/dyn3d_common/writehist.f90

    r5159 r5182  
    44
    55  USE ioipsl
    6   USE infotrac, ONLY: nqtot
     6  USE lmdz_infotrac, ONLY: nqtot
    77  USE com_io_dyn_mod, ONLY: histid, histvid, histuid
    88  USE temps_mod, ONLY: itau_dyn
Note: See TracChangeset for help on using the changeset viewer.