Changeset 331 for modipsl


Ignore:
Timestamp:
05/28/08 14:34:29 (17 years ago)
Author:
sdipsl
Message:

Little addon concerning JobName? attribut in config.card

If you have in config.card JobName?=ETAT0_${RESOL} before doing ins_job
then your job name will looks like ETAT0_LMD9671

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/ins_job

    r293 r331  
    114114  } 
    115115 # We keep explicitly JobName because it is not optionnal. 
     116 RESOL=this_is_a_test_string 
    116117 IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices JobName 
     118 if [ ! X$( echo ${config_UserChoices_JobName} | grep ${RESOL} ) = X ] ; then  
     119    TRUERESOL=$( find ../ -name ".resol" -exec cat {} \; ) 
     120    config_UserChoices_JobName=$( echo ${config_UserChoices_JobName} | sed -e "s/${RESOL}/${TRUERESOL}/" ) 
     121    IGCM_card_WriteOption ${j}'/'${F_CFG} UserChoices JobName ${config_UserChoices_JobName} 
     122 fi 
     123  
    117124 # Other options are not always needed 
    118125 IGCM_card_DefineArrayFromSection ${j}'/'${F_CFG} UserChoices 
Note: See TracChangeset for help on using the changeset viewer.