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 3025 for branches/2011/dev_r2802_UKMET3_rebuild/NEMOGCM/TOOLS/REBUILD_NEMO/rebuild_nemo – NEMO

Ignore:
Timestamp:
2011-10-28T17:00:02+02:00 (12 years ago)
Author:
edblockley
Message:

6th commit for rebuild branch; Rewirkign the code to allow time chunk splitting for 4D variables giving the user the option to save memory at the expense of run time. see ticket:#871

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2802_UKMET3_rebuild/NEMOGCM/TOOLS/REBUILD_NEMO/rebuild_nemo

    r2898 r3025  
    1818   echo "  ************" 
    1919   echo 
    20    echo "  usage: ${0##*/} [-t] filebase ndomain [rebuild dimensions]" 
     20   echo "  usage: ${0##*/} [-t -c] filebase ndomain [rebuild dimensions]" 
    2121   echo 
    2222   echo "  flags:  -t num      use num threads" 
     23   echo "          -c num      split 4D vars into time chuncks of size num" 
    2324   echo 
    2425   exit 1 
    2526} 
    2627 
    27 while getopts t: opt 
     28while getopts c:t: opt 
    2829do 
    2930  case ${opt} in 
    3031      t) 
    3132         OMP_NUM_THREADS=${OPTARG} 
     33      ;; 
     34      c) 
     35         NCHUNKSIZE=${OPTARG} 
    3236      ;; 
    3337  esac 
     
    6367   echo ${dims} >> nam_rebuild 
    6468fi 
     69if [[ -n ${NCHUNKSIZE} ]] ; then 
     70   echo " nchunksize=${NCHUNKSIZE}" >> nam_rebuild 
     71fi 
    6572echo "/" >> nam_rebuild 
    6673 
Note: See TracChangeset for help on using the changeset viewer.