Changeset 2158
- Timestamp:
- 2010-10-05T15:30:03+02:00 (14 years ago)
- Location:
- branches/DEV_r1879_FCM/NEMOGCM
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DEV_r1879_FCM/NEMOGCM/CONFIG/makenemo
r2143 r2158 169 169 #- Choose a default configuration if needed --- 170 170 #- ORCA2_LIM or last one used --- 171 . ${COMPIL_DIR}/Fcheck_config.sh ${NEW_CONF} || exit171 . ${COMPIL_DIR}/Fcheck_config.sh cfg.txt ${NEW_CONF} || exit 172 172 173 173 if [ ${#NEW_CONF} -eq 0 ] ; then … … 223 223 224 224 if [ "${NBR_PRC}" -gt 0 ]; then 225 cd ${NEMO_TDIR}/${NEW_CONF} || cd -226 227 #if AGRIF we do a first preprocessing228 if [ ${#x_c} -eq 0 ]; then229 [ "$AGRIFUSE" == 1 ] && fcm build --ignore-lock -s 2 ${COMPIL_DIR}/bld.cfg230 [ "$AGRIFUSE" == 1 ] && rm -rf ${NEMO_TDIR}/${NEW_CONF}/BLD/*231 fi232 fcm build ${x_c} --ignore-lock -v 1 -j ${NBR_PRC} ${COMPIL_DIR}/bld.cfg || cd -233 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/nemo.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/nemo.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/opa234 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/server.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/server.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/server.exe225 cd ${NEMO_TDIR}/${NEW_CONF} || cd - 226 227 #if AGRIF we do a first preprocessing 228 if [ ${#x_c} -eq 0 ]; then 229 [ "$AGRIFUSE" == 1 ] && fcm build --ignore-lock -s 2 ${COMPIL_DIR}/bld.cfg 230 [ "$AGRIFUSE" == 1 ] && rm -rf ${NEMO_TDIR}/${NEW_CONF}/BLD/* 231 fi 232 fcm build ${x_c} --ignore-lock -v 1 -j ${NBR_PRC} ${COMPIL_DIR}/bld.cfg || cd - 233 [ -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 234 [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/server.exe ] && ln -sf ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/server.exe ${CONFIG_DIR}/${NEW_CONF}/EXP00/server.exe 235 235 fi 236 236 -
branches/DEV_r1879_FCM/NEMOGCM/TOOLS/COMPILE/Fcheck_config.sh
r2143 r2158 26 26 # :: 27 27 # 28 # $ Fcheck_config.sh 28 # $ Fcheck_config.sh FILENAME CONFNAME 29 29 # 30 30 # … … 37 37 # - Two cases 38 38 # - One is explicitely set 39 # - Nothing set, use the previous in use (default ORA2_LIM)39 # - Nothing set, use the previous in use 40 40 # 41 41 # EXAMPLES … … 65 65 66 66 declare -a ZTAB 67 if [ ${# 1} -eq 0 ]; then68 tail -1 ${COMPIL_DIR}/ cfg.txt> ${COMPIL_DIR}/cfg.tmp67 if [ ${#2} -eq 0 ]; then 68 tail -1 ${COMPIL_DIR}/$1 > ${COMPIL_DIR}/cfg.tmp 69 69 read -a ZTAB < ${COMPIL_DIR}/cfg.tmp 70 70 NEW_CONF=${ZTAB[0]} ; TAB=( ${ZTAB[@]:1} ) … … 76 76 echo "Using defaut configuration : ${NEW_CONF}" 77 77 fi 78 cat ${COMPIL_DIR}/cfg.txt | grep "${NEW_CONF} " > ${COMPIL_DIR}/cfg.tmp 79 read -a ZTAB < ${COMPIL_DIR}/cfg.tmp 80 NEW_CONF=${ZTAB[0]} ; TAB=( ${ZTAB[@]:1} ) 81 \rm ${COMPIL_DIR}/cfg.tmp 78 if [ "$1" == cfg.txt ]; then 79 cat ${COMPIL_DIR}/$1 | grep "${NEW_CONF} " > ${COMPIL_DIR}/cfg.tmp 80 read -a ZTAB < ${COMPIL_DIR}/cfg.tmp 81 NEW_CONF=${ZTAB[0]} ; TAB=( ${ZTAB[@]:1} ) 82 \rm ${COMPIL_DIR}/cfg.tmp 83 fi 82 84 83 85 unset -v ZTAB -
branches/DEV_r1879_FCM/NEMOGCM/TOOLS/maketools
r2143 r2158 145 145 . ${COMPIL_DIR}/Fcheck_archfile.sh arch_tools.fcm ${CMP_NAM} || exit 146 146 147 #- Mak the building directory 147 #- Choose a default tool if needed --- 148 #- REBUILD or last one used --- 149 . ${COMPIL_DIR}/Fcheck_config.sh tools.txt ${NEW_CONF} || exit 150 151 #- Save new configuration --- 152 echo "${NEW_CONF} " > ${COMPIL_DIR}/tools.txt 153 154 #- Make the building directory 148 155 . ${COMPIL_DIR}/Fmake_bld.sh ${TOOLS_DIR} ${NEW_CONF} ${NEMO_TDIR} || exit 149 156 … … 159 166 160 167 fcm build ${x_c} --ignore-lock -v 1 -j ${NBR_PRC} ${COMPIL_DIR}/bld_tools.cfg || cd - 168 if [ -f ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/*.exe ]; then 161 169 for i in `ls ${NEMO_TDIR}/${NEW_CONF}/BLD/bin/*.exe` 162 170 do 163 ln -sf ${i} ${TOOLS_DIR}/${NEW_CONF}/.171 ln -sf ${i} ${TOOLS_DIR}/${NEW_CONF}/. 164 172 done 165 173 fi 166 174 fi 167 175 #- 168 176 #- Come back to original directory ---
Note: See TracChangeset
for help on using the changeset viewer.