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 2815 for branches/2011/dev_r2802_LOCEAN10_agrif_lim/NEMOGCM/CONFIG/makenemo – NEMO

Ignore:
Timestamp:
2011-07-28T19:00:06+02:00 (13 years ago)
Author:
rblod
Message:

branch dev_r2802_LOCEAN10_agrif_lim2: avoid to recompile everything with key_agrif, allow parallel compilation with agrif etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2011/dev_r2802_LOCEAN10_agrif_lim/NEMOGCM/CONFIG/makenemo

    r2731 r2815  
    9090export COMPIL_DIR=${MAIN_DIR}/TOOLS/COMPILE 
    9191export NEMO_DIR=${MAIN_DIR}/NEMO 
    92 export AGRIFUSE=10 
     92export AGRIFUSE="" 
    9393 
    9494declare -a TAB 
     
    269269 
    270270#- We look after agrif 
    271 grep key_agrif ${COMPIL_DIR}/cpp.fcm && export AGRIFUSE=1 && export USEBLD=${USEBLD/xag/} 
     271grep key_agrif ${COMPIL_DIR}/cpp.fcm && export AGRIFUSE="WITH_AGRIF" && export USEBLD=${USEBLD/xag/} 
    272272. ${COMPIL_DIR}/Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 
    273273 
     
    284284if [ "${NBR_PRC}" -gt 0 ]; then 
    285285    cd ${NEMO_TDIR}/${NEW_CONF} || cd - 
    286  
    287 #if AGRIF we do a first preprocessing 
    288     if [ ${#x_c} -eq 0 ]; then 
    289         [ "$AGRIFUSE" == 1 ] && fcm build --ignore-lock -s 2 ${COMPIL_DIR}/$USEBLD 
    290         [ "$AGRIFUSE" == 1 ] && rm -rf  ${NEMO_TDIR}/${NEW_CONF}/BLD/* 
    291     fi 
    292286    fcm build ${x_c} --ignore-lock -v 1 -j ${NBR_PRC} ${COMPIL_DIR}/$USEBLD || cd - 
    293287    [ -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 
Note: See TracChangeset for help on using the changeset viewer.