- Timestamp:
- 2017-02-15T17:24:10+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r7681_rebuild_nemo/NEMOGCM/TOOLS/REBUILD_NEMO/rebuild_nemo
r7683 r7685 18 18 echo " -d deflate_level deflate level for output files (key_netcdf4 only)" 19 19 echo " -n namelist full path to namelist file to be created (otherwise default nam_rebuild+_process_id is used)" 20 echo " -r memory Memory to request on compute node including units (Default = 10Gb)" 20 21 echo 21 22 exit 1 22 23 } 23 24 24 while getopts c:n:t:d: lm opt25 while getopts c:n:t:d:r:lm opt 25 26 do 26 27 case ${opt} in … … 39 40 m) 40 41 NMASK="TRUE" 42 echo "mask" 41 43 ;; 42 44 d) … … 45 47 n) 46 48 nam_rebuild=${OPTARG} 49 ;; 50 r) 51 MEMORY=${OPTARG} 47 52 ;; 48 53 esac … … 62 67 export OMP_NUM_THREADS=${OMP_NUM_THREADS:-1} 63 68 nam_rebuild=${nam_rebuild:-nam_rebuild_$$} 69 MEMORY=${MEMORY:-10Gb} 64 70 65 71 if [[ -n ${DIM1} && -n ${DIM2} ]] ; then … … 96 102 #The process ID is appended to the end of the file name so it is unique 97 103 cat ${script_dir}/BATCH_TEMPLATES/${batch_file} | sed -e"s/NTHREADS/${OMP_NUM_THREADS}/" \ 104 -e"s/MEMORY/${MEMORY}/" \ 98 105 -e"s:INDIR:${script_dir}:" \ 99 106 -e"s/NAMELIST/${nam_rebuild}/" > ${batch_file}_$$.sh
Note: See TracChangeset
for help on using the changeset viewer.