Changeset 1751
- Timestamp:
- 06/05/12 19:28:16 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modipsl/branches/newconfig/util/ins_job
r1744 r1751 14 14 15 15 Usage : 16 ${b_n} [-h] [-v] 16 ${b_n} [-h] [-v] [-e] 17 17 18 18 Options : 19 19 -h : help 20 20 -v : verbose mode 21 -e : turn on hindcast/forecast ensemble mode 21 22 " 22 23 } … … 35 36 #- 36 37 x_v='silencious'; 37 while getopts :hv V 38 do 39 case $V in 40 (h) ins_job_Usage; exit 0;; 41 (v) x_v='verbose';; 42 (:) echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2; 43 exit 2;; 44 (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2; 45 exit 2;; 46 esac 47 done 38 x_e=false; 39 while getopts :hve V ; do 40 case $V in 41 (h) ins_job_Usage; exit 0;; 42 (v) x_v='verbose';; 43 (e) x_e=true;; 44 (:) echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2; 45 exit 2;; 46 (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2; 47 exit 2;; 48 esac 49 done 48 50 shift $(($OPTIND-1)); 49 51 #- … … 95 97 . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh 96 98 . ${libIGCM}/libIGCM_card/libIGCM_card.ksh 99 . ${libIGCM}/libIGCM_date/libIGCM_date.ksh 100 . ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh 101 . ${libIGCM}/libIGCM_ensemble/libIGCM_ensemble.ksh 97 102 #- 98 103 # Define the pattern string to substitute … … 207 212 done 208 213 #- 214 # Limited to hindcast/forecast Ensemble for the time being 215 if [ ${x_e} = 'true' ] ; then 216 #.. Read input data from ensemble.card .. 217 # TO BE CHANGED 218 FileName="ensemble.card" 219 SUBMIT_DIR=$( pwd ) 220 RUN_DIR="${WORKDIR}/ENSEMBLE" 221 # 222 # Copy initial things around and define variables (hindcast/forecast case) 223 IGCM_ensemble_CastInit 224 # As it says 225 IGCM_sys_Cd ${SUBMIT_DIR} 226 IGCM_ensemble_CastPeriodicStarts 227 # As it says 228 IGCM_sys_Cd ${SUBMIT_DIR} 229 IGCM_ensemble_CastNonPeriodicStarts 230 # Done 231 IGCM_sys_Cp ${RUN_DIR}/CreatedDir.txt ${RUN_DIR}/Qsub.txt ${SUBMIT_DIR} 232 IGCM_sys_Cd ${SUBMIT_DIR} 233 fi 234 #- 209 235 print - ""; 210 236 #-
Note: See TracChangeset
for help on using the changeset viewer.