Ignore:
Timestamp:
Oct 22, 2024, 2:09:45 PM (2 months ago)
Author:
abarral
Message:

Wrap uses of cpp key REPROBUS and CPP_STRATAER
Add REPROBUS wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/dynetat0.F90

    r5251 r5252  
    2525#endif
    2626  USE iso_params_mod   ! tnat_* and alpha_ideal_*
    27   USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA
     27  USE lmdz_cppkeys_wrapper, ONLY: CPPKEY_INCA, CPPKEY_REPROBUS
     28  USE strings_mod, ONLY: strIdx
    2829
    2930  IMPLICIT NONE
     
    4748  CHARACTER(LEN=maxlen) :: mesg, var, modname, oldVar
    4849  INTEGER, PARAMETER :: length=100
    49   INTEGER :: iq, fID, vID, idecal, iqParent, iName, iZone, iPhase
     50  INTEGER :: iq, fID, vID, idecal, iqParent, iName, iZone, iPhase, ix
    5051  REAL    :: time, tnat, alpha_ideal, tab_cntrl(length)    !--- RUN PARAMS TABLE
    5152  LOGICAL :: lSkip, ll, ltnat1
     
    136137!--- Tracers
    137138  ll=.FALSE.
    138 #ifdef REPROBUS
     139IF (CPPKEY_REPROBUS) THEN
    139140  ll = NF90_INQ_VARID(fID, 'HNO3tot', vID) /= NF90_NoErr                                 !--- DETECT OLD REPRO start.nc FILE
    140 #endif
     141END IF
    141142  ltnat1 = .TRUE.; CALL getin('tnateq1', ltnat1)
    142143  DO iq=1,nqtot
     
    144145    oldVar = new2oldH2O(var)
    145146    lSkip = ll .AND. var == 'HNO3'                                                       !--- FORCE "HNO3_g" READING FOR "HNO3"
    146 #ifdef REPROBUS
     147IF (CPPKEY_REPROBUS) THEN
    147148    ix = strIdx(newHNO3, var); IF(ix /= 0) oldVar = oldHNO3(ix)                          !--- REPROBUS HNO3 exceptions
    148 #endif
     149END IF
    149150IF (CPPKEY_INCA) THEN
    150151    IF(var == 'O3') oldVar = 'OX'                                                        !--- DEAL WITH INCA OZONE EXCEPTION
Note: See TracChangeset for help on using the changeset viewer.