Changeset 8868 for branches/2017/dev_METO_2017/NEMOGCM/CONFIG/makenemo
- Timestamp:
- 2017-12-01T09:43:23+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_METO_2017/NEMOGCM/CONFIG/makenemo
r7756 r8868 63 63 # :: 64 64 # 65 # $ ./makenemo -m ifort_osx - j3 -n ORCA2_LIM 65 # $ ./makenemo -m ifort_osx - j3 -n ORCA2_LIM3_PISCES 66 66 # 67 67 # … … 221 221 *) 222 222 echo " \"$1\" BAD OPTION" 223 exit 223 exit 2 224 224 ;; 225 225 … … 267 267 #- 268 268 #- Choose a default configuration if needed --- 269 #- ORCA2_LIM or last one used ---269 #- ORCA2_LIM3_PISCES or last one used --- 270 270 . ${COMPIL_DIR}/Fcheck_config.sh cfg.txt ${NEW_CONF} || exit 271 271 272 272 if [ ${#NEW_CONF} -eq 0 ] ; then 273 273 if [ ${#NEM_SUBDIR} -eq 0 ] && [ ${#REF_CONF} -eq 0 ] && [ ${#USP_CONF} -eq 0 ] ; then 274 echo "You are installing a new default (ORCA2_LIM ) configuration"274 echo "You are installing a new default (ORCA2_LIM3_PISCES) configuration" 275 275 ind=0 276 276 . ${COMPIL_DIR}/Fread_dir.sh OPA_SRC YES … … 280 280 . ${COMPIL_DIR}/Fread_dir.sh NST_SRC YES 281 281 . ${COMPIL_DIR}/Fread_dir.sh OFF_SRC NO 282 REF_CONF=ORCA2_LIM 282 . ${COMPIL_DIR}/Fread_dir.sh SAO_SRC NO 283 . ${COMPIL_DIR}/Fread_dir.sh SAS_SRC NO 284 REF_CONF=ORCA2_LIM3_PISCES 283 285 elif [ ${#NEM_SUBDIR} -gt 0 ] && [ ${#REF_CONF} -eq 0 ] && [ ${#USP_CONF} -eq 0 ] ; then 284 echo "You are installing a new configuration based on ORCA2_LIM "286 echo "You are installing a new configuration based on ORCA2_LIM3_PISCES" 285 287 TAB=( ${NEM_SUBDIR} ) 286 REF_CONF=ORCA2_LIM 288 REF_CONF=ORCA2_LIM3_PISCES 287 289 elif [ ${#NEM_SUBDIR} -eq 0 ] && [ ${#REF_CONF} -gt 0 ]; then 288 290 echo "You are installing a new configuration based on ${REF_CONF}" … … 320 322 #- Clean links and librairies --- 321 323 #- Creating the good links, at first on OPA_SRC --- 322 . ${COMPIL_DIR}/Fmake_WORK.sh ${x_e} ${NEW_CONF} ${TAB[*]} || exit 323 324 . ${COMPIL_DIR}/Fmake_bld.sh ${CONFIG_DIR} ${NEW_CONF} ${NEMO_TDIR} || exit 324 . ${COMPIL_DIR}/Fmake_WORK.sh ${x_e} ${NEW_CONF} ${TAB[*]} || exit 3 325 326 . ${COMPIL_DIR}/Fmake_bld.sh ${CONFIG_DIR} ${NEW_CONF} ${NEMO_TDIR} || exit 3 325 327 326 328 # build the complete list of the cpp keys of this configuration … … 360 362 #- At this stage cpp keys have been updated. we can check the arch file 361 363 #- When used for the first time, choose a compiler --- 362 . ${COMPIL_DIR}/Fcheck_archfile.sh arch_nemo.fcm cpp.fcm ${CMP_NAM} || exit 364 . ${COMPIL_DIR}/Fcheck_archfile.sh arch_nemo.fcm cpp.fcm ${CMP_NAM} || exit 3 363 365 364 366 #- At this stage the configuration has beeen chosen … … 368 370 #- We look after agrif 369 371 grep key_agrif ${COMPIL_DIR}/cpp.fcm && export AGRIFUSE=1 && export USEBLD=${USEBLD/xag/} 370 . ${COMPIL_DIR}/Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 372 . ${COMPIL_DIR}/Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 3 371 373 372 374 #- … … 383 385 if [ ${#x_c} -eq 0 ]; then 384 386 if [ "$AGRIFUSE" == 1 ]; then 385 fcm build --ignore-lock -j 1 ${COMPIL_DIR}/bld_preproagr.cfg ||{ cd - ; exit ;}387 fcm build --ignore-lock -j 1 ${COMPIL_DIR}/bld_preproagr.cfg ||{ cd - ; exit 1 ;} 386 388 echo "" 387 389 echo "---------------------------------" … … 391 393 fi 392 394 fi 393 fcm build ${x_c} --ignore-lock -v ${x_v} -j ${NBR_PRC} ${COMPIL_DIR}/$USEBLD || cd -395 fcm build ${x_c} --ignore-lock -v ${x_v} -j ${NBR_PRC} ${COMPIL_DIR}/$USEBLD ||{ cd - ; exit 1 ;} 394 396 [ -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 395 397
Note: See TracChangeset
for help on using the changeset viewer.