New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 10244 for NEMO – NEMO

Changeset 10244 for NEMO


Ignore:
Timestamp:
2018-10-26T20:33:49+02:00 (5 years ago)
Author:
mathiot
Message:

add README.rst + add param_XC40_METO + mv MetO hardcoded value into param_XC40_METO + adjust rebuild_nemo script

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  
    1212   echo "  usage: ${0##*/} [-l -p -s -m -n -r -d -x -y -z -t -c] filebase ndomain [rebuild dimensions]" 
    1313   echo 
    14    echo "  flags:    -l                 submit to compute node" 
     14   echo "  flags:    -l arch            submit to compute node" 
    1515   echo "            -p num             use num threads" 
    1616   echo "            -s num             split 4D vars into time slice of size num" 
     
    3030} 
    3131 
    32 while getopts p:s:n:r:d:x:y:z:t:c:lm opt 
     32while getopts l:p:s:n:r:d:x:y:z:t:c:m opt 
    3333do 
    3434  case ${opt} in 
    3535      l)  
    3636         BATCH="yes" 
    37          BATCH_CMD="qsub"  
    38          ARCH="XC40_METO" 
    39          echo "Submitting job to compute node" 
     37         ARCH=${OPTARG} 
    4038      ;; 
    4139      p) 
     
    4745      m)  
    4846         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 "" 
    5050      ;; 
    5151      d) 
     
    142142 
    143143if [[ ${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 
    144154   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 
    145160 
    146161   #Create a modified local copy of the batch submission file 
    147162   #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}/" \ 
    149164      -e"s/MEMORY/${MEMORY}/" \ 
    150165      -e"s:INDIR:${script_dir}:" \ 
     
    153168    
    154169   #Submit the job 
     170   echo "Submitting job to compute node" 
    155171   $BATCH_CMD ${batch_file}_$$.sh 
    156172 
Note: See TracChangeset for help on using the changeset viewer.