Changeset 10244
- Timestamp:
- 2018-10-26T20:33:49+02:00 (6 years ago)
- Location:
- NEMO/branches/UKMO/dev_rebuild_nemo_compression/REBUILD_NEMO
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/dev_rebuild_nemo_compression/REBUILD_NEMO/rebuild_nemo
r10220 r10244 12 12 echo " usage: ${0##*/} [-l -p -s -m -n -r -d -x -y -z -t -c] filebase ndomain [rebuild dimensions]" 13 13 echo 14 echo " flags: -l 14 echo " flags: -l arch submit to compute node" 15 15 echo " -p num use num threads" 16 16 echo " -s num split 4D vars into time slice of size num" … … 30 30 } 31 31 32 while getopts p:s:n:r:d:x:y:z:t:c:lm opt32 while getopts l:p:s:n:r:d:x:y:z:t:c:m opt 33 33 do 34 34 case ${opt} in 35 35 l) 36 36 BATCH="yes" 37 BATCH_CMD="qsub" 38 ARCH="XC40_METO" 39 echo "Submitting job to compute node" 37 ARCH=${OPTARG} 40 38 ;; 41 39 p) … … 47 45 m) 48 46 NMASK="TRUE" 49 echo "mask" 47 echo "" 48 echo "output is mask using netcdf missing value (_Fillvalue attribute) or 0 if missing value not in the netcdf." 49 echo "" 50 50 ;; 51 51 d) … … 142 142 143 143 if [[ ${BATCH} == "yes" ]] ; then 144 145 template_dir=${script_dir}/BATCH_TEMPLATES/ 146 archfile=${template_dir}/param_${ARCH} 147 if [ ! -f $archfile ]; then 148 echo "$archfile is missing, stop 42" 149 echo "check your arch name or add one $archfile file in BATCH_TEMPLATES" 150 exit 42 151 fi 152 . $archfile 153 144 154 batch_file=rebuild_nemo_batch_${ARCH} 155 if [ ! -f ${template_dir}/${batch_file} ]; then 156 echo "$batch_file is missing, stop 42" 157 echo "check your arch name or add one $batch_file file in BATCH_TEMPLATES" 158 exit 42 159 fi 145 160 146 161 #Create a modified local copy of the batch submission file 147 162 #The process ID is appended to the end of the file name so it is unique 148 cat ${ script_dir}/BATCH_TEMPLATES/${batch_file} | sed -e"s/NTHREADS/${OMP_NUM_THREADS}/" \163 cat ${template_dir}/${batch_file} | sed -e"s/NTHREADS/${OMP_NUM_THREADS}/" \ 149 164 -e"s/MEMORY/${MEMORY}/" \ 150 165 -e"s:INDIR:${script_dir}:" \ … … 153 168 154 169 #Submit the job 170 echo "Submitting job to compute node" 155 171 $BATCH_CMD ${batch_file}_$$.sh 156 172
Note: See TracChangeset
for help on using the changeset viewer.