Ignore:
Timestamp:
Jul 8, 2010, 1:46:29 PM (14 years ago)
Author:
jghattas
Message:
  • Added tracer "Age of stratospheric air", activated by putting Aga in tracer.def.
  • The logical rnpb is now controled during execution. rnpb is true only if both tracers RN and PB existe in tracer.def. RN and PB can now be removed from tracer.def
  • In tracer.def, the 2 water traceurs (H2Ov and H2Ol) must still be the first 2 tracers. The following tracers have no specific order(RN and PB can now change places). Still a minimum of 3 tracers are required.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/cltracrn.F90

    r1279 r1409  
    88 
    99  USE dimphy
     10  USE traclmdz_mod, ONLY : id_rn, id_pb
    1011  IMPLICIT NONE
    1112!======================================================================
     
    2021!---------------------------------------------------------------------
    2122! Arguments:
    22 ! itr......input-R-  le type de traceur 1- Rn 2 - Pb
     23! itr......input-R-  le type de traceur : id_rn(radon), id_pb(plomb)
    2324! dtime....input-R-  intervalle du temps (en secondes) ~ pdtphys
    2425! u1lay....input-R-  vent u de la premiere couche (m/s)
     
    195196!--------------------------------------------------------
    196197
    197      IF ( (itr.eq.1.AND.NINT(masktr(i)).EQ.1.AND.lat(i).GE.60..AND.lat(i).LE.70.).OR.      &
    198           (itr.eq.2.AND.NINT(masktr(i)).EQ.1.AND.lat(i).GE.60..AND.lat(i).LE.70.) ) THEN
     198     IF ( (itr.eq.id_rn.AND.NINT(masktr(i)).EQ.1.AND.lat(i).GE.60..AND.lat(i).LE.70.).OR.      &
     199          (itr.eq.id_pb.AND.NINT(masktr(i)).EQ.1.AND.lat(i).GE.60..AND.lat(i).LE.70.) ) THEN
    199200        zx_trs(i) = local_trs(i)
    200201        zx_a = zx_trs(i)                                           &
     
    221222!---------------------------------------------------------------
    222223
    223      IF ( (itr.EQ.1.AND.NINT(masktr(i)).EQ.0).OR.       &
    224           (itr.EQ.1.AND.NINT(masktr(i)).EQ.1.AND.lat(i).LT.-60.)) THEN
     224     IF ( (itr.EQ.id_rn.AND.NINT(masktr(i)).EQ.0).OR.       &
     225          (itr.EQ.id_rn.AND.NINT(masktr(i)).EQ.1.AND.lat(i).LT.-60.)) THEN
    225226        zx_trs(i) = 0.
    226227        local_trs(i) = 0.
     
    230231! des oceans et des continents
    231232!--------------------------------------------------------------
    232      IF ( (itr.EQ.1.AND.NINT(masktr(i)).EQ.0).OR.    &
    233           (itr.EQ.1.AND.NINT(masktr(i)).EQ.1.AND.lat(i).GT.70.)) THEN
     233     IF ( (itr.EQ.id_rn.AND.NINT(masktr(i)).EQ.0).OR.    &
     234          (itr.EQ.id_rn.AND.NINT(masktr(i)).EQ.1.AND.lat(i).GT.70.)) THEN
    234235        zx_trs(i) = 0.
    235236        local_trs(i) = 0.
     
    239240!--------------------------------------------
    240241
    241      IF (itr.eq.1.AND.NINT(masktr(i)).EQ.0) THEN
     242     IF (itr.eq.id_rn.AND.NINT(masktr(i)).EQ.0) THEN
    242243        zx_trs(i) = 0.
    243244        local_trs(i) = 0.
Note: See TracChangeset for help on using the changeset viewer.