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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.