Ignore:
Timestamp:
Sep 19, 2024, 4:11:02 PM (38 hours ago)
Author:
dcugnet
Message:

Replace the hard-coded "tnat1" (TRUE by default) by a variable that can be changed using "tnateq1" in *.def files.
"iso_verif_dyn" now uses also this variable (fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/isotopes_mod.F90

    r5190 r5200  
    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         
Note: See TracChangeset for help on using the changeset viewer.