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

Changeset 346 for trunk/UTIL


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

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

Location:
trunk/UTIL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_AA_make

    r309 r346  
    445445echo '  fi ' 
    446446echo '   @check=`grep TOP_SRC .config`              ; \' 
    447 echo '   check2=`grep SRC_OFFLINE_TRC .config`      ; \' 
    448 echo '   if ( [ -n "$$check" ] &&  [ -z "$$check2" ] ) ; then  \' 
     447echo '   if [ -n "$$check" ] ; then  \' 
    449448echo '   echo "   use TOP_SRC files"                ; \' 
    450449echo '      \$(RM) trcstp.F90                      ; \' 
    451450echo '      \$(RM) sms.F90                         ; \' 
    452451echo '      \$(RM) initrc.F90                      ; \' 
    453 echo '      ln -sf ../TOP_SRC/*.[Ffh]            . ; \' 
    454452echo '      ln -sf ../TOP_SRC/*.[Ffh]90          . ; \' 
    455453echo '      ln -sf ../TOP_SRC/SMS/*.[Ffh]        . ; \' 
     
    457455echo '      ln -sf ../TOP_SRC/TRP/*.[Ffh]90      . ; \' 
    458456echo '  fi ' 
    459 echo '   @check=`grep SRC_OFFLINE_TRC .config`      ; \' 
     457echo '   @check=`grep OFF_SRC .config`              ; \' 
    460458echo '   if [ -n "$$check" ] ; then                   \' 
    461 echo '   echo "   use TOP_SRC and SRC_OFFLINE_TRC files"  ; \' 
    462 echo '      ln -sf ../TOP_SRC/*.[Ffh]            . ; \' 
    463 echo '      ln -sf ../TOP_SRC/SMS/*.[Ffh]        . ; \' 
    464 echo '      ln -sf ../SRC_OFFLINE_TRC/*.[Ffh]    . ; \' 
     459echo '   echo "   use OFF_SRC files"                ; \' 
     460echo '      ln -sf ../OFF_SRC/*.[Ffh]90          . ; \' 
     461echo '      ln -sf ../OFF_SRC/*/*.[Ffh]90        . ; \' 
    465462echo '  fi ' 
    466463echo '   @\$(RM) tmplist' 
  • 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.