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 4096 – NEMO

Changeset 4096


Ignore:
Timestamp:
2013-10-22T10:00:06+02:00 (11 years ago)
Author:
andrewryan
Message:

Reverse merging makenemo to revert build system to standard NEMO architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/CONFIG/makenemo

    r4093 r4096  
    8282x_h=""; 
    8383x_n=""; 
    84 x_o=false; 
    8584x_r=""; 
    8685x_m=""; 
     
    115114#- 
    116115#- Choice of the options --- 
    117 while getopts :hd:n:r:m:j:e:s:v:t:k:o V 
     116while getopts :hd:n:r:m:j:e:s:v:t:k: V 
    118117do 
    119118    case $V in 
     
    133132        echo " -k 0/1       : used cpp keys check (default = 1 -> check activated)"; 
    134133   echo " -t dir       : temporary directory for compilation" 
    135    echo " -o           : build offline obs_oper executable in addition to NEMO"; 
    136134   echo ""; 
    137135   echo "Example to install a new configuration MY_CONFIG"; 
     
    164162   (r)  x_r=${OPTARG};; 
    165163   (m)  x_m=${OPTARG};; 
    166    (o)  x_o=true;; 
    167164   (j)  x_j=${OPTARG};; 
    168165   (t)  x_t=${OPTARG};; 
     
    226223export NEMO_TDIR=${NEMO_TDIR:-$CONFIG_DIR} 
    227224export NEMO_DIR=${MAIN_DIR}/${x_s} 
    228 OFFLINE_OBSOPER=${x_o} 
    229225 
    230226#- Check if the tool or the compiler exist or list it 
     
    267263fi 
    268264 
    269 #- Offline obs_oper settings 
    270 if [ ${OFFLINE_OBSOPER}  ] ; then 
    271     # Append extra directory to NEMO sub-directory list 
    272     match=0 
    273     for DIR in "${TAB[@]}"; do 
    274         if [[ $DIR == "OOO_SRC" ]] ; then 
    275             match=1 
    276             break 
    277         fi 
    278     done 
    279     if [[ $match == 0 ]]; then 
    280         TAB+=('OOO_SRC') 
    281     fi 
    282  
    283     # Add extra keys to list_add_key 
    284     if ! echo ${list_add_key} | grep -q "key_offobsoper" ; then 
    285         echo "Adding key_offobsoper" 
    286         list_add_key="${list_add_key} key_offobsoper" 
    287     fi 
    288  
    289     if ! echo ${list_add_key} | grep -q "key_diaobs" ; then 
    290         echo "Adding key_diaobs" 
    291         list_add_key="${list_add_key} key_diaobs" 
    292     fi 
    293 fi 
    294  
    295265#- 
    296266#- Save new configuration and directories names --- 
     
    357327. ${COMPIL_DIR}/Fprep_agrif.sh ${NEW_CONF} ${NEMO_TDIR} || exit 
    358328 
    359  
    360 #- Offline obs_oper configuration 
    361 if [ ${OFFLINE_OBSOPER} ] ; then 
    362     if ! grep -q "offline_oper.exe" ${COMPIL_DIR}/${USEBLD} ; then 
    363        sed '/bld::target.*nemo.exe/ s/$/ offline_oper.exe/' ${COMPIL_DIR}/${USEBLD} > ${COMPIL_DIR}/cfg.tmp 
    364        mv ${COMPIL_DIR}/cfg.tmp ${COMPIL_DIR}/${USEBLD} 
    365     fi 
    366 fi 
    367  
    368329#- 
    369330#_ END OF CONFIGURATION PHASE 
     
    390351    [ -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 
    391352 
    392     # Offline obs_oper executable link 
    393     if [ ${OFFLINE_OBSOPER} ] ; then 
    394        [ -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_oper 
    395     fi 
    396  
    397353#add remove for clean option 
    398354    if  [ ${#x_c} -ne 0 ]; then 
Note: See TracChangeset for help on using the changeset viewer.