- Timestamp:
- 2018-09-14T15:58:40+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/UKMO/dev_rebuild_nemo_compression/REBUILD_NEMO/rebuild_nemo
r9048 r10131 10 10 echo " ************" 11 11 echo 12 echo " usage: ${0##*/} [-l - t -c -m -n] filebase ndomain [rebuild dimensions]"12 echo " usage: ${0##*/} [-l -p -s -m -n -r -d -x -y -z -t -s] filebase ndomain [rebuild dimensions]" 13 13 echo 14 14 echo " flags: -l submit to compute node" 15 echo " - tnum use num threads"16 echo " - c num split 4D vars into time chuncksof size num"15 echo " -p num use num threads" 16 echo " -s num split 4D vars into time slice of size num" 17 17 echo " -m force masking of global arrays (zero if no mdi)" 18 echo " -d deflate_level deflate level for output files (key_netcdf4 only)"19 18 echo " -n namelist full path to namelist file to be created (otherwise default nam_rebuild+_process_id is used)" 20 19 echo " -r memory Memory to request on compute node including units (Default = 10Gb)" 20 echo "" 21 echo " key_netcdf4 only " 22 echo " -d deflate_level deflate level for output files" 23 echo " -x chunsize along x " 24 echo " -y chunsize along y " 25 echo " -z chunsize along z " 26 echo " -t chunsize along t " 27 echo " -s chunsize " 21 28 echo 22 29 exit 1 23 30 } 24 31 25 while getopts c:n:t:d:r:lmopt32 while getopts l:p:s:m:n:r:d:x:y:z:t:s opt 26 33 do 27 34 case ${opt} in … … 32 39 echo "Submitting job to compute node" 33 40 ;; 34 t)41 p) 35 42 OMP_NUM_THREADS=${OPTARG} 36 43 ;; 37 c)38 N CHUNKSIZE=${OPTARG}44 s) 45 NSLICESIZE=${OPTARG} 39 46 ;; 40 47 m) … … 50 57 r) 51 58 MEMORY=${OPTARG} 59 ;; 60 x) 61 NXCHUNK=${OPTARG} 62 ;; 63 y) 64 NYCHUNK=${OPTARG} 65 ;; 66 z) 67 NZCHUNK=${OPTARG} 68 ;; 69 t) 70 NTCHUNK=${OPTARG} 71 ;; 72 s) 73 CHUNKSIZE=${OPTARG} 52 74 ;; 53 75 esac … … 90 112 echo ${dims} >> $nam_rebuild 91 113 fi 92 if [[ -n ${NC HUNKSIZE} ]] ; then93 echo " n chunksize=${NCHUNKSIZE}" >> $nam_rebuild114 if [[ -n ${NCSLICESIZE} ]] ; then 115 echo " nslicesize=${NCSLICESIZE}" >> $nam_rebuild 94 116 fi 95 117 if [[ -n ${NMASK} ]] ; then … … 99 121 echo " deflate_level=${DEFLATE}" >> $nam_rebuild 100 122 fi 123 if [[ -n ${NXCHUNK} ]] ; then 124 echo " nc4_xchunk=${NXCHUNK}" >> $nam_rebuild 125 fi 126 if [[ -n ${NYCHUNK} ]] ; then 127 echo " nc4_ychunk=${NYCHUNK}" >> $nam_rebuild 128 fi 129 if [[ -n ${NZCHUNK} ]] ; then 130 echo " nc4_zchunk=${NZCHUNK}" >> $nam_rebuild 131 fi 132 if [[ -n ${NTCHUNK} ]] ; then 133 echo " nc4_tchunk=${NTCHUNK}" >> $nam_rebuild 134 fi 135 if [[ -n ${CHUNKSIZE} ]] ; then 136 echo " fchunksize=${CHUNKSIZE}" >> $nam_rebuild 137 fi 138 139 101 140 102 141 echo "/" >> $nam_rebuild
Note: See TracChangeset
for help on using the changeset viewer.