Changeset 7646 for trunk/NEMOGCM/CONFIG/makenemo
- Timestamp:
- 2017-02-06T10:25:03+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/CONFIG/makenemo
r5144 r7646 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; 155 echo ""; 156 echo "Example to install an unsupoorted configuration MY_USP"; 157 echo "makenemo -n MY_USP -u MY_USP" ; 152 158 echo ""; 153 159 echo "Example to remove bad configuration "; … … 174 180 (r) x_r=${OPTARG};; 175 181 (u) x_u=${OPTARG};; 182 (a) x_a=${OPTARG};; 176 183 (m) x_m=${OPTARG};; 177 184 (j) x_j=${OPTARG};; … … 223 230 224 231 #- 225 #- Go to NEMOGCM/ configdirectory ---232 #- Go to NEMOGCM/CONFIG directory --- 226 233 cd ${CONFIG_DIR} 227 234 228 235 #- 229 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 230 246 export NEW_CONF=${x_n} 231 247 NBR_PRC=${x_j} … … 244 260 echo 245 261 echo "Available unsupported (external) configurations :" 246 cat ${CONFIG_DIR}/uspcfg.txt262 if [ -f ${CONFIG_DIR}/uspcfg.txt ] ; then cat ${CONFIG_DIR}/uspcfg.txt; fi; 247 263 exit 248 264 fi
Note: See TracChangeset
for help on using the changeset viewer.