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

Changeset 833 for trunk/UTIL


Ignore:
Timestamp:
2008-03-07T14:51:35+01:00 (16 years ago)
Author:
rblod
Message:

Merge branche dev_002_LIM back to trunk ticket #70 and #71

Location:
trunk/UTIL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_AA_make

    r687 r833  
    339339do 
    340340  bn=`basename $i .f` 
    341   if [ "${bn}" != "${MAIN}" ]  
    342   then  
    343   if [ "${bn}" != "agrif2model" ]  
    344   then  
    345341    echo "\\" 
    346342    echo "     \$(MODEL_LIB)($bn.o)\c" 
    347   fi 
    348   fi 
    349343done 
    350344 
     
    390384do 
    391385  bn=`basename $i .F` 
    392   if [ "${bn}" != "${MAIN}" ]  
    393   then  
    394   if [ "${bn}" != "agrif2model" ]  
    395   then  
    396386    echo "\\" 
    397387    echo "     \$(MODEL_LIB)($bn.o)\c" 
    398   fi 
    399   fi 
    400388 done 
    401389 
     
    457445      for fuse0 in `sed -n 's/^[    ]*[uU][sS][eE] [  ]*\([^!,;]*\).*/\1/p' $inc | sort -u` 
    458446      do 
    459            if [ $fuse0 != "ioipsl" ]  
    460                 then 
    461                 if [ $fuse0 != "Agrif_Util" ]  
    462                 then 
    463                 if [ $fuse0 != "Agrif_Types" ]  
    464                 then 
    465                 if [ $fuse0 != "netcdf" ]  
    466                 then 
     447                    [ -f $fuse0.[hfF]90 ] || continue 
    467448          lfuse0=$fuse0.f90 
    468449          [ -f $fuse0.F90 ] && lfuse0=$fuse0.F90 
    469450          luse0="$luse0\n$lfuse0\n\$(MODEL_LIB)($fuse0.o)" 
    470                 fi 
    471                 fi 
    472                 fi 
    473                 fi 
    474451      done 
    475452 
     
    480457          for fuse0 in `sed -n 's/^[   ]*[uU][sS][eE] [  ]*\([^!,;]*\).*/\1/p' $inc2 | sort -u` 
    481458          do 
    482                if [ $fuse0 != "ioipsl" ]  
    483                     then 
    484                     if [ $fuse0 != "Agrif_Util" ]  
    485                     then 
    486                     if [ $fuse0 != "Agrif_Types" ]  
    487                     then 
    488                     if [ $fuse0 != "netcdf" ]  
    489                     then 
     459                        [ -f $fuse0.[hfF]90 ] || continue 
    490460              lfuse0=$fuse0.f90 
    491461              [ -f $fuse0.F90 ] && lfuse0=$fuse0.F90 
    492462              luse0="$luse0\n$lfuse0\n\$(MODEL_LIB)($fuse0.o)" 
    493                     fi 
    494                     fi 
    495                     fi 
    496                     fi 
    497463          done 
    498464           done 
     
    502468   for fuse1 in `sed -n 's/^[    ]*[uU][sS][eE] [  ]*\([^!,;]*\).*/\1/p' $fic | sort -u` 
    503469   do 
    504    if [ $fuse1 != "ioipsl" ]  
    505         then 
    506         if [ $fuse1 != "Agrif_Util" ]  
    507         then 
    508         if [ $fuse1 != "Agrif_Types" ]  
    509         then 
    510         if [ $fuse1 != "netcdf" ]  
    511         then 
     470            [ -f $fuse1.[hfF]90 ] || continue 
    512471       lfuse1=$fuse1.f90 
    513472       [ -f $fuse1.F90 ] && lfuse1=$fuse1.F90 
     
    515474      for fuse2 in `sed -n 's/^[    ]*[uU][sS][eE] [  ]*\([^!,;]*\).*/\1/p' $lfuse1 | sort -u` 
    516475      do 
    517            if [ $fuse2 != "ioipsl" ]  
    518                 then 
    519                 if [ $fuse2 != "Agrif_Util" ]  
    520                 then 
    521                 if [ $fuse2 != "Agrif_Types" ]  
    522                 then 
    523                 if [ $fuse2 != "netcdf" ]  
    524                 then 
     476                    [ -f $fuse2.[hfF]90 ] || continue 
    525477          lfuse2=$fuse2.f90 
    526478          [ -f $fuse2.F90 ] && lfuse2=$fuse2.F90 
     
    529481          for fuse3 in `sed -n 's/^#[     ]*[uU][sS][eE] [  ]*\([^!,;]*\).*/\1/p' $lfuse2 | sort -u` 
    530482          do 
    531           if [ $fuse3 != "ioipsl" ]  
    532                     then 
    533                     if [ $fuse3 != "Agrif_Util" ]  
    534                     then 
    535                     if [ $fuse3 != "Agrif_Types" ]  
    536                     then 
    537                     if [ $fuse3 != "netcdf" ]  
    538                     then 
     483                        [ -f $fuse3.[hfF]90 ] || continue 
    539484         luse3="$luse3\n$lfuse3\n\$(MODEL_LIB)($fuse3.o)" 
    540                     fi          
    541                     fi          
    542                     fi          
    543                     fi          
    544485                    done 
    545                 fi 
    546                 fi 
    547                 fi 
    548                 fi 
    549486      done 
    550         fi 
    551         fi 
    552         fi 
    553         fi 
    554487   done 
    555488#- 
     
    652585echo '       ln -sf ../OPA_SRC/IOM/*.[Ffh]90      . ; \' 
    653586echo '  fi ' 
    654 echo '   @check=`grep LIM_SRC .config`              ; \' 
     587echo '   @check=`grep LIM_SRC_3 .config`              ; \' 
    655588echo '   if [ -n "$$check" ] ; then                   \' 
    656 echo '   echo "   use LIM_SRC files"                ; \' 
    657 echo '      ln -sf ../LIM_SRC/*.[Ffh]90          . ; \' 
     589echo '   echo "   use LIM_SRC_3 files"                ; \' 
     590echo '      ln -sf ../LIM_SRC_3/*.[Ffh]90          . ; \' 
     591echo '  fi ' 
     592echo '   @check=`grep LIM_SRC_2 .config`              ; \' 
     593echo '   if [ -n "$$check" ] ; then                   \' 
     594echo '   echo "   use LIM_SRC_2 files"                ; \' 
     595echo '      ln -sf ../LIM_SRC_2/*.[Ffh]90          . ; \' 
    658596echo '  fi ' 
    659597echo '   @check=`grep C1D_SRC .config`              ; \' 
  • trunk/UTIL/fait_config

    r798 r833  
    2626# Example 1 : in order to create a GYRE_TRC configuration : 
    2727# 1. In this script, change LIST to LIST="ORCA2_LIM \nGYRE \nGYRE_TRC" 
    28 # 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC TOP_SRC C1D_SRC, take care of the syntax 
     28# 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC_3 TOP_SRC C1D_SRC, take care of the syntax 
    2929# 3. Run fait_config GYRE_TRC 
    3030# Example 2 : in order to create an OFFLINE_TRC configuration : 
     
    3333# 3. Run fait_config OFFLINE_TRC 
    3434 
    35 LIST="ORCA2_LIM \nGYRE" 
    36 set -A DIR_ORCA2_LIM OPA_SRC LIM_SRC C1D_SRC NST_SRC 
    37 set -A DIR_GYRE OPA_SRC LIM_SRC C1D_SRC  
    38 set -A DIR_GYRE_LOBSTER OPA_SRC LIM_SRC C1D_SRC TOP_SRC 
     35LIST="ORCA2_LIM \nGYRE \nGYRE_LOBSTER" 
     36set -A DIR_ORCA2_LIM OPA_SRC LIM_SRC_3 C1D_SRC NST_SRC 
     37set -A DIR_GYRE OPA_SRC LIM_SRC_3 C1D_SRC  
     38set -A DIR_GYRE_LOBSTER OPA_SRC LIM_SRC_3 C1D_SRC TOP_SRC 
    3939 
    4040################################### 
     
    9696    while [ i -lt $NDIR ] 
    9797    do 
    98       if [ "${TAB[i]}" = "LIM_SRC" ]; then 
    99      ln -sf ../LIM_SRC/*.[Ffh]90 .   
     98      if [ "${TAB[i]}" = "LIM_SRC_3" ]; then 
     99     ln -sf ../LIM_SRC_3/*.[Ffh]90 .   
     100       
     101      elif [ "${TAB[i]}" = "LIM_SRC_2" ]; then 
     102     ln -sf ../LIM_SRC_2/*.[Ffh]90 .   
    100103       
    101104      elif [ "${TAB[i]}" = "C1D_SRC" ]; then 
Note: See TracChangeset for help on using the changeset viewer.