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

Changeset 2318


Ignore:
Timestamp:
2010-10-27T15:16:55+02:00 (13 years ago)
Author:
flavoni
Message:

change script to add and remove keys for new configurations and old ones

Location:
branches/nemo_v3_3_beta/NEMOGCM
Files:
3 edited

Legend:

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

    r2302 r2318  
    125125           echo "./makenemo clean"; 
    126126                          echo ""; 
    127            echo "Example to add and remove keys "; 
     127           echo "Example to add and remove keys"; 
    128128           echo "./makenemo add_key \"key_iomput key_mpp_mpi\" del_key \"key_agrif\" "; 
     129                          echo ""; 
     130           echo "Example to add and remove keys for a new configuration, and do not compile"; 
     131           echo "./makenemo -n MY_CONFIG -j0 add_key \"key_iomput key_mpp_mpi\" del_key \"key_agrif\" "; 
    129132                          echo ""; 
    130133                          . ${COMPIL_DIR}/Flist_archfile.sh  ; 
     
    248251#- We add or remove keys 
    249252if [ ${#list_add_key} -ne 0 ] ; then 
    250    . ${COMPIL_DIR}/Fadd_keys.sh ${list_add_key}  
     253   . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key}  
    251254fi 
    252255 
    253256if [ ${#list_del_key} -ne 0 ] ; then 
    254    . ${COMPIL_DIR}/Fdel_keys.sh 
     257   . ${COMPIL_DIR}/Fdel_keys.sh ${NEW_CONF} del_key ${list_del_key} 
    255258fi 
    256259 
  • branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/Fadd_keys.sh

    r2306 r2318  
    2626# :: 
    2727# 
    28 #  $ Fadd_keys.sh "LIST_KEYS" 
     28#  $ Fadd_keys.sh CONFIG_NAME add_key "LIST_KEYS" 
    2929# 
    3030# 
     
    4141# :: 
    4242# 
    43 #  $ ./Fadd_keys.sh 
     43#  $ ./Fadd_keys.sh CONFIG_NAME add_key "LIST_KEYS" 
    4444# 
    4545# 
     
    6060# 
    6161#- 
    62  NEW_CONF=${x_n} 
    6362 echo "Adding keys in : ${NEW_CONF}"  
    6463 for i in ${list_add_key} ; do 
  • branches/nemo_v3_3_beta/NEMOGCM/TOOLS/COMPILE/Fdel_keys.sh

    r2302 r2318  
    2626# :: 
    2727# 
    28 #  $ Fdel_keys.sh "LIST_KEYS" 
     28#  $ Fdel_keys.sh CONFIG_NAME del_key "LIST_KEYS" 
    2929# 
    3030# 
     
    4141# :: 
    4242# 
    43 #  $ ./Fdel_keys.sh 
     43#  $ ./Fdel_keys.sh CONFIG_NAME del_key "LIST_KEYS" 
    4444# 
    4545# 
     
    6060# 
    6161#- 
    62  NEW_CONF=${x_n} 
    6362 echo "Removing keys in : ${NEW_CONF}"  
    6463 sed -e "s/${list_del_key}//"  ${CONFIG_DIR}/${NEW_CONF}/cpp_${NEW_CONF}.fcm >  ${CONFIG_DIR}/${NEW_CONF}/cpp_${NEW_CONF}.fcm.tmp 
Note: See TracChangeset for help on using the changeset viewer.