Ignore:
Timestamp:
06/21/12 14:23:01 (10 years ago)
Author:
jgipsl
Message:

Protect reading of variable CREATE if it is not set in lmdz.card. The variable CREATE is only set in lmdz.card for some configurations (LMDOR). This variable is only used to point to input files in lmdz.card.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v5/LMDZOR_v5/GENERAL/DRIVER/lmdz.driver

    r1780 r1782  
    6262 
    6363    ##- Create_etat0_limit version 
    64     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices CREATE 
    65     CREATE=${lmdz_UserChoices_CREATE} 
    66     echo create_etat0_limit version : ${CREATE} 
     64    ##  Define variable CREATE only if it is set in lmdz.card section UserChoices. 
     65    ##  This variable is only used in lmdz.card to choose input files. 
     66    if [ ! X${lmdz_UserChoices_CREATE} = X ] ; then 
     67        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices CREATE 
     68        CREATE=${lmdz_UserChoices_CREATE} 
     69        echo create_etat0_limit version : ${CREATE} 
     70    fi 
     71 
    6772 
    6873    ## - LMDZ choice of config.def file 
Note: See TracChangeset for help on using the changeset viewer.