Changeset 4463


Ignore:
Timestamp:
06/17/19 18:31:25 (5 years ago)
Author:
jgipsl
Message:

Set ResolAtm? and OptMode? in config.card. Read resolution from ResolAtm? instead of from .resol.

Location:
CONFIG/UNIFORM/v6/LMDZOR_v6.2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZ/clim_360d/config.card

    r4458 r4463  
    3232#-- Source following file with module settings, only if it exists 
    3333EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     34#============================ 
     35#-- ResolAtm indicates the atmospheric resolution 
     36#   This variable is used in the executable name  
     37ResolAtm=144x142x79 
     38#============================ 
     39# OptMode indicates the optimization mode choosen during compilation 
     40# This variable is used in the executable name 
     41OptMode=prod 
    3442 
    3543#======================================================================== 
    3644#D-- ListOfComponents - 
    3745[ListOfComponents] 
    38 #D- For each component, Name of component, Tag of component 
    39 ATM= (lmdz, LMDZ) 
    40 IOS= (xios, XIOS) 
     46#D- For each component: First argument is the executable name as in bin folder. 
     47#D  ResolAtm and OptMode are set in UserChoices section. 
     48#D- Here is set 71MPI*8OMP which is suitable for resolution 144x142x79 
     49#D- Change to 31MPI*4OMP for resolution 96x95x39 
     50ATM= (gcm_${ResolAtm}_${OptMode}.e, lmdz.x, 71MPI, 8OMP) 
     51IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    4152 
    4253#======================================================================== 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZOR/amip/config.card

    r4458 r4463  
    3232#-- Source following file with module settings, only if it exists 
    3333EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     34#============================ 
     35#-- ResolAtm indicates the atmospheric resolution 
     36#   This variable is used in the executable name  
     37ResolAtm=144x142x79 
     38#============================ 
     39# OptMode indicates the optimization mode choosen during compilation 
     40# This variable is used in the executable name 
     41OptMode=prod 
    3442 
    3543#======================================================================== 
     
    4553#D-- Executable - 
    4654[Executable] 
    47 #D- For each component: Real name of executable, Name of executable in the run directory  
    48 #D- Here is set 47MPI*8OMP which is suitable for resolution 144x142x79 
     55#D- For each component: First argument is the executable name as in bin folder. 
     56#D  ResolAtm and OptMode are set in UserChoices section. 
     57#D- Here is set 71MPI*8OMP which is suitable for resolution 144x142x79 
    4958#D- Change to 31MPI*4OMP for resolution 96x95x39 
    50 ATM= (gcm_144x142x79_prod.e, lmdz.x, 71MPI, 8OMP) 
     59ATM= (gcm_${ResolAtm}_${OptMode}.e, lmdz.x, 71MPI, 8OMP) 
    5160SRF= ("", "") 
    5261SBG= ("", "") 
    53 IOS= (xios_server_prod.exe, xios.x, 1MPI) 
     62IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    5463 
    5564#======================================================================== 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/EXPERIMENTS/LMDZOR/clim_pdControl/config.card

    r4458 r4463  
    3232#-- Source following file with module settings, only if it exists 
    3333EnvFile=${SUBMIT_DIR}/../ARCH/arch.env 
     34#============================ 
     35#-- ResolAtm indicates the atmospheric resolution 
     36#   This variable is used in the executable name  
     37ResolAtm=144x142x79 
     38#============================ 
     39# OptMode indicates the optimization mode choosen during compilation 
     40# This variable is used in the executable name 
     41OptMode=prod 
    3442 
    3543#======================================================================== 
     
    4553#D-- Executable - 
    4654[Executable] 
    47 #D- For each component: Real name of executable, Name of executable in the run directory  
    48 #D- Here is set 47MPI*8OMP which is suitable for resolution 144x142x79 
     55#D- For each component: First argument is the executable name as in bin folder. 
     56#D  ResolAtm and OptMode are set in UserChoices section. 
     57#D- Here is set 71MPI*8OMP which is suitable for resolution 144x142x79 
    4958#D- Change to 31MPI*4OMP for resolution 96x95x39 
    50 ATM= (gcm_144x142x79_prod.e, lmdz.x, 71MPI, 8OMP) 
     59ATM= (gcm_${ResolAtm}_${OptMode}.e, lmdz.x, 71MPI, 8OMP) 
    5160SRF= ("", "") 
    5261SBG= ("", "") 
    53 IOS= (xios_server_prod.exe, xios.x, 1MPI) 
     62IOS= (xios_server_${OptMode}.exe, xios.x, 1MPI) 
    5463 
    5564#======================================================================== 
  • CONFIG/UNIFORM/v6/LMDZOR_v6.2/GENERAL/DRIVER/lmdz.driver

    r4431 r4463  
    55    IGCM_debug_PushStack "ATM_Initialize" 
    66 
    7     RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' | awk "-F-" '{print $1}') 
    8  
    9     [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 
     7    # Read the resolution from the variables ResolAtm set in config.card UserChoices section or from .resol file 
     8    if [ X$ResolAtm != X ] ; then 
     9        # ResolAtm is set in config.card 
     10        RESOL_ATM_3D=${ResolAtm} 
     11    elif [ -f ${SUBMIT_DIR}/../.resol ] ; then 
     12        # ResolAtm was not set in config.card, try to read .resol file 
     13        eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x39 
     14    else 
     15        IGCM_debug_Exit "ResolAtm is not set in config.card and the .resol file does not exist." 
     16        IGCM_debug_Verif_Exit 
     17    fi 
     18     
     19    IGCM_debug_Print 1 "The atomsopheric resolution is ${RESOL_ATM_3D} "  
    1020 
    1121    RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' ) 
Note: See TracChangeset for help on using the changeset viewer.