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 2302 for branches – NEMO

Changeset 2302 for branches


Ignore:
Timestamp:
2010-10-22T14:30:08+02:00 (14 years ago)
Author:
flavoni
Message:

add options: add_key and del_key to makenemo script, see ticket #740

Location:
branches/nemo_v3_3_beta/NEMOGCM
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/CONFIG/makenemo

    r2301 r2302  
    125125           echo "./makenemo clean"; 
    126126                          echo ""; 
     127           echo "Example to add and remove keys "; 
     128           echo "./makenemo add_key \"key_iomput key_mpp_mpi\" del_key \"key_agrif\" "; 
     129                          echo ""; 
    127130                          . ${COMPIL_DIR}/Flist_archfile.sh  ; 
    128131                          echo ""; 
     
    143146shift $(($OPTIND-1)); 
    144147 
    145  
    146148while [ ${#1} -gt 0 ]   # Get clean, clean_config options 
    147149do 
    148150    case "$1" in 
    149151   clean) 
    150          echo "command $1"  
    151152      x_c="--$1" 
    152153         ;; 
    153154   clean_config) 
    154          echo "command $1"  
    155155      . ${COMPIL_DIR}/Fclean_config.sh 
    156156      exit 
     157         ;; 
     158   add_key) 
     159      list_add_key=$2 
     160      export ${list_add_key} 
     161      shift 
     162         ;; 
     163   del_key) 
     164      list_del_key=$2 
     165      export ${list_del_key} 
     166      shift 
    157167         ;; 
    158168   *) 
     
    164174shift 
    165175done 
     176 
    166177 
    167178#- 
     
    234245. ${COMPIL_DIR}/Fmake_bld.sh ${CONFIG_DIR} ${NEW_CONF}  ${NEMO_TDIR} || exit 
    235246 
     247#- At this stage new configuration has been added, 
     248#- We add or remove keys 
     249if [ ${#list_add_key} -ne 0 ] ; then 
     250   . ${COMPIL_DIR}/Fadd_keys.sh ${list_add_key}  
     251fi 
     252 
     253if [ ${#list_del_key} -ne 0 ] ; then 
     254   . ${COMPIL_DIR}/Fdel_keys.sh 
     255fi 
     256 
    236257#- At this stage the configuration has beeen chosen 
    237258#- We look after agrif 
     
    264285   #add remove for clean option 
    265286   if  [ ${#x_c} -ne 0 ]; then 
    266    echo "cleaning ${NEW_CONF} WORK, BLD" 
    267287   rm -rf ${NEMO_TDIR}/${NEW_CONF}/WORK 
    268288   rm -rf ${NEMO_TDIR}/${NEW_CONF}/BLD 
    269289   rm -rf ${NEMO_TDIR}/${NEW_CONF}/EXP00/opa 
    270290   rm -rf ${NEMO_TDIR}/${NEW_CONF}/EXP00/server.exe 
     291   echo "cleaning ${NEW_CONF} WORK, BLD" 
    271292  fi 
    272293       
Note: See TracChangeset for help on using the changeset viewer.