Ignore:
Timestamp:
10/05/07 08:51:29 (17 years ago)
Author:
mafoipsl
Message:

JobClass? and JobNumProcTot? are optionnal in config.card.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modipsl/trunk/util/ins_job

    r134 r157  
    113113   \cp ${F_RCI} ${j}; 
    114114  } 
     115 # We keep explicitly JobName because it is not optionnal. 
    115116 IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices JobName 
    116  IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices JobClass 
    117  IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices JobNumProcTot 
     117 # Other options are not always needed 
     118 IGCM_card_DefineArrayFromSection ${j}'/'${F_CFG} UserChoices 
     119 typeset option 
     120 for option in ${config_UserChoices[*]} ; do 
     121     IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices ${option} 
     122 done 
     123 # Default values 
     124 config_UserChoices_JobClass=${config_UserChoices_JobClass:='mono'} 
     125 config_UserChoices_JobNumProcTot=${config_UserChoices_JobNumProcTot=1} 
     126 # File name for Job 
    118127 n_f='Job_'${config_UserChoices_JobName}; 
    119128 [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; } 
Note: See TracChangeset for help on using the changeset viewer.