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

Changeset 3611


Ignore:
Timestamp:
2012-11-20T10:08:51+01:00 (11 years ago)
Author:
pabouttier
Message:

Add TAM code and ORCA2_TAM configuration - see Ticket #1007

Location:
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM
Files:
91 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/CONFIG/cfg.txt

    r3549 r3611  
     1ORCA2_TAM OPA_SRC OPATAM_SRC 
    12GYRE OPA_SRC 
    23GYRE_LOBSTER OPA_SRC TOP_SRC 
  • branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/CONFIG/makenemo

    r3294 r3611  
    22#set -x 
    33set -o posix 
    4 #set -u  
     4#set -u 
    55#set -e 
    66#+ 
     
    2929# 
    3030# - to choose MYCONFIG 
    31 # - to choose compiler options   
     31# - to choose compiler options 
    3232# - to create the CONFIG/MYCONFIG/WORK directory 
    3333# - to compile this configuration 
     
    3838# 
    3939# - NEW_CONF    : configuration to be created 
    40 # - REF_CONF    : reference configuration to build the new one  
    41 # - CMP_NAM     : compiler name  
    42 # - NBR_PRC     : number of processes used to compile   
     40# - REF_CONF    : reference configuration to build the new one 
     41# - CMP_NAM     : compiler name 
     42# - NBR_PRC     : number of processes used to compile 
    4343# - NEM_SUBDIR  : NEMO subdirectory used (specified) 
    4444# 
    4545#  Locally defined : 
    4646# 
    47 # - TAB         : NEMO subdirectory used (read)   
     47# - TAB         : NEMO subdirectory used (read) 
    4848# - MAIN_DIR    : self explaining 
    49 # - CONFIG_DIR  :   "    "    "    
    50 # - MODELES_DIR :   "    "    "  
    51 # - TOOLS_DIR   :   "    "    "  
     49# - CONFIG_DIR  :   "    "    " 
     50# - MODELES_DIR :   "    "    " 
     51# - TOOLS_DIR   :   "    "    " 
    5252# - NEMO_DIR    :   "    "    " 
    5353# 
     
    134134   echo "makenemo -n MY_CONFIG -d \"OPA_SRC LIM_SRC_2\""; 
    135135   echo ""; 
    136    echo "Available configurations :"; cat ${CONFIG_DIR}/cfg.txt;  
     136   echo "Available configurations :"; cat ${CONFIG_DIR}/cfg.txt; 
    137137   echo ""; 
    138138   echo "Example to remove bad configuration "; 
     
    190190       ;; 
    191191   *) 
    192        echo " \"$1\" BAD OPTION"  
     192       echo " \"$1\" BAD OPTION" 
    193193       exit 
    194194       ;; 
    195     
     195 
    196196    esac 
    197197    shift 
     
    216216#- Check if the tool or the compiler exist or list it 
    217217if [ "${NEW_CONF}" == help ] ; then 
    218     echo "Available configurations :"  
     218    echo "Available configurations :" 
    219219    cat ${CONFIG_DIR}/cfg.txt 
    220220    exit 
     
    228228#- Choose a default configuration if needed --- 
    229229#- ORCA2_LIM or last one used --- 
    230 . ${COMPIL_DIR}/Fcheck_config.sh cfg.txt ${NEW_CONF} || exit  
     230. ${COMPIL_DIR}/Fcheck_config.sh cfg.txt ${NEW_CONF} || exit 
    231231 
    232232 
     
    235235   echo "You are  installing a new configuration" 
    236236   ind=0 
    237    . ${COMPIL_DIR}/Fread_dir.sh OPA_SRC    YES  
    238    . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_2   YES  
    239    . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_3   NO   
    240    . ${COMPIL_DIR}/Fread_dir.sh TOP_SRC    NO   
    241    . ${COMPIL_DIR}/Fread_dir.sh NST_SRC    YES  
    242    . ${COMPIL_DIR}/Fread_dir.sh OFF_SRC    NO   
     237   . ${COMPIL_DIR}/Fread_dir.sh OPA_SRC    YES 
     238   . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_2   YES 
     239   . ${COMPIL_DIR}/Fread_dir.sh LIM_SRC_3   NO 
     240   . ${COMPIL_DIR}/Fread_dir.sh TOP_SRC    NO 
     241   . ${COMPIL_DIR}/Fread_dir.sh NST_SRC    YES 
     242   . ${COMPIL_DIR}/Fread_dir.sh OFF_SRC    NO 
     243   . ${COMPIL_DIR}/Fread_dir.sh OPATAM_SRC    NO 
    243244   REF_CONF=ORCA2_LIM 
    244245    elif [ ${#NEM_SUBDIR} -gt 0 ] && [ ${#REF_CONF} -eq 0 ]; then 
     
    248249    elif [ ${#NEM_SUBDIR} -eq 0 ] && [ ${#REF_CONF} -gt 0 ]; then 
    249250   echo "You are  installing a new configuration based on ${REF_CONF}" 
    250    . ${COMPIL_DIR}/Fcopy_dir.sh ${REF_CONF}   
     251   . ${COMPIL_DIR}/Fcopy_dir.sh ${REF_CONF} 
    251252    fi 
    252253    NEW_CONF=${x_n} 
     
    272273#- We add or remove keys 
    273274if [ ${#list_add_key} -ne 0 ] ; then 
    274     . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key}  
     275    . ${COMPIL_DIR}/Fadd_keys.sh ${NEW_CONF} add_key ${list_add_key} 
    275276fi 
    276277 
     
    289290#- and test whether we need to build the ioserver 
    290291grep key_iomput ${COMPIL_DIR}/cpp.fcm && export USEBLD=${USEBLD/xio/} 
     292grep key_tam ${COMPIL_DIR}/cpp.fcm && export USEBLD=${USEBLD/xioxag/tam} 
    291293 
    292294#- 
Note: See TracChangeset for help on using the changeset viewer.