Ignore:
Timestamp:
04/13/18 12:15:15 (6 years ago)
Author:
lfairhead
Message:

Modifications to read orbital parameters in text files. If files not present, values
are the defaults given in the config*def file

  1. Lebas
Location:
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver

    r3615 r3755  
    159159    IGCM_comp_modifyDefFile nonblocker config.def solaire $value 
    160160 
     161    # Read value for eccentricity from file Eccentricity.txt. If file not existing, take DEFAULT value from file. 
     162    if [ -f Eccentricity.txt ] ; then 
     163        value=`grep Annee_${year} Eccentricity.txt | awk -F= '{print $2}'` 
     164        if [ X"${value}" = X ] ; then 
     165            # The grep returned empty variable, stop execution 
     166            IGCM_debug_Exit "The file Eccentricity.txt do not contain the current year." 
     167            IGCM_debug_Verif_Exit 
     168        fi 
     169    else 
     170        value=DEFAULT 
     171    fi 
     172    IGCM_comp_modifyDefFile nonblocker config.def R_ecc $value 
     173 
     174    # Read value for obliquity from file Obliquity.txt. If file not existing, take DEFAULT value from file. 
     175    if [ -f Obliquity.txt ] ; then 
     176        value=`grep Annee_${year} Obliquity.txt | awk -F= '{print $2}'` 
     177        if [ X"${value}" = X ] ; then 
     178            # The grep returned empty variable, stop execution 
     179            IGCM_debug_Exit "The file Obliquity.txt do not contain the current year." 
     180            IGCM_debug_Verif_Exit 
     181        fi 
     182    else 
     183        value=DEFAULT 
     184    fi 
     185    IGCM_comp_modifyDefFile nonblocker config.def R_incl $value 
     186 
     187    # Read value for perihelie from file Perihelie.txt. If file not existing, take DEFAULT value from file. 
     188    if [ -f Perihelie.txt ] ; then 
     189        value=`grep Annee_${year} Perihelie.txt | awk -F= '{print $2}'` 
     190        if [ X"${value}" = X ] ; then 
     191            # The grep returned empty variable, stop execution 
     192            IGCM_debug_Exit "The file Perihelie.txt do not contain the current year." 
     193            IGCM_debug_Verif_Exit 
     194        fi 
     195    else 
     196        value=DEFAULT 
     197    fi 
     198    IGCM_comp_modifyDefFile nonblocker config.def R_peri $value 
    161199 
    162200    # Read value for co2_ppm from file CO2.txt. If file not existing, take DEFAULT value from file.  
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_actuel

    r3568 r3755  
    1515# Parametres "orbitaux/ ere geologique" 
    1616# 
    17 ### R_ecc =      Excentricite 
    18 R_ecc = 0.016715 
    19 ### R_peri =     Equinoxe 
    20 R_peri = 102.7 
    21 ### R_incl =     Inclinaison 
    22 R_incl = 23.441 
     17### R_ecc =      Excentricite (lue dans Eccentricity.txt) 
     18R_ecc = _AUTO_: DEFAULT = 0.016715 
     19### R_peri =     Equinoxe (lue dans Perihelie.txt) 
     20R_peri = _AUTO_: DEFAULT = 102.7 
     21### R_incl =     Inclinaison (lue dans Obliquity.txt) 
     22R_incl = _AUTO_: DEFAULT = 23.441 
    2323### solaire =    Constante solaire 
    2424#solaire = _AUTO_ : DEFAULT = 1366.0896 
    2525solaire = _AUTO_ : DEFAULT = 1361.20  
     26# solaire est modifie avec les valeurs du fichier SOLARANDVOLCANOES.txt 
    2627### constante solaire lue dans un fichier par defaut 
    2728ok_suntime_rrtm=y 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_annuel

    r3568 r3755  
    1515# Parametres "orbitaux/ ere geologique" 
    1616# 
    17 ### R_ecc =      Excentricite 
    18 R_ecc = 0.016715 
    19 ### R_peri =     Equinoxe 
    20 R_peri = 102.7 
    21 ### R_incl =     Inclinaison 
    22 R_incl = 23.441 
     17### R_ecc =      Excentricite (lue dans Eccentricity.txt) 
     18R_ecc = _AUTO_: DEFAULT = 0.016715 
     19### R_peri =     Equinoxe (lue dans Perihelie.txt) 
     20R_peri = _AUTO_: DEFAULT = 102.7 
     21### R_incl =     Inclinaison (lue dans Obliquity.txt) 
     22R_incl = _AUTO_: DEFAULT = 23.441 
    2323### solaire =    Constante solaire 
    2424# solaire est modifie avec les valeurs du fichier SOLARANDVOLCANOES.txt 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_preind

    r3568 r3755  
    1717# Parametres "orbitaux/ ere geologique" 
    1818# 
    19 ### R_ecc =      Excentricite 
    20 R_ecc = 0.016715 
    21 ### R_peri =     Equinoxe 
    22 R_peri = 102.7 
    23 ### R_incl =     Inclinaison 
    24 R_incl = 23.441 
    25 ### solaire =    Constante solaire 
     19### R_ecc =      Excentricite (lue dans Eccentricity.txt) 
     20R_ecc = _AUTO_: DEFAULT = 0.016715 
     21### R_peri =     Equinoxe (lue dans Perihelie.txt) 
     22R_peri = _AUTO_: DEFAULT = 102.7 
     23### R_incl =     Inclinaison (lue dans Obliquity.txt) 
     24R_incl = _AUTO_: DEFAULT = 23.441 
     25### solaire =    Constante solaire (lue dans SOLARANDVOLCANOES.txt) 
    2626solaire = _AUTO_: DEFAULT = 1361.20 
    2727### constante solaire lue dans un fichier par defaut 
Note: See TracChangeset for help on using the changeset viewer.