Changeset 4096
- Timestamp:
- 2013-10-22T10:00:06+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/CONFIG/makenemo
r4093 r4096 82 82 x_h=""; 83 83 x_n=""; 84 x_o=false;85 84 x_r=""; 86 85 x_m=""; … … 115 114 #- 116 115 #- Choice of the options --- 117 while getopts :hd:n:r:m:j:e:s:v:t:k: oV116 while getopts :hd:n:r:m:j:e:s:v:t:k: V 118 117 do 119 118 case $V in … … 133 132 echo " -k 0/1 : used cpp keys check (default = 1 -> check activated)"; 134 133 echo " -t dir : temporary directory for compilation" 135 echo " -o : build offline obs_oper executable in addition to NEMO";136 134 echo ""; 137 135 echo "Example to install a new configuration MY_CONFIG"; … … 164 162 (r) x_r=${OPTARG};; 165 163 (m) x_m=${OPTARG};; 166 (o) x_o=true;;167 164 (j) x_j=${OPTARG};; 168 165 (t) x_t=${OPTARG};; … … 226 223 export NEMO_TDIR=${NEMO_TDIR:-$CONFIG_DIR} 227 224 export NEMO_DIR=${MAIN_DIR}/${x_s} 228 OFFLINE_OBSOPER=${x_o}229 225 230 226 #- Check if the tool or the compiler exist or list it … … 267 263 fi 268 264 269 #- Offline obs_oper settings270 if [ ${OFFLINE_OBSOPER} ] ; then271 # Append extra directory to NEMO sub-directory list272 match=0273 for DIR in "${TAB[@]}"; do274 if [[ $DIR == "OOO_SRC" ]] ; then275 match=1276 break277 fi278 done279 if [[ $match == 0 ]]; then280 TAB+=('OOO_SRC')281 fi282 283 # Add extra keys to list_add_key284 if ! echo ${list_add_key} | grep -q "key_offobsoper" ; then285 echo "Adding key_offobsoper"286 list_add_key="${list_add_key} key_offobsoper"287 fi288 289 if ! echo ${list_add_key} | grep -q "key_diaobs" ; then290 echo "Adding key_diaobs"291 list_add_key="${list_add_key} key_diaobs"292 fi293 fi294 295 265 #- 296 266 #- Save new configuration and directories names --- … … 357 327 . ${COMPIL_DIR}/Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 358 328 359 360 #- Offline obs_oper configuration361 if [ ${OFFLINE_OBSOPER} ] ; then362 if ! grep -q "offline_oper.exe" ${COMPIL_DIR}/${USEBLD} ; then363 sed '/bld::target.*nemo.exe/ s/$/ offline_oper.exe/' ${COMPIL_DIR}/${USEBLD} > ${COMPIL_DIR}/cfg.tmp364 mv ${COMPIL_DIR}/cfg.tmp ${COMPIL_DIR}/${USEBLD}365 fi366 fi367 368 329 #- 369 330 #_ END OF CONFIGURATION PHASE … … 390 351 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/nemo.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/nemo.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/opa 391 352 392 # Offline obs_oper executable link393 if [ ${OFFLINE_OBSOPER} ] ; then394 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/offline_oper.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/offline_oper.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/obs_oper395 fi396 397 353 #add remove for clean option 398 354 if [ ${#x_c} -ne 0 ]; then
Note: See TracChangeset
for help on using the changeset viewer.