Ignore:
Timestamp:
Sep 20, 2024, 1:10:18 PM (5 months ago)
Author:
Laurent Fairhead
Message:

Merge with trunk revision 5202 before reintegration to trunk

Location:
LMDZ6/branches/cirrus
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/cirrus

  • LMDZ6/branches/cirrus/libf/phylmdiso/isotopes_mod.F90

    r5202 r5203  
    161161   !=== Local variables:
    162162   INTEGER :: ixt
    163 
     163   LOGICAL :: ltnat1
     164   CHARACTER(LEN=maxlen) :: modname, sxt
    164165 
    165166   !--- For H2[17]O
     
    170171   LOGICAL, PARAMETER ::   ok_nocinsat = .FALSE. ! if T: no sursaturation effect for ice
    171172   LOGICAL, PARAMETER :: Rdefault_smow = .FALSE. ! if T: Rdefault=smow; if F: nul
    172    LOGICAL, PARAMETER :: tnat1 = .TRUE. ! If T: all tnats are 1.
    173173
    174174   !--- For [3]H
    175175   INTEGER :: iessai
    176 
    177    CHARACTER(LEN=maxlen) :: modname, sxt
    178176
    179177   modname = 'iso_init'
     
    265263   IF(ANY(isoName == 'HTO')) &
    266264   CALL get_in('ok_prod_nucl_tritium', ok_prod_nucl_tritium, .FALSE., .FALSE.)
     265   CALL get_in('tnateq1', ltnat1, .TRUE.)
    267266
    268267   ! Ocean composition
     
    295294       tkcin1(ixt) = 0.0005016
    296295       tkcin2(ixt) = 0.0014432
    297        if (tnat1) then
    298                tnat(ixt)=1
    299        else
    300                tnat(ixt)=0.
    301        endif
     296       tnat(ixt) = 0.0; IF(ltnat1) tnat(ixt)=1
    302297       toce(ixt)=4.0E-19 ! rapport T/H = 0.2 TU Dreisigacker and Roether 1978
    303298       tcorr(ixt)=1.
     
    318313       tkcin1(ixt) = tkcin1_O18*fac_kcin
    319314       tkcin2(ixt) = tkcin2_O18*fac_kcin
    320        if (tnat1) then
    321                tnat(ixt)=1
    322        else
    323                tnat(ixt)=0.004/100. ! O17 représente 0.004% de l'oxygène
    324        endif
     315       tnat(ixt)=0.004/100. ! O17 représente 0.004% de l'oxygène
     316       IF(ltnat1) tnat(ixt)=1
    325317       toce(ixt)=tnat(ixt)*(1.0+deltaO18_oce/1000.0)**pente_MWL
    326318       tcorr(ixt)=1.0+fac_enrichoce18*pente_MWL ! donné par Amaelle           
     
    338330       tkcin1(ixt) = tkcin1_O18
    339331       tkcin2(ixt) = tkcin2_O18
    340        if (tnat1) then
    341                tnat(ixt)=1
    342        else
    343                tnat(ixt)=2005.2E-6
    344        endif
     332       tnat(ixt)=2005.2E-6; IF(ltnat1) tnat(ixt)=1
    345333       toce(ixt)=tnat(ixt)*(1.0+deltaO18_oce/1000.0)
    346334       tcorr(ixt)=1.0+fac_enrichoce18
     
    362350       tkcin1(ixt) = tkcin1_O18*fac_kcin
    363351       tkcin2(ixt) = tkcin2_O18*fac_kcin
    364        if (tnat1) then
    365                tnat(ixt)=1
    366        else
    367                tnat(ixt)=155.76E-6
    368        endif
     352       tnat(ixt)=155.76E-6; IF(ltnat1) tnat(ixt)=1
    369353       toce(ixt)=tnat(ixt)*(1.0+pente_MWL*deltaO18_oce/1000.0)
    370354       tcorr(ixt)=1.0+fac_enrichoce18*pente_MWL         
  • LMDZ6/branches/cirrus/libf/phylmdiso/isotopes_routines_mod.F90

    r5202 r5203  
    1641916419   USE isotopes_mod,      ONLY: isoName,iso_HDO,iso_eau
    1642016420   USE phyetat0_get_mod,  ONLY: phyetat0_get, phyetat0_srf
    16421    USE readTracFiles_mod, ONLY: new2oldH2O
    16422    USE strings_mod,       ONLY: strIdx, strTail, maxlen, msg, int2str
     16421   USE infotrac_phy,      ONLY: new2oldH2O
     16422   USE strings_mod,       ONLY: strIdx, strHead, strTail, maxlen, msg, int2str
    1642316423#ifdef ISOVERIF
    1642416424   USE isotopes_verif_mod
     
    1645916459      outiso = isoName(ixt)
    1646016460      oldIso = strTail(new2oldH2O(outiso), '_')            !--- Remove "H2O_" from "H2O_<iso>[_<tag>]"
    16461       i = INDEX(outiso, '_', .TRUE.)
    16462       oldIso2 = outiso(1:i-1)//outiso(i+1:LEN_TRIM(outiso)) ! CR 2023: on ajoute cette possibilité aussi, elle correspond au cas le plus récent.
     16461      oldIso2= TRIM(strHead(outiso,'_'))//strTail(outiso,'_') ! CR 2023: most recent possibility
    1646316462!      write(*,*) 'tmp 16541:'
    1646416463!      write(*,*) 'outiso=',outiso
  • LMDZ6/branches/cirrus/libf/phylmdiso/isotrac_mod.F90

    r4493 r5203  
    33
    44MODULE isotrac_mod
    5   USE infotrac_phy,      ONLY: niso, ntiso, nzone
    6   USE readTracFiles_mod, ONLY: delPhase
    7   USE isotopes_mod,      ONLY: ridicule, get_in
     5  USE infotrac_phy, ONLY: niso, ntiso, nzone, delPhase
     6  USE isotopes_mod, ONLY: ridicule, get_in
    87
    98  IMPLICIT NONE
  • LMDZ6/branches/cirrus/libf/phylmdiso/phyetat0_mod.F90

    r5202 r5203  
    4141  USE geometry_mod,     ONLY: longitude_deg, latitude_deg
    4242  USE iostart,          ONLY: close_startphy, get_field, get_var, open_startphy
    43   USE infotrac_phy,     ONLY: nqtot, nbtr, type_trac, tracers
    44   USE readTracFiles_mod,ONLY: maxlen, new2oldH2O
     43  USE infotrac_phy,     ONLY: nqtot, nbtr, type_trac, tracers, new2oldH2O
     44  USE strings_mod,      ONLY: maxlen
    4545  USE traclmdz_mod,     ONLY: traclmdz_from_restart
    4646  USE carbon_cycle_mod, ONLY: carbon_cycle_init, carbon_cycle_cpl, carbon_cycle_tr, carbon_cycle_rad, co2_send, RCO2_glo
  • LMDZ6/branches/cirrus/libf/phylmdiso/physiq_mod.F90

    r5202 r5203  
    3939    USE ioipsl_getin_p_mod, ONLY : getin_p
    4040    USE indice_sol_mod
    41     USE infotrac_phy, ONLY: nqtot, nbtr, nqo, tracers, type_trac,ivap,iliq,isol
    42     USE readTracFiles_mod, ONLY: addPhase
     41    USE infotrac_phy, ONLY: nqtot, nbtr, nqo, tracers, type_trac,addPhase, ivap, iliq, isol
    4342    USE strings_mod,  ONLY: strIdx
    4443    USE iophy
     
    13751374!$OMP THREADPRIVATE(SFRWL)
    13761375    !albedo SB <<<
     1376
     1377    !--Lea Raillard qs_ini
     1378    REAL, dimension(klon,klev) :: qs_ini
    13771379
    13781380    !--OB variables for mass fixer (hard coded for now)
     
    50905092
    50915093    CALL lscp(klon,klev,phys_tstep,missing_val,paprs,pplay, &
    5092          t_seri, q_seri,qs_ancien,ptconv,ratqs, &
     5094         t_seri, q_seri,qs_ini,ptconv,ratqs, &
    50935095         d_t_lsc, d_q_lsc, d_ql_lsc, d_qi_lsc, rneb, rneblsvol, &
    50945096         pfraclr, pfracld, cldfraliq, sigma2_icefracturb, mean_icefracturb,  &
     
    71727174       ENDDO
    71737175    ENDDO
     7176   
     7177    ! Lea Raillard qs_ini for cloud phase param.
     7178    qs_ini(:,:)=qs_seri(:,:)
    71747179
    71757180    ! C Risi: dispatcher les isotopes dans les xt_seri
Note: See TracChangeset for help on using the changeset viewer.