Changeset 7686 for branches/UKMO/dev_r7681_rebuild_nemo
- Timestamp:
- 2017-02-16T11:10:51+01:00 (6 years ago)
- Location:
- branches/UKMO/dev_r7681_rebuild_nemo/NEMOGCM/TOOLS/REBUILD_NEMO
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r7681_rebuild_nemo/NEMOGCM/TOOLS/REBUILD_NEMO/BATCH_TEMPLATES/rebuild_nemo_batch_XC40_METO
r7685 r7686 11 11 12 12 ulimit -s unlimited 13 ulimit -n NOPEN 13 14 14 15 module load cray-snplauncher -
branches/UKMO/dev_r7681_rebuild_nemo/NEMOGCM/TOOLS/REBUILD_NEMO/rebuild_nemo
r7685 r7686 69 69 MEMORY=${MEMORY:-10Gb} 70 70 71 #Find out the maximum number of files that can be opened and increase if necessary) 72 nopen=$(ulimit -n) 73 if [[ $ndomain -gt $nopen ]] ; then 74 nopen=$((ndomain+2)) 75 fi 76 71 77 if [[ -n ${DIM1} && -n ${DIM2} ]] ; then 72 78 dim_str=" dims '${DIM1}','${DIM2}'" … … 104 110 -e"s/MEMORY/${MEMORY}/" \ 105 111 -e"s:INDIR:${script_dir}:" \ 112 -e"s/NOPEN/${nopen}/" \ 106 113 -e"s/NAMELIST/${nam_rebuild}/" > ${batch_file}_$$.sh 107 114 … … 110 117 111 118 else 119 ulimit -n $nopen 112 120 ${script_dir}/rebuild_nemo.exe $nam_rebuild 113 121 fi
Note: See TracChangeset
for help on using the changeset viewer.