Changeset 1618 for modipsl/trunk/util/ins_job
- Timestamp:
- 12/14/11 17:21:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modipsl/trunk/util/ins_job
r1053 r1618 108 108 j=$(cd ${i%/*};/bin/pwd;) 109 109 n_f=${F_RCI##*/}; 110 print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; 111 112 # Add specific treatment for new type of directory structure 113 if [ ! X$( echo ${j} | grep USER_SPEC ) = X ] ; then 114 echo "USER_SPEC directory exist in path, do not use this config.card" 115 continue 116 fi 117 118 if [ -d ${j}/USER_SPEC ] && [ -d ${j}/GENERAL ] ; then 119 echo "This is new configuration structure" 120 IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices JobName 121 IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices UserSpec 122 echo "JobName=${config_UserChoices_JobName}" 123 if [ X${config_UserChoices_UserSpec} = X ] ; then 124 echo "The variable UserSpec must be added in config.card in section UserChoices" 125 echo "UserSpec gives the directory for the .card configurtaion files for the wanted experiement. For exemple UserSpec=IPSLCM5/historical" 126 echo "UserSpec= $Config_UserChoices_UserSpec " 127 continue 128 else 129 echo "UserSpec= $Config_UserChoices_UserSpec " 130 fi 131 132 if [ -d ${j}/${config_UserChoices_JobName} ] ; then 133 echo "Directory ${j}/${config_UserChoices_JobName} exist already, continue next config.card" 134 continue 135 fi 136 cp -r ${j}/USER_SPEC/${config_UserChoices_UserSpec} ${j}/${config_UserChoices_JobName} 137 cp -r ${j}/GENERAL/* ${j}/${config_UserChoices_JobName}/. 138 cp -f ${j}/${F_CFG} ${j}/${config_UserChoices_JobName}/. 139 j=${j}/${config_UserChoices_JobName} 140 echo new j=$j 141 fi 142 # end specific treatment for new type directory structure 143 110 144 [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; } || \ 111 145 {
Note: See TracChangeset
for help on using the changeset viewer.