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 240 for trunk/UTIL/fait_config – NEMO

Changeset 240 for trunk/UTIL/fait_config


Ignore:
Timestamp:
2005-03-23T10:29:23+01:00 (19 years ago)
Author:
opalod
Message:

RB+CT : UPDATE174 : adapt fait_config and fait_AA_make to the new names for the directories OPA_SRC, LIM_SRC, TOP_SRC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_config

    r214 r240  
    2121# 3. Run fait_config NAME 
    2222# If there is no directory config/NAME/scripts, and in this no BB_make.ldef,  
    23 # the config/NEMO_ORCA2_LIM directory is copied under NAME 
     23# the config/ORCA2_LIM directory is copied under NAME 
    2424# 
    2525# Example : in order to create a GYRE_TRC configuration : 
    26 # 1. In this script, change LIST to LIST="NEMO_ORCA2_LIM \nGYRE \nGYRE_TRC" 
    27 # 2. In this script, add set -A DIR_GYRE_TRC OCE_SRC ICE_SRC TRC_SRC, take care of the syntax 
     26# 1. In this script, change LIST to LIST="ORCA2_LIM \nGYRE \nGYRE_TRC" 
     27# 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC TOP_SRC, take care of the syntax 
    2828# 3. Run fait_config GYRE_TRC 
    2929 
    30 LIST="NEMO_ORCA2_LIM \nGYRE" 
    31 set -A DIR_NEMO_ORCA2_LIM OCE_SRC ICE_SRC 
    32 set -A DIR_GYRE OCE_SRC ICE_SRC 
     30LIST="ORCA2_LIM \nGYRE" 
     31set -A DIR_ORCA2_LIM OPA_SRC LIM_SRC 
     32set -A DIR_GYRE OPA_SRC LIM_SRC 
    3333 
    3434################################### 
     
    7575done 
    7676 
    77 #- Creating the good links, at first on OCE_TRC --- 
     77#- Creating the good links, at first on OPA_SRC --- 
    7878if [ ${#TAB[*]} -ne 0 ] ; then 
    79     echo " Creating OPA/WORK = ${TAB[*]} for ${m_n}" 
     79    echo " Creating NEMO/WORK = ${TAB[*]} for ${m_n}" 
    8080 
    8181    i=0 
    8282    while [ i -lt $NDIR ] 
    8383    do 
    84    [ ${#TAB[i]} -ne 0 ] && [ "${TAB[i]}" = "OCE_SRC" ] && ln -sf ../OCE_SRC/*.[Ffh]90 . 
    85    [ ${#TAB[i]} -ne 0 ] && [ "${TAB[i]}" = "OCE_SRC" ] && ln -sf ../OCE_SRC/*/*.[Ffh]90 . && break 
     84   [ ${#TAB[i]} -ne 0 ] && [ "${TAB[i]}" = "OPA_SRC" ] && ln -sf ../OPA_SRC/*.[Ffh]90 . 
     85   [ ${#TAB[i]} -ne 0 ] && [ "${TAB[i]}" = "OPA_SRC" ] && ln -sf ../OPA_SRC/*/*.[Ffh]90 . && break 
    8686   let i=$i+1 
    8787    done 
     
    9090    while [ i -lt $NDIR ] 
    9191    do 
    92       if [ "${TAB[i]}" = "ICE_SRC" ]; then 
    93      ln -sf ../ICE_SRC/*.[Ffh]90 .   
     92      if [ "${TAB[i]}" = "LIM_SRC" ]; then 
     93     ln -sf ../LIM_SRC/*.[Ffh]90 .   
    9494       
    95       elif [ "${TAB[i]}" = "TRC_SRC" ]; then 
     95      elif [ "${TAB[i]}" = "TOP_SRC" ]; then 
    9696     \rm trcstp.F90                     
    9797     \rm sms.F90                     
    98      ln -sf ../TRC_SRC/*.[Ffh] .            
    99      ln -sf ../TRC_SRC/*.[Ffh]90 .        
    100      ln -sf ../TRC_SRC/SMS/*.[Ffh] .         
    101      ln -sf ../TRC_SRC/SMS/*.[Ffh]90 .   
    102      ln -sf ../TRC_SRC/TRP/*.[Ffh]90 . 
     98     ln -sf ../TOP_SRC/*.[Ffh] .            
     99     ln -sf ../TOP_SRC/*.[Ffh]90 .        
     100     ln -sf ../TOP_SRC/SMS/*.[Ffh] .         
     101     ln -sf ../TOP_SRC/SMS/*.[Ffh]90 .   
     102     ln -sf ../TOP_SRC/TRP/*.[Ffh]90 . 
    103103       
    104104      elif [ "${TAB[i]}" = "SRC_OFFLINE_TRC" ]; then   
    105      ln -sf ../TRC_SRC/*.[Ffh] . 
    106      ln -sf ../TRC_SRC/SMS/*.[Ffh] . 
     105     ln -sf ../TOP_SRC/*.[Ffh] . 
     106     ln -sf ../TOP_SRC/SMS/*.[Ffh] . 
    107107     ln -sf ../SRC_OFFLINE_TRC/*.[Ffh] . 
    108108      fi 
     
    110110    done 
    111111 
    112     [ ! -d ../../../config/${m_n} ] && \cp -R ../../../config/NEMO_ORCA2_LIM ../../../config/${m_n}  
     112    [ ! -d ../../../config/${m_n} ] && \cp -R ../../../config/ORCA2_LIM ../../../config/${m_n}  
    113113    ln -sf ../../../*/${m_n}/scripts/BB_make AA_make ;  
    114114    ln -sf ../../../*/${m_n}/scripts/BB_make.ldef AA_make.ldef ; 
Note: See TracChangeset for help on using the changeset viewer.