Changeset 7633
- Timestamp:
- 2017-02-03T13:06:21+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_merge_2016/NEMOGCM/CONFIG/makenemo
r7421 r7633 90 90 x_r=""; 91 91 x_u=""; 92 x_a=""; 92 93 x_m=""; 93 94 x_t=""; … … 123 124 #- 124 125 #- Choice of the options --- 125 while getopts :hd:n:r:u: m:j:e:s:v:t:k: V126 while getopts :hd:n:r:u:a:m:j:e:s:v:t:k: V 126 127 do 127 128 case $V in … … 142 143 echo " -k 0/1 : used cpp keys check (default = 1 -> check activated)"; 143 144 echo " -t dir : temporary directory for compilation" 145 echo " -a dir : alternative sub-directory for configurations (below CONFIG)" 144 146 echo ""; 145 147 echo "Example to install a new configuration MY_CONFIG"; … … 149 151 echo "Available configurations :"; cat ${CONFIG_DIR}/cfg.txt; 150 152 echo ""; 151 echo "Available unsupported (external) configurations :"; cat ${CONFIG_DIR}/uspcfg.txt; 153 echo "Available unsupported (external) configurations :"; 154 if [ -f ${CONFIG_DIR}/uspcfg.txt ] ; then cat ${CONFIG_DIR}/uspcfg.txt; fi; 152 155 echo ""; 153 156 echo "Example to install an unsupoorted configuration MY_USP"; … … 177 180 (r) x_r=${OPTARG};; 178 181 (u) x_u=${OPTARG};; 182 (a) x_a=${OPTARG};; 179 183 (m) x_m=${OPTARG};; 180 184 (j) x_j=${OPTARG};; … … 226 230 227 231 #- 228 #- Go to NEMOGCM/ configdirectory ---232 #- Go to NEMOGCM/CONFIG directory --- 229 233 cd ${CONFIG_DIR} 230 234 231 235 #- 232 236 #- Initialisation from input --- 237 export ALT_DIR=${x_a} 238 if [ ! -z $ALT_DIR ]; then 239 if [ -d ${CONFIG_DIR}/${ALT_DIR} ]; then 240 export CONFIG_DIR=${CONFIG_DIR}/${ALT_DIR} 241 #- 242 #- Go to named subdirectory of the NEMOGCM/CONFIG directory --- 243 cd ${CONFIG_DIR} 244 fi 245 fi 233 246 export NEW_CONF=${x_n} 234 247 NBR_PRC=${x_j} … … 247 260 echo 248 261 echo "Available unsupported (external) configurations :" 249 cat ${CONFIG_DIR}/uspcfg.txt262 if [ -f ${CONFIG_DIR}/uspcfg.txt ] ; then cat ${CONFIG_DIR}/uspcfg.txt; fi; 250 263 exit 251 264 fi
Note: See TracChangeset
for help on using the changeset viewer.