Changeset 4921


Ignore:
Timestamp:
02/10/20 15:10:20 (4 years ago)
Author:
jgipsl
Message:

Homogenization of v6.2 and v7. Main difference in compilation:

  • option -optmode has been removed. Instead use one of following: -prod, -dev or -debug
  • the name of the executable now contains the optimization mode used while compiling. In config.card, if compiling with -dev or -debug, OptMode? in the beginning of config.card must be changed accordingly.
Location:
CONFIG/UNIFORM/v7/ICOLMDZOR_v7
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/CREATE_amip/config.card

    r4690 r4921  
    2727PeriodLength=1Y 
    2828#============================ 
     29#-- Compression level for netcdf output files 
     30CompressionLevel=2 
     31#============================ 
    2932# Source following file with module settings 
    3033EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    3134#============================ 
    32 #-- Compression level for netcdf output files 
    33 CompressionLevel=2 
     35# OptMode indicates the optimization mode choosen during compilation 
     36# This variable is used in the executable name 
     37OptMode=prod 
    3438 
    3539#======================================================================== 
     
    4448[Executable] 
    4549#D- For each component: Real name of executable, Name of executable in the run directory  
    46 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 31MPI) 
     50ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 31MPI) 
    4751ATM= ("","") 
    4852IOS= ("","") 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/CREATE_hadisst/config.card

    r4690 r4921  
    2727PeriodLength=1Y 
    2828#============================ 
     29#-- Compression level for netcdf output files 
     30CompressionLevel=2 
     31#============================ 
    2932# Source following file with module settings 
    3033EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    3134#============================ 
    32 #-- Compression level for netcdf output files 
    33 CompressionLevel=2 
     35# OptMode indicates the optimization mode choosen during compilation 
     36# This variable is used in the executable name 
     37OptMode=prod 
    3438 
    3539#======================================================================== 
     
    4448[Executable] 
    4549#D- For each component: Real name of executable, Name of executable in the run directory  
    46 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 160MPI, 4OMP) 
     50ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 160MPI, 4OMP) 
    4751ATM= ("","") 
    48 IOS= (xios_server.exe, xios.x, 10MPI) 
     52IOS= (xios_server_${OptMode}.exe, xios.x, 10MPI) 
    4953 
    5054#======================================================================== 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/aquaplanet/CREATE_aquaplanet/config.card

    r4896 r4921  
    2727PeriodLength=1Y 
    2828#============================ 
     29#-- Compression level for netcdf output files 
     30CompressionLevel=2 
     31#============================ 
    2932# Source following file with module settings 
    3033EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    3134#============================ 
    32 #-- Compression level for netcdf output files 
    33 CompressionLevel=2 
     35# OptMode indicates the optimization mode choosen during compilation 
     36# This variable is used in the executable name 
     37OptMode=prod 
    3438 
    3539#======================================================================== 
     
    4448[Executable] 
    4549#D- For each component: Real name of executable, Name of executable in the run directory  
    46 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 31MPI) 
     50ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 31MPI) 
    4751ATM= ("","") 
    4852IOS= ("","") 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/aquaplanet/climAQUA_360d/config.card

    r4690 r4921  
    2727PeriodLength=1Y 
    2828#============================ 
     29#-- Compression level for netcdf output files 
     30CompressionLevel=0 
     31#============================ 
    2932# Source following file with module settings 
    3033EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    3134#============================ 
    32 #-- Compression level for netcdf output files 
    33 CompressionLevel=0 
     35# OptMode indicates the optimization mode choosen during compilation 
     36# This variable is used in the executable name 
     37OptMode=prod 
    3438 
    3539#======================================================================== 
     
    4448[Executable] 
    4549#D- For each component: Real name of executable, Name of executable in the run directory  
    46 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 40MPI,4OMP) 
     50ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 40MPI,4OMP) 
    4751ATM= ("","") 
    48 IOS= (xios_server.exe, xios.x, 1MPI) 
     52IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    4953 
    5054#======================================================================== 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZ/clim_noleap/config.card

    r4690 r4921  
    1616ExperimentName=test 
    1717SpaceName=TEST 
    18 # Source following file with module settings 
    19 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    2018#============================ 
    2119#D-- leap, noleap, 360d 
     
    3331#-- Compression level for netcdf output files 
    3432CompressionLevel=2 
     33#============================ 
     34# Source following file with module settings 
     35EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     36#============================ 
     37# OptMode indicates the optimization mode choosen during compilation 
     38# This variable is used in the executable name 
     39OptMode=prod 
    3540 
    3641#======================================================================== 
     
    4550#D-- Executable - 
    4651[Executable] 
    47 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 40MPI) 
     52ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 40MPI) 
    4853ATM= ("","") 
    49 IOS= (xios_server.exe, xios.x, 1MPI) 
     54IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    5055 
    5156#======================================================================== 
     
    7681#D-- ICO - 
    7782[ICO] 
    78 # WriteFrequency is not used any more for LMDZ 
    79 WriteFrequency="" 
    8083# If config_Restarts_OverRule == 'n' all params are read 
    8184Restart= n 
     
    8992#D-- ATM - 
    9093[ATM] 
    91 # 
    92 WriteFrequency="" 
    9394# If config_Restarts_OverRule == 'n' all params are read 
    9495Restart= n 
     
    102103#D-- IOS - 
    103104[IOS] 
    104 WriteFrequency="" 
    105105# If config_Restarts_OverRule == 'n' next 4 params are read 
    106106Restart= n 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZOR/clim_noleap/config.card

    r4690 r4921  
    1616ExperimentName=test 
    1717SpaceName=TEST 
    18 # Source following file with module settings 
    19 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    2018#============================ 
    2119#D-- leap, noleap, 360d 
     
    3331#-- Compression level for netcdf output files 
    3432CompressionLevel=2 
     33#============================ 
     34# Source following file with module settings 
     35EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     36#============================ 
     37# OptMode indicates the optimization mode choosen during compilation 
     38# This variable is used in the executable name 
     39OptMode=prod 
    3540 
    3641#======================================================================== 
     
    4752#D-- Executable - 
    4853[Executable] 
    49 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 40MPI) 
     54ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 40MPI) 
    5055ATM= ("","") 
    5156SRF= ("", "") 
    5257SBG= ("", "") 
    53 IOS= (xios_server.exe, xios.x, 1MPI) 
     58IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    5459 
    5560#======================================================================== 
     
    8085#D-- ICO - 
    8186[ICO] 
    82 # 
    83 WriteFrequency="" 
    8487# If config_Restarts_OverRule == 'n' all params are read 
    8588Restart= n 
     
    9396#D-- ATM - 
    9497[ATM] 
    95 # WriteFrequency is not used any more for LMDZ 
    96 WriteFrequency="" 
    9798# If config_Restarts_OverRule == 'n' all params are read 
    9899Restart= n 
     
    106107#D-- SRF - 
    107108[SRF] 
    108 # WriteFrequency is not used any more for ORCHIDEE  
    109 # Output files are now managed in orchidee.card  
    110 WriteFrequency="" 
    111109# If config_Restarts_OverRule == 'n' next 4 params are read 
    112110Restart= n 
     
    121119#D-- SBG - STOMATE 
    122120[SBG] 
    123 # WriteFrequency is not used any more for ORCHIDEE  
    124 # Output files are now managed in stomate.card  
    125 WriteFrequency="" 
    126121# If config_Restarts_OverRule == 'n' next 4 params are read 
    127122Restart= n 
     
    136131#D-- IOS - 
    137132[IOS] 
    138 WriteFrequency="" 
    139133# If config_Restarts_OverRule == 'n' next 4 params are read 
    140134Restart= n 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZOR/highresmip/config.card

    r4690 r4921  
    1616ExperimentName=test 
    1717SpaceName=TEST 
    18 # Source following file with module settings 
    19 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    2018#============================ 
    2119#D-- leap, noleap, 360d 
     
    3432# CompressionLevel=0 when using more that 1 xios server 
    3533CompressionLevel=0 
     34#============================ 
     35# Source following file with module settings 
     36EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     37#============================ 
     38# OptMode indicates the optimization mode choosen during compilation 
     39# This variable is used in the executable name 
     40OptMode=prod 
    3641 
    3742#======================================================================== 
     
    4752#D-- Executable - 
    4853[Executable] 
    49 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 160MPI, 4OMP) 
     54ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 160MPI, 4OMP) 
    5055ATM= ("","") 
    5156SRF= ("", "") 
    52 IOS= (xios_server.exe, xios.x, 1MPI) 
     57IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    5358 
    5459#======================================================================== 
     
    7984#D-- ICO - 
    8085[ICO] 
    81 # 
    82 WriteFrequency="" 
    8386# If config_Restarts_OverRule == 'n' all params are read 
    8487Restart= n 
     
    9295#D-- ATM - 
    9396[ATM] 
    94 # WriteFrequency is not used any more for LMDZ 
    95 WriteFrequency="" 
    9697# If config_Restarts_OverRule == 'n' all params are read 
    9798Restart= n 
     
    105106#D-- SRF - 
    106107[SRF] 
    107 # WriteFrequency is not used any more for ORCHIDEE  
    108 # Output files are now managed in orchidee.card  
    109 WriteFrequency="" 
    110108# If config_Restarts_OverRule == 'n' next 4 params are read 
    111109Restart= n 
     
    120118#D-- SBG - STOMATE 
    121119[SBG] 
    122 # WriteFrequency is not used any more for ORCHIDEE  
    123 # Output files are now managed in stomate.card  
    124 WriteFrequency="" 
    125120# If config_Restarts_OverRule == 'n' next 4 params are read 
    126121Restart= n 
     
    135130#D-- IOS - 
    136131[IOS] 
    137 WriteFrequency="" 
    138132# If config_Restarts_OverRule == 'n' next 4 params are read 
    139133Restart= n 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/EXPERIMENTS/ICOLMDZOR/highresmip_CMIP6/config.card

    r4690 r4921  
    1818SpaceName=DEVT 
    1919Member=r1i1p1f1 
    20 # Source following file with module settings 
    21 EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
    2220#============================ 
    2321#D-- leap, noleap, 360d 
     
    3634# CompressionLevel=0 when using more that 1 xios server 
    3735CompressionLevel=0 
     36#============================ 
     37# Source following file with module settings 
     38EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     39#============================ 
     40# OptMode indicates the optimization mode choosen during compilation 
     41# This variable is used in the executable name 
     42OptMode=prod 
    3843 
    3944#======================================================================== 
     
    4954#D-- Executable - 
    5055[Executable] 
    51 ICO= (icosa_lmdz.exe, icosa_lmdz.exe, 160MPI, 4OMP) 
     56ICO= (icosa_lmdz_${OptMode}.exe, icosa_lmdz.exe, 160MPI, 4OMP) 
    5257ATM= ("","") 
    5358SRF= ("", "") 
    54 IOS= (xios_server.exe, xios.x, 12MPI, 4OMP) 
     59IOS= (xios_server_${OptMode}.exe, xios.x, 12MPI, 4OMP) 
    5560 
    5661#======================================================================== 
     
    8186#D-- ICO - 
    8287[ICO] 
    83 # 
    84 WriteFrequency="" 
    8588# If config_Restarts_OverRule == 'n' all params are read 
    8689Restart= n 
     
    9497#D-- ATM - 
    9598[ATM] 
    96 # WriteFrequency is not used any more for LMDZ 
    97 WriteFrequency="" 
    9899# If config_Restarts_OverRule == 'n' all params are read 
    99100Restart= n 
     
    107108#D-- SRF - 
    108109[SRF] 
    109 # WriteFrequency is not used any more for ORCHIDEE  
    110 # Output files are now managed in orchidee.card  
    111 WriteFrequency="" 
    112110# If config_Restarts_OverRule == 'n' next 4 params are read 
    113111Restart= n 
     
    122120#D-- SBG - STOMATE 
    123121[SBG] 
    124 # WriteFrequency is not used any more for ORCHIDEE  
    125 # Output files are now managed in stomate.card  
    126 WriteFrequency="" 
    127122# If config_Restarts_OverRule == 'n' next 4 params are read 
    128123Restart= n 
     
    137132#D-- IOS - 
    138133[IOS] 
    139 WriteFrequency="" 
    140134# If config_Restarts_OverRule == 'n' next 4 params are read 
    141135Restart= n 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/lmdz.driver

    r4604 r4921  
    99    if [ X${config_ListOfComponents_ICO} = X ] ; then 
    1010 
    11         [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 
    12  
     11        # Read the resolution from the variables ResolAtm set in config.card UserChoices section or from .resol file 
     12        if [ X$ResolAtm != X ] ; then 
     13            # ResolAtm is set in config.card 
     14            RESOL_ATM_3D=${ResolAtm} 
     15        elif [ -f ${SUBMIT_DIR}/../.resol ] ; then 
     16            # ResolAtm was not set in config.card, try to read .resol file 
     17            eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 
     18        else 
     19            IGCM_debug_Exit "ResolAtm is not set in config.card and the .resol file does not exist." 
     20            IGCM_debug_Verif_Exit 
     21        fi 
     22         
    1323        RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) 
    1424        RESOL_ATM_X=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $1}' ) 
    1525        RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 
    1626        RESOL_ATM_XY="${RESOL_ATM_X}x${RESOL_ATM_Y}" 
    17          
     27        RESOL_ATM=LMD${RESOL_ATM_X}${RESOL_ATM_Y} 
     28 
     29        IGCM_debug_Print 1 "The atomsopheric resolution is ${RESOL_ATM_3D} "  
    1830    else 
    1931        RESOL_ATM_Z=${dynamico_UserChoices_RESOL_ATM_Z} 
     
    190202 
    191203 
    192     ## Modifiy  
     204    ## Activate diagnostic output files and set output_level for each file 
    193205 
    194206    # histmth 
     
    372384        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    373385        IGCM_comp_modifyDefFile blocker run.def type_trac inca 
     386        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
    374387    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
    375388        echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
    376389        IGCM_comp_modifyDefFile blocker run.def type_trac repr 
    377390        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     391        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
     392    elif [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then  
     393        echo "ESM config, set type_trac=co2i in run.def" 
     394        IGCM_comp_modifyDefFile blocker run.def type_trac co2i 
     395        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     396        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
     397    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     398        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
     399        IGCM_comp_modifyDefFile blocker run.def type_trac coag 
     400        IGCM_comp_modifyDefFile blocker run.def config_inca none 
     401        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
    378402    else 
    379403        echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
    380404        IGCM_comp_modifyDefFile blocker run.def type_trac lmdz 
    381405        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    382     fi 
    383  
    384  
    385     # run.def : Activate the call to phytrac  
    386     if [ ! X${lmdz_UserChoices_iflag_phytrac} = X ]; then  
    387         IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac ${lmdz_UserChoices_iflag_phytrac} 
    388     else 
    389         IGCM_comp_modifyDefFile nonblocker run.def iflag_phytrac 0 
     406        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 0 
     407    fi 
     408 
     409    # run.def : Activate the new calving  
     410    if [ ! X${lmdz_UserChoices_cpl_old_calving} = X ]; then  
     411        IGCM_comp_modifyDefFile nonblocker run.def cpl_old_calving ${lmdz_UserChoices_cpl_old_calving} 
     412    else 
     413        IGCM_comp_modifyDefFile nonblocker run.def cpl_old_calving y 
    390414    fi  
    391415 
     
    395419    else 
    396420        IGCM_comp_modifyDefFile nonblocker physiq.def ok_bug_cv_trac  n 
     421    fi  
     422 
     423    # config.def : Activate aerosol strato  
     424    if [ ! X${lmdz_UserChoices_flag_aerosol_strat} = X ]; then  
     425        IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol_strat ${lmdz_UserChoices_flag_aerosol_strat} 
     426    else 
     427        IGCM_comp_modifyDefFile nonblocker config.def flag_aerosol_strat DEFAULT 
    397428    fi  
    398429 
     
    462493        IGCM_comp_modifyDefFile nonblocker config.def pmagic DEFAULT 
    463494    fi  
     495 
     496    if [ X${config_UserChoices_ConfigType} = XESMCO2 ] ; then 
     497        # Set carbon cycle parameters according to parmeters in lmdz.card  
     498        IGCM_comp_modifyDefFile blocker config.def level_coupling_esm 2  
     499        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_cpl ${lmdz_UserChoices_carbon_cycle_cpl}  
     500        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_tr ${lmdz_UserChoices_carbon_cycle_tr} 
     501        IGCM_comp_modifyDefFile blocker config.def carbon_cycle_rad ${lmdz_UserChoices_carbon_cycle_rad} 
     502    else 
     503        # Take default value set in config.def 
     504        IGCM_comp_modifyDefFile nonblocker config.def level_coupling_esm DEFAULT 
     505        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_cpl DEFAULT  
     506        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_tr DEFAULT 
     507        IGCM_comp_modifyDefFile nonblocker config.def carbon_cycle_rad DEFAULT 
     508    fi 
     509 
     510    # config.def : Modify parameter ok_volcan if ok_volcan=y or LMDZ_strataero=y in lmdz.card 
     511    # Note: ok_volcan is a flag allowing a double-call with/without natural forcing (instead of with/without anthro forcing). 
     512    if [ ! X${lmdz_UserChoices_ok_volcan} = X ] || [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
     513        IGCM_comp_modifyDefFile nonblocker config.def ok_volcan ${lmdz_UserChoices_ok_volcan} 
     514    else 
     515        # Take default value set in config.def 
     516        IGCM_comp_modifyDefFile nonblocker config.def ok_volcan DEFAULT 
     517    fi 
     518 
    464519 
    465520    # physiq.def : Modify parameter tau_gl if it is set in lmdz.card 
     
    552607 
    553608 
    554     # Set interpolated output grid depending on resoultion 
    555     if [ ${RESOL_NBP} == 40  ] ; then 
    556        valuei=144 
    557        valuej=143 
    558     elif [ ${RESOL_NBP} == 80  ] ; then 
    559        valuei=360 
    560        valuej=180 
    561     elif [ ${RESOL_NBP} == 160  ] ; then 
    562        valuei=720 
    563        valuej=360 
    564     else 
    565       IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
    566       IGCM_debug_Verif_Exit 
    567     fi 
    568  
    569     IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_lmdz.xml" 
    570     cp context_lmdz.xml context_lmdz.xml.init 
    571     sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
    572         -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
    573         context_lmdz.xml.init > context_lmdz.xml 
     609    # Set interpolated output grid depending on resoultion, only if ICO component is set in config.card 
     610    if [ ! "X${config_ListOfComponents_ICO}" = "X" ] ; then    
     611        if [ ${RESOL_NBP} == 40  ] ; then 
     612            valuei=144 
     613            valuej=143 
     614        elif [ ${RESOL_NBP} == 80  ] ; then 
     615            valuei=360 
     616            valuej=180 
     617        elif [ ${RESOL_NBP} == 160  ] ; then 
     618            valuei=720 
     619            valuej=360 
     620        else 
     621            IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
     622            IGCM_debug_Verif_Exit 
     623        fi 
     624 
     625        IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_lmdz.xml" 
     626        cp context_lmdz.xml context_lmdz.xml.init 
     627        sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
     628            -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
     629            context_lmdz.xml.init > context_lmdz.xml 
     630    fi 
    574631 
    575632 
     
    582639    IGCM_debug_PushStack "ATM_Finalize" 
    583640 
     641    IGCM_debug_Print 1 "FINALIZE ATM !" 
     642 
    584643    IGCM_debug_PopStack "ATM_Finalize" 
    585644} 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/orchidee.driver

    r4379 r4921  
    182182 
    183183 
    184  
    185     # Set interpolated output grid depending on resoultion 
    186     if [ ${RESOL_NBP} == 40  ] ; then 
    187        valuei=144 
    188        valuej=143 
    189     elif [ ${RESOL_NBP} == 80  ] ; then 
    190        valuei=360 
    191        valuej=180 
    192     elif [ ${RESOL_NBP} == 160  ] ; then 
    193        valuei=720 
    194        valuej=360 
    195     else 
    196       IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
    197       IGCM_debug_Verif_Exit 
    198     fi 
    199  
    200     IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_orchidee.xml" 
    201     cp context_orchidee.xml context_orchidee.xml.init 
    202     sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
    203         -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
    204         context_orchidee.xml.init > context_orchidee.xml 
    205  
     184    # Set interpolated output grid depending on resoultion, only if ICO component is set in config.card 
     185    if [ ! "X${config_ListOfComponents_ICO}" = "X" ] ; then    
     186        if [ ${RESOL_NBP} == 40  ] ; then 
     187            valuei=144 
     188            valuej=143 
     189        elif [ ${RESOL_NBP} == 80  ] ; then 
     190            valuei=360 
     191            valuej=180 
     192        elif [ ${RESOL_NBP} == 160  ] ; then 
     193            valuei=720 
     194            valuej=360 
     195        else 
     196            IGCM_debug_Exit "RESOL_NBP=${RESOL_NBP} is not yet implemented in drivers" 
     197            IGCM_debug_Verif_Exit 
     198        fi 
     199         
     200        IGCM_debug_Print 1 "Modify output grid parameters for current resolution in context_orchidee.xml" 
     201        cp context_orchidee.xml context_orchidee.xml.init 
     202        sed -e "s/ni_glo.*=.*\"144\"/ni_glo=\"${valuei}\"/" \ 
     203            -e "s/nj_glo.*=.*\"143\"/nj_glo=\"${valuej}\"/" \ 
     204            context_orchidee.xml.init > context_orchidee.xml 
     205         
     206    fi 
     207     
    206208    IGCM_debug_PopStack "SRF_Update" 
    207209} 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/compile_icolmdzor.sh

    r4663 r4921  
    1818optmode=prod 
    1919# Resolution if compiling LMDZ in regular mode without DYNAMICO 
    20 # Use for example following "./compile_icolmdzor.sh -regular_lonlat 144x142x79" 
     20# Use for example following "./compile_icolmdzor.sh -regular_latlon 144x142x79" 
    2121regular_latlon=no 
    2222# fcm_arch 
     
    2626export fcm_arch parallel xios 
    2727full_flag="" 
     28full_xios="" 
     29full_lmdz="" 
     30full_orch="" 
     31full_dyna="" 
     32 
    2833# Default netcdf_lib is used for XIOS but can be change by argument 
    2934netcdf_lib="" 
     
    3237datestr=`LC_ALL=C date +"%Y%m%dT%H%M"` 
    3338outfile=$submitdir/out_compile_icolmdzor.$datestr 
    34 rm -f $outfile; echo > $outfile 
     39echo > $outfile 
    3540echo; echo "Text output from compilation will be stored in file out_compile_icolmdzor.$datestr"; echo  
    3641 
     
    3944while (($# > 0)) ; do 
    4045    case $1 in 
    41         "-h") cat <<fin 
     46        "-h") cat <<end_help 
    4247 
    4348######################################################################## 
     
    6368./compile_icolmdzor.sh -regular_latlon 144x142x79 
    6469 
    65 fin 
     70end_help 
    6671            exit;; 
    6772 
    68         "-parallel") 
    69             parallel=$2 ; shift ; shift ;;  
    70          
    71         "-arch") 
    72             fcm_arch="$2" ; shift ; shift ;; 
    73          
    74         "-xios") 
    75             xios="$2" ; shift ; shift ;; 
    76          
    77         "-optmode") 
    78             optmode=$2 ; shift ; shift ;; 
    79  
    80         "-debug") 
    81             optmode=debug ; shift ;; 
    82  
    83         "-dev") 
    84             optmode=dev ; shift ;; 
    85  
    86         "-prod") 
    87             optmode=prod ; shift ;; 
    88  
    89         "-regular_latlon") 
    90             regular_latlon=yes ; 
    91             resol_atm_3d=$2 ; shift ; shift ;; 
    92          
    93         "-full") 
    94             full_flag="-full"; shift ;; 
    95          
    96         "-netcdf_lib_seq") 
    97             netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 
    98  
    99         *) 
    100             echo "unknown option "$2" , exiting..." 
    101             exit  
     73        "-parallel")        parallel=$2 ; shift ; shift ;;  
     74        "-arch")            fcm_arch="$2" ; shift ; shift ;; 
     75        "-xios")            xios="$2" ; shift ; shift ;; 
     76        "-debug")           optmode=debug ; shift ;; 
     77        "-dev")             optmode=dev ; shift ;; 
     78        "-prod")            optmode=prod ; shift ;; 
     79        "-regular_latlon")  regular_latlon=yes ; resol_atm=$2 ; shift ; shift ;; 
     80        "-full")            full_flag="-full"; full_xios="--full" ; full_lmdz="-full" ; full_orch="-full" ; full_dyna="-full" ; shift ;; 
     81        "-full_xios")       full_xios="--full" ; shift ;;  # Note only full_xios is using double dash: --full 
     82        "-full_lmdz")       full_lmdz="-full"  ; shift ;; 
     83        "-full_orch")       full_orch="-full"  ; shift ;; 
     84        "-full_dyna")       full_dyna="-full"  ; shift ;; 
     85        "-netcdf_lib_seq")  netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 
     86        *)                  echo "unknown option "$1" , exiting..." ;  exit  
    10287    esac 
    10388done 
    10489 
    105 echo "Following arguments are set in current compiling:" >> $outfile  
    106 echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch, full_flag=$full_flag regular_latlon=$regular_latlon" >> $outfile  
     90echo "Following options are set in current compiling:" >> $outfile  
     91echo "   regular_latlon=$regular_latlon (if yes, then resol_atm=${resol_atm})" >> $outfile  
     92echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile  
     93echo "   full_flag=$full_flag, full_xios=$full_xios, full_lmdz=$full_lmdz, full_orch=$full_orch, full_dyna=$full_dyna" >> $outfile  
    10794echo >> $outfile 
    10895 
     
    115102    # Find out current host and source specific paths and commands for the host 
    116103    case $( hostname -s ) in 
    117         ada*) 
    118             fcm_arch=X64_ADA;; 
     104        jean-zay*) 
     105            fcm_arch=X64_JEANZAY;; 
    119106        irene*) 
    120107            fcm_arch=X64_IRENE;; 
     
    130117fi 
    131118 
    132 # Set a link to arch.env and source the file if arch-${fcm_arch}.env file exist for current fcm_arch. 
     119# Set a link to arch.env if arch-${fcm_arch}.env file exist for current fcm_arch. 
    133120# The link arch.env is also set in config.card and will be used by libIGCM to ensure the same running environnement. 
    134121if [ -f ARCH/arch-${fcm_arch}.env ] ; then 
    135122    echo >> $outfile 
    136     echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation." 
    137     echo "Note that this new environement will be kept after compilation." 
    138     echo "You might want to source again your personal environment after compilation. This must be done manually or by reconnection." 
     123    echo "The file ARCH/arch-${fcm_arch}.env will now be sourced with modules needed for compilation for all components." 
     124    echo "Note that this new environement might be kept after compilation." 
     125    echo "If this is the case, source again your personal environment after compilation." 
    139126    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile  
    140127    module list   >> $outfile 2>&1 
    141128 
     129    # Make a link to this file, to be used also in config.card 
    142130    rm -f ARCH/arch.env 
    143131    ln -s arch-${fcm_arch}.env ARCH/arch.env 
     132 
     133    # Source the file 
    144134    source ARCH/arch.env   >> $outfile 2>&1 
    145135 
     
    167157echo; echo "NOW COMPILE XIOS" 
    168158echo >> $outfile ; echo " NOW COMPILE XIOS"   >> $outfile  
    169 echo ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_flag   >> $outfile  
    170      ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_flag   >> $outfile 2>&1 
     159echo ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_xios   >> $outfile  
     160     ./make_xios --$optmode --arch $fcm_arch --arch_path $arch_path ${netcdf_lib} --job 4 $full_xios   >> $outfile 2>&1 
    171161# Test if compiling succeded  
    172162if [[ $? != 0 ]] ; then  
     
    175165fi 
    176166# Move executables to modipsl/bin 
    177 if [ $modipsl/modeles/XIOS/bin/xios_server.exe ] ; then  
    178     mv $modipsl/modeles/XIOS/bin/xios_server.exe $modipsl/bin/. 
     167if [ -f $modipsl/modeles/XIOS/bin/xios_server.exe ] ; then  
     168    mv $modipsl/modeles/XIOS/bin/xios_server.exe $modipsl/bin/xios_server_${optmode}.exe 
    179169else 
    180170    echo "THERE IS A PROBLEM IN XIOS COMPILATION EXECUTABLE MISSING - STOP" 
     
    188178echo >> $outfile ; echo " NOW COMPILE ORCHIDEE"   >> $outfile  
    189179 
    190 echo    ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} $full_flag    >> $outfile  
    191         ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} $full_flag    >> $outfile 2>&1 
     180echo    ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch    >> $outfile  
     181        ./makeorchidee_fcm -j 8 -xios -parallel $parallel -$optmode -arch ${fcm_arch} -arch_path $arch_path $full_orch    >> $outfile 2>&1 
    192182# Test if compiling finished 
    193183if [[ $? != 0 ]] ; then 
     
    195185    exit 
    196186fi 
     187 
     188# If orchide driver executables have been compiled (option -driver), then rename executables to contain $optmode 
     189if [ -f $modipsl/bin/orchidee_ol ] ; then mv $modipsl/bin/orchidee_ol  $modipsl/bin/orchidee_ol_${optmode} ; fi 
     190if [ -f $modipsl/bin/orchideedriver ] ; then mv $modipsl/bin/orchideedriver  $modipsl/bin/orchideedriver_${optmode} ; fi 
     191 
    197192 
    198193## 2.4 Compile lmdz 
     
    215210fi 
    216211 
    217 echo ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_flag    >> $outfile  
    218      ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_flag    >> $outfile 2>&1 
     212echo ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_lmdz    >> $outfile  
     213     ./makelmdz_fcm -p lmd -rrtm true -cosp true -$optmode -mem -parallel $parallel -libphy -v orchidee2.1 -io xios -arch $fcm_arch -j 8 $full_lmdz    >> $outfile 2>&1 
    219214# Test if compiling finished 
    220215if [[ $? != 0 ]] ; then 
     
    229224echo >> $outfile ; echo " NOW COMPILE DYNAMICO"   >> $outfile  
    230225 
    231 echo ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_flag    >> $outfile  
    232      ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_flag    >> $outfile 2>&1 
     226echo ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_dyna    >> $outfile  
     227     ./make_icosa -$optmode -parallel $parallel -external_ioipsl -with_xios -arch $fcm_arch -arch_path $arch_path -job 8 $full_dyna    >> $outfile 2>&1 
    233228# Test if compiling finished 
    234229if [[ $? != 0 ]] ; then 
     
    242237echo >> $outfile ; echo " NOW COMPILE ICOSA_LMDZ"   >> $outfile  
    243238 
    244 echo ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_flag    >> $outfile  
    245      ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_flag    >> $outfile 2>&1 
     239echo ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_dyna    >> $outfile  
     240     ./make_icosa_lmdz -nodeps -p lmd -$optmode -parallel $parallel -with_orchidee -arch ${fcm_arch} -arch_path ${arch_path} -job 8 $full_dyna    >> $outfile 2>&1 
    246241# Test if compiling finished 
    247242if [[ $? != 0 ]] ; then 
     
    251246# Move executables to modipsl/bin 
    252247if [ $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe ] ; then  
    253     mv $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe $modipsl/bin/.  
     248    mv $modipsl/modeles/ICOSA_LMDZ/bin/icosa_lmdz.exe $modipsl/bin/icosa_lmdz_${optmode}.exe 
    254249else 
    255250    echo "THERE IS A PROBLEM IN ICOSA_LMDZ COMPILATION EXECUTABLE MISSING - STOP" 
     
    264259    cd $modipsl/modeles/LMDZ 
    265260    # Compile LMDZ regular lat-lon exectuable 
    266     echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}" 
    267     echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}"   >> $outfile  
     261    echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 
     262    echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"   >> $outfile  
    268263 
    269264    # Check if the compilation of LMDZ was previsouly interupted prematured.  
     
    279274        rm -f .lock 
    280275    fi 
    281     echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag gcm    >> $outfile  
    282          ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag gcm    >> $outfile 2>&1 
     276    echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile  
     277         ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    283278    # Test if compiling finished 
    284279    if [[ $? != 0 ]] ; then 
     
    288283 
    289284    # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
    290     echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}" 
    291     echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm_3d}"   >> $outfile  
    292  
    293     echo ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag ce0l    >> $outfile  
    294          ./makelmdz_fcm -d ${resol_atm_3d} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_flag ce0l    >> $outfile 2>&1 
     285    echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 
     286    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
     287 
     288    echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile  
     289         ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    295290    # Test if compiling finished 
    296291    if [[ $? != 0 ]] ; then 
     
    301296    # Find executable suffix 
    302297    if [ $parallel == seq ] || [ $parallel == none ] ; then 
    303         suffix=_${resol_atm_3d}_phylmd_seq_orch 
     298        suffix=_${resol_atm}_phylmd_seq_orch.e 
    304299    else 
    305         suffix=_${resol_atm_3d}_phylmd_para_mem_orch 
    306     fi 
    307     echo suffix = $suffix 
     300        suffix=_${resol_atm}_phylmd_para_mem_orch.e 
     301    fi 
     302    echo gcm suffix = $suffix 
    308303     
    309304    # Move executables to modipsl/bin folder 
    310305    echo "Move gcm.e and ce0l executable to modipsl/bin" 
    311     if [ $modipsl/modeles/LMDZ/bin/gcm${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/gcm${suffix}.e $modipsl/bin/gcm_${resol_atm_3d}.e ; fi 
    312     if [ $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e ] ;  then mv $modipsl/modeles/LMDZ/bin/ce0l${suffix}.e $modipsl/bin/ce0l_${resol_atm_3d}.e ; fi 
    313  
    314     # Write .resol file 
    315     cd $submitdir    
    316     resol2D=$( echo ${resol_atm_3d} | awk '-Fx' '{print $1}' )$( echo ${resol_atm_3d} | awk '-Fx' '{print $2}' ) 
    317     echo "noORCAxLMD$resol2D" >.resol 
    318     echo "RESOL_ATM_3D=${resol_atm_3d}" >>.resol 
     306    if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ;  then 
     307        mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 
     308    else 
     309        echo "ERROR gcm${suffix} executable does not exist."  
     310        echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 
     311        exit 
     312    fi 
     313 
     314    if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ;  then 
     315        mv $modipsl/modeles/LMDZ/bin/ce0l${suffix} $modipsl/bin/ce0l_${resol_atm}_${optmode}.e 
     316    else 
     317        echo "ERROR ce0l${suffix} executable does not exist."  
     318        echo "THERE IS A PROBLEM IN LMDZ REGULAR LATLON COMPILATION - STOP" 
     319        exit 
     320    fi 
    319321fi 
    320322 
Note: See TracChangeset for help on using the changeset viewer.