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

Changeset 346 for trunk/UTIL/fait_config


Ignore:
Timestamp:
2005-11-16T17:31:52+01:00 (19 years ago)
Author:
opalod
Message:

nemo_v1_compil_008:RB: update fait_AA_make and fait_config to be used with offline tracers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_config

    r277 r346  
    44# Contact : opatlod@lodyc.jussieu.fr 
    55# 
    6 # This script aims to create the OPA/WORK directory 
     6# This script aims to create the OPA/WORK directory  
     7# with links to target directories for the sources 
    78# and to link in the WORK the BB_make and BB_make.ldef  
    89# associated  to a chosen configuration 
     
    2324# the config/ORCA2_LIM directory is copied under NAME 
    2425# 
    25 # Example : in order to create a GYRE_TRC configuration : 
     26# Example 1 : in order to create a GYRE_TRC configuration : 
    2627# 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 
     28# 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC TOP_SRC C1D_SRC, take care of the syntax 
    2829# 3. Run fait_config GYRE_TRC 
     30# Example 2 : in order to create an OFFLINE_TRC configuration : 
     31# 1. In this script, change LIST to LIST="ORCA2_LIM \nGYRE \nOFFLINE_TRC" 
     32# 2. In this script, add set -A DIR_OFFLINE_TRC OFF_SRC TOP_SRC, take care of the syntax 
     33# 3. Run fait_config OFFLINE_TRC 
    2934 
    3035LIST="ORCA2_LIM \nGYRE" 
     
    97102       
    98103      elif [ "${TAB[i]}" = "TOP_SRC" ]; then 
    99      \rm trcstp.F90                     
    100      \rm sms.F90                     
    101      \rm initrc.F90                     
    102      ln -sf ../TOP_SRC/*.[Ffh] .            
     104     [ -f  trcstp.F90 ] && \rm trcstp.F90                     
     105     [ -f  sms.F90 ] && \rm sms.F90                     
     106     [ -f  initrc.F90 ] && \rm initrc.F90                     
    103107     ln -sf ../TOP_SRC/*.[Ffh]90 .        
    104108     ln -sf ../TOP_SRC/SMS/*.[Ffh] .         
     
    106110     ln -sf ../TOP_SRC/TRP/*.[Ffh]90 . 
    107111       
    108       elif [ "${TAB[i]}" = "SRC_OFFLINE_TRC" ]; then   
    109      ln -sf ../TOP_SRC/*.[Ffh] . 
    110      ln -sf ../TOP_SRC/SMS/*.[Ffh] . 
    111      ln -sf ../SRC_OFFLINE_TRC/*.[Ffh] . 
     112      elif [ "${TAB[i]}" = "OFF_SRC" ]; then   
     113     ln -sf ../OFF_SRC/*.[Ffh]90 . 
     114     ln -sf ../OFF_SRC/*/*.[Ffh]90 . 
    112115      fi 
    113116      let i=$i+1 
Note: See TracChangeset for help on using the changeset viewer.