Ignore:
Timestamp:
Jun 14, 2015, 9:13:32 PM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes -r2237:2291 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/dyn3dmem/iniacademic_loc.F90

    r2160 r2298  
    77  use exner_hyb_m, only: exner_hyb
    88  use exner_milieu_m, only: exner_milieu
    9   USE infotrac, ONLY : nqtot
     9  USE infotrac, ONLY: nqtot,niso_possibles,ok_isotopes,iqpere,ok_iso_verif,tnat,alpha_ideal, &
     10        & iqiso,phase_num,iso_indnum,iso_num,zone_num
    1011  USE control_mod, ONLY: day_step,planet_type
    1112  USE parallel_lmdz, ONLY: ijb_u, ije_u, ijb_v, ije_v
     
    110111  ztot0      = 0.
    111112  stot0      = 0.
    112   ang0       = 0.
     113  ang0       = 0.     
    113114
    114115  if (llm == 1) then
     
    269270        if (planet_type=="earth") then
    270271           ! Earth: first two tracers will be water
     272
    271273           do i=1,nqtot
    272274              if (i == 1) q(ijb_u:ije_u,:,i)=1.e-10
    273275              if (i == 2) q(ijb_u:ije_u,:,i)=1.e-15
    274276              if (i.gt.2) q(ijb_u:ije_u,:,i)=0.
     277
     278              ! CRisi: init des isotopes
     279              ! distill de Rayleigh très simplifiée
     280              if (ok_isotopes) then
     281                if ((iso_num(i).gt.0).and.(zone_num(i).eq.0)) then         
     282                   q(ijb_u:ije_u,:,i)=q(ijb_u:ije_u,:,iqpere(i))       &
     283      &                  *tnat(iso_num(i))                             &
     284      &                  *(q(ijb_u:ije_u,:,iqpere(i))/30.e-3)                              &
     285     &                   **(alpha_ideal(iso_num(i))-1)
     286                endif               
     287                if ((iso_num(i).gt.0).and.(zone_num(i).eq.1)) then
     288                  q(ijb_u:ije_u,:,i)=q(ijb_u:ije_u,:,iqiso(iso_indnum(i),phase_num(i)))
     289                endif
     290              endif !if (ok_isotopes) then
     291
    275292           enddo
    276293        else
    277294           q(ijb_u:ije_u,:,:)=0
    278295        endif ! of if (planet_type=="earth")
     296
     297        if (ok_iso_verif) then
     298           call check_isotopes(q,ijb_u,ije_u,'iniacademic_loc')
     299        endif !if (ok_iso_verif) then
    279300
    280301        ! add random perturbation to temperature
Note: See TracChangeset for help on using the changeset viewer.