Changeset 4616


Ignore:
Timestamp:
07/15/19 16:23:14 (5 years ago)
Author:
acosce
Message:

add ResolOce? in config.card - add possibility to opa9.driver to calculate RESOL_OCE with ResolOce? or .resol
add variable RESOL_ATM in lmdz.driver

Location:
CONFIG/UNIFORM/v6/IPSLCM6.2
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/pdControl_TEST/config.card

    r4615 r4616  
    4141#   This variable is used in the executable name  
    4242ResolAtm=144x142x79 
     43ResolOce=ORCA1 
    4344#============================ 
    4445# OptMode indicates the optimization mode choosen during compilation 
  • CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLCM/piControl_TEST/config.card

    r4615 r4616  
    4141#   This variable is used in the executable name  
    4242ResolAtm=144x142x79 
     43ResolOce=ORCA1 
    4344#============================ 
    4445# OptMode indicates the optimization mode choosen during compilation 
  • CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/IPSLESM/CO2/piControl_TEST/config.card

    r4615 r4616  
    4343#   This variable is used in the executable name  
    4444ResolAtm=144x142x79 
     45ResolOce=ORCA1 
    4546#============================ 
    4647# OptMode indicates the optimization mode choosen during compilation 
  • CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZOR/amip/config.card

    r4615 r4616  
    3636#   This variable is used in the executable name  
    3737ResolAtm=144x142x79 
     38ResolOce=ORCA1 
    3839#============================ 
    3940# OptMode indicates the optimization mode choosen during compilation 
  • CONFIG/UNIFORM/v6/IPSLCM6.2/EXPERIMENTS/LMDZOR/clim_pdControl/config.card

    r4615 r4616  
    3636#   This variable is used in the executable name  
    3737ResolAtm=144x142x79 
     38ResolOce=ORCA1 
    3839#============================ 
    3940# OptMode indicates the optimization mode choosen during compilation 
  • CONFIG/UNIFORM/v6/IPSLCM6.2/GENERAL/DRIVER/lmdz.driver

    r4615 r4616  
    2323    RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 
    2424    RESOL_ATM_XY="${RESOL_ATM_X}x${RESOL_ATM_Y}" 
     25    RESOL_ATM=LMD${RESOL_ATM_X}${RESOL_ATM_Y} 
    2526 
    2627    ##- LMDZ physics version 
  • CONFIG/UNIFORM/v6/IPSLCM6.2/GENERAL/DRIVER/opa9.driver

    r4480 r4616  
    77    JOB_NAME=${config_UserChoices_JobName} 
    88 
    9     RESOL_OCE_ICE=$( echo ${RESOL} | awk "-Fx" '{print $1}' ) 
    10     case ${RESOL_OCE_ICE} in 
    11         ( *LIM2* ) SEAICE_MODEL=LIM2 ;  LIM_VERSION=2 ;; 
    12         ( *LIM3* ) SEAICE_MODEL=LIM3 ;  LIM_VERSION=3 ;; 
    13         ( *CICE* ) SEAICE_MODEL=CICE                  ;; 
    14         ( *      ) SEAICE_MODEL=UNKNOWN               ;; 
    15     esac 
    16     RESOL_OCE=$( echo ${RESOL_OCE_ICE} | sed "s/${SEAICE_MODEL}//" ) 
    17  
    18     IGCM_debug_Print 1 "RESOL          : ${RESOL}" 
    19     IGCM_debug_Print 1 "RESOL_OCE_ICE  : ${RESOL_OCE_ICE}" 
    20     IGCM_debug_Print 1 "SEAICE_MODEL   : ${SEAICE_MODEL}" 
    21     IGCM_debug_Print 1 "LIM_VERSION    : ${LIM_VERSION}" 
    22     IGCM_debug_Print 1 "RESOL_OCE      : ${RESOL_OCE}" 
     9    if [ X$ResolOce != X ]; then  
     10        #ResolOce is set in config.card  
     11        RESOL_OCE=${ResolOce} 
     12        IGCM_debug_Print 1 "RESOL_OCE      : ${RESOL_OCE}" 
     13 
     14    elif [ -f ${SUBMIT_DIR}/../.resol ] ; then 
     15        RESOL_OCE_ICE=$( echo ${RESOL} | awk "-Fx" '{print $1}' ) 
     16        case ${RESOL_OCE_ICE} in 
     17            ( *LIM2* ) SEAICE_MODEL=LIM2 ;      LIM_VERSION=2 ;; 
     18            ( *LIM3* ) SEAICE_MODEL=LIM3 ;      LIM_VERSION=3 ;; 
     19            ( *CICE* ) SEAICE_MODEL=CICE                  ;; 
     20            ( *      ) SEAICE_MODEL=UNKNOWN               ;; 
     21        esac 
     22        RESOL_OCE=$( echo ${RESOL_OCE_ICE} | sed "s/${SEAICE_MODEL}//" ) 
     23        IGCM_debug_Print 1 "RESOL_OCE_ICE  : ${RESOL_OCE_ICE}" 
     24        IGCM_debug_Print 1 "RESOL          : ${RESOL}" 
     25        IGCM_debug_Print 1 "SEAICE_MODEL   : ${SEAICE_MODEL}" 
     26        IGCM_debug_Print 1 "LIM_VERSION    : ${LIM_VERSION}" 
     27        IGCM_debug_Print 1 "RESOL_OCE      : ${RESOL_OCE}" 
     28    else 
     29        IGCM_debug_Exit "ResolAtm is not set in config.card and the .resol file does not exist." 
     30        IGCM_debug_Verif_Exit 
     31    fi 
    2332 
    2433    # Local function to find namelists parameters 
Note: See TracChangeset for help on using the changeset viewer.