Ignore:
Timestamp:
2018-09-19T18:27:42+02:00 (3 years ago)
Author:
mathiot
Message:

fix issue with script arguments and number of opened files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/dev_rebuild_nemo_compression/REBUILD_NEMO/rebuild_nemo

    r10131 r10142  
    3030} 
    3131 
    32 while getopts l:p:s:m:n:r:d:x:y:z:t:s opt 
     32while getopts p:s:n:r:d:x:y:z:t:c:lm opt 
    3333do 
    3434  case ${opt} in 
     
    7070         NTCHUNK=${OPTARG} 
    7171      ;; 
    72       s) 
     72      c) 
    7373         CHUNKSIZE=${OPTARG} 
    7474      ;; 
     
    9494nopen=$(ulimit -n) 
    9595if [[ $ndomain -gt $nopen ]] ; then 
    96   nopen=$((ndomain+2)) 
     96  nopen=$((ndomain+4))   # +2 failed !!! 
    9797fi 
    9898 
Note: See TracChangeset for help on using the changeset viewer.