Changeset 1197


Ignore:
Timestamp:
Jun 29, 2009, 5:30:35 PM (15 years ago)
Author:
lguez
Message:

Translated "makelmdz_fcm" from Csh to Bash.

Location:
LMDZ4/branches/LMDZ4-dev
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4-dev/arch/arch-AMD64_CICLAD.path

    r1166 r1197  
    1 set NETCDF_LIBDIR=/opt/netcdf/pgf/lib
    2 set NETCDF_INCDIR=/opt/netcdf/pgf/include
    3 set IOIPSL_INCDIR=$LMDGCM/../../lib
    4 set IOIPSL_LIBDIR=$LMDGCM/../../lib
    5 set ORCH_INCDIR=$LMDGCM/../../lib
    6 set ORCH_LIBDIR=$LMDGCM/../../lib
    7 set OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple
    8 set OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib
    9 set INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
    10 set INCA_INCDIR=$LMDGCM/../INCA3/config/lib
     1NETCDF_LIBDIR=/opt/netcdf/pgf/lib
     2NETCDF_INCDIR=/opt/netcdf/pgf/include
     3IOIPSL_INCDIR=$LMDGCM/../../lib
     4IOIPSL_LIBDIR=$LMDGCM/../../lib
     5ORCH_INCDIR=$LMDGCM/../../lib
     6ORCH_LIBDIR=$LMDGCM/../../lib
     7OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple
     8OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib
     9INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
     10INCA_INCDIR=$LMDGCM/../INCA3/config/lib
  • LMDZ4/branches/LMDZ4-dev/arch/arch-ES_MOON.path

    r871 r1197  
    1 set NETCDF_LIBDIR=/S/home010/c0010/ES/lib
    2 set NETCDF_INCDIR=/S/home010/c0010/ES/include
    3 set IOIPSL_INCDIR=$LMDGCM/../../lib
    4 set IOIPSL_LIBDIR=$LMDGCM/../../lib
    5 set ORCH_INCDIR=$LMDGCM/../../lib
    6 set ORCH_LIBDIR=$LMDGCM/../../lib
    7 set OASIS_INCDIR=$LMDGCM/../../prism/ES/build/lib/psmile.$couple
    8 set OASIS_LIBDIR=$LMDGCM/../../prism/ES/lib
    9 set INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
    10 set INCA_INCDIR=$LMDGCM/../INCA3/config/lib
    11 set LIBPREFIX=sx
     1NETCDF_LIBDIR=/S/home010/c0010/ES/lib
     2NETCDF_INCDIR=/S/home010/c0010/ES/include
     3IOIPSL_INCDIR=$LMDGCM/../../lib
     4IOIPSL_LIBDIR=$LMDGCM/../../lib
     5ORCH_INCDIR=$LMDGCM/../../lib
     6ORCH_LIBDIR=$LMDGCM/../../lib
     7OASIS_INCDIR=$LMDGCM/../../prism/ES/build/lib/psmile.$couple
     8OASIS_LIBDIR=$LMDGCM/../../prism/ES/lib
     9INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
     10INCA_INCDIR=$LMDGCM/../INCA3/config/lib
     11LIBPREFIX=sx
  • LMDZ4/branches/LMDZ4-dev/arch/arch-IA64_PLATINE.path

    r910 r1197  
    1 set NETCDF_LIBDIR='/usr/lib -lnetcdff'
    2 set NETCDF_INCDIR=/usr/include
    3 set IOIPSL_INCDIR=$LMDGCM/../../lib
    4 set IOIPSL_LIBDIR=$LMDGCM/../../lib
    5 set ORCH_INCDIR=$LMDGCM/../../lib
    6 set ORCH_LIBDIR=$LMDGCM/../../lib
    7 set OASIS_INCDIR=$LMDGCM/../../prism/IA64/build/lib/psmile.$couple
    8 set OASIS_LIBDIR=$LMDGCM/../../prism/IA64/lib
    9 set INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
    10 set INCA_INCDIR=$LMDGCM/../INCA3/config/lib
     1NETCDF_LIBDIR='/usr/lib -lnetcdff'
     2NETCDF_INCDIR=/usr/include
     3IOIPSL_INCDIR=$LMDGCM/../../lib
     4IOIPSL_LIBDIR=$LMDGCM/../../lib
     5ORCH_INCDIR=$LMDGCM/../../lib
     6ORCH_LIBDIR=$LMDGCM/../../lib
     7OASIS_INCDIR=$LMDGCM/../../prism/IA64/build/lib/psmile.$couple
     8OASIS_LIBDIR=$LMDGCM/../../prism/IA64/lib
     9INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
     10INCA_INCDIR=$LMDGCM/../INCA3/config/lib
    1111
  • LMDZ4/branches/LMDZ4-dev/arch/arch-PW6_VARGAS.path

    r1176 r1197  
    1 set NETCDF_LIBDIR=/usr/local/pub/NetCDF/3.6.3/lib
    2 set NETCDF_INCDIR=/usr/local/pub/NetCDF/3.6.3/include
    3 set IOIPSL_INCDIR=$LMDGCM/../../lib
    4 set IOIPSL_LIBDIR=$LMDGCM/../../lib
    5 set ORCH_INCDIR=$LMDGCM/../../lib
    6 set ORCH_LIBDIR=$LMDGCM/../../lib
    7 set OASIS_INCDIR=$LMDGCM/../../prism/AIX6/build/lib/psmile.$couple
    8 set OASIS_LIBDIR=$LMDGCM/../../prism/AIX6/lib
    9 set INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
    10 set INCA_INCDIR=$LMDGCM/../INCA3/config/lib
     1NETCDF_LIBDIR=/usr/local/pub/NetCDF/3.6.3/lib
     2NETCDF_INCDIR=/usr/local/pub/NetCDF/3.6.3/include
     3IOIPSL_INCDIR=$LMDGCM/../../lib
     4IOIPSL_LIBDIR=$LMDGCM/../../lib
     5ORCH_INCDIR=$LMDGCM/../../lib
     6ORCH_LIBDIR=$LMDGCM/../../lib
     7OASIS_INCDIR=$LMDGCM/../../prism/AIX6/build/lib/psmile.$couple
     8OASIS_LIBDIR=$LMDGCM/../../prism/AIX6/lib
     9INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
     10INCA_INCDIR=$LMDGCM/../INCA3/config/lib
  • LMDZ4/branches/LMDZ4-dev/arch/arch-SX8_BRODIE.fcm

    r1002 r1197  
    88%PROD_FFLAGS         -C vopt
    99%DEV_FFLAGS          -C vsafe -gv -Wf,-init stack=nan,-init heap=nan
    10 %DEBUG_FFLAGS        -C debug -eC -Wf,-init stack=nan,-init heap=nan
     10%DEBUG_FFLAGS        -C debug -eR -Wf,-init stack=nan,-init heap=nan
    1111%MPI_FFLAGS
    1212%OMP_FFLAGS          -P openmp
  • LMDZ4/branches/LMDZ4-dev/arch/arch-SX8_BRODIE.path

    r1154 r1197  
    1 set NETCDF_LIBDIR=/SXlocal/pub/netCDF/3.6.1-openmp/lib
    2 set NETCDF_INCDIR=/SXlocal/pub/netCDF/3.6.1-openmp/include
    3 set IOIPSL_INCDIR=$LMDGCM/../../lib
    4 set IOIPSL_LIBDIR=$LMDGCM/../../lib
    5 set ORCH_INCDIR=$LMDGCM/../../lib
    6 set ORCH_LIBDIR=$LMDGCM/../../lib
    7 set OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple
    8 set OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib
    9 set INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
    10 set INCA_INCDIR=$LMDGCM/../INCA3/config/lib
     1NETCDF_LIBDIR=/SXlocal/pub/netCDF/3.6.1-openmp/lib
     2NETCDF_INCDIR=/SXlocal/pub/netCDF/3.6.1-openmp/include
     3IOIPSL_INCDIR=$LMDGCM/../../lib
     4IOIPSL_LIBDIR=$LMDGCM/../../lib
     5ORCH_INCDIR=$LMDGCM/../../lib
     6ORCH_LIBDIR=$LMDGCM/../../lib
     7OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple
     8OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib
     9INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
     10INCA_INCDIR=$LMDGCM/../INCA3/config/lib
  • LMDZ4/branches/LMDZ4-dev/arch/arch-SX8_MERCURE.path

    r821 r1197  
    1 set NETCDF_LIBDIR=/usr/local/SX8/soft/netcdf/lib
    2 set NETCDF_INCDIR=/usr/local/SX8/soft/netcdf/include
    3 set IOIPSL_INCDIR=$LMDGCM/../../lib
    4 set IOIPSL_LIBDIR=$LMDGCM/../../lib
    5 set ORCH_INCDIR=$LMDGCM/../../lib
    6 set ORCH_LIBDIR=$LMDGCM/../../lib
    7 set OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple
    8 set OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib
    9 set INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
    10 set INCA_INCDIR=$LMDGCM/../INCA3/config/lib
     1NETCDF_LIBDIR=/usr/local/SX8/soft/netcdf/lib
     2NETCDF_INCDIR=/usr/local/SX8/soft/netcdf/include
     3IOIPSL_INCDIR=$LMDGCM/../../lib
     4IOIPSL_LIBDIR=$LMDGCM/../../lib
     5ORCH_INCDIR=$LMDGCM/../../lib
     6ORCH_LIBDIR=$LMDGCM/../../lib
     7OASIS_INCDIR=$LMDGCM/../../prism/SX/build/lib/psmile.$couple
     8OASIS_LIBDIR=$LMDGCM/../../prism/SX/lib
     9INCA_LIBDIR=$LMDGCM/../INCA3/config/lib
     10INCA_INCDIR=$LMDGCM/../INCA3/config/lib
  • LMDZ4/branches/LMDZ4-dev/arch/arch-linux-32bit.path

    r783 r1197  
    1 set NETCDF_LIBDIR=/distrib/local/netcdf/pgi_32bits/lib/
    2 set NETCDF_INCDIR=/distrib/local/netcdf/pgi_32bits/include
    3 set IOIPSL_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib
    4 set IOIPSL_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib
    5 set ORCH_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib
    6 set ORCH_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib
     1NETCDF_LIBDIR=/usr/local/netcdf-pgi/lib
     2NETCDF_INCDIR=/usr/local/netcdf-pgi/include
     3IOIPSL_INCDIR=/usr/local/guez/modipsl/lib
     4IOIPSL_LIBDIR=/usr/local/guez/modipsl/lib
     5ORCH_INCDIR=/u/fairhead/modipsl_ioipsl_3/lib
     6ORCH_LIBDIR=/u/fairhead/modipsl_ioipsl_3/lib
  • LMDZ4/branches/LMDZ4-dev/makelmdz_fcm

    r1154 r1197  
    1 #!/bin/csh
    2 #
    31# $Header$
    4 #
     2# This is a script in Bash.
     3
    54# FH : on ne crée plus le fichier arch.mk qui est supposé exister par
    65# FH : ailleurs.
     
    1110# FH : arch.mk en lançant une première fois makegcm.
    1211#
    13 set verbose echo
     12##set -x
    1413########################################################################
    1514# options par defaut pour la commande make
    1615########################################################################
    1716
    18 set dim="96x72x19"
    19 set physique=lmd
    20 set filtre=filtrez
    21 set grille=reg
    22 set couple=false
    23 set veget=false
    24 set chimie=false
    25 set parallel=none
    26 set compil_mod=prod
    27 set io=ioipsl
    28 set LIBPREFIX=""
    29 set fcm_path=none
    30 
    31 set LMDGCM=`/bin/pwd`
    32 set LIBOGCM=$LMDGCM/libo
    33 set LIBFGCM=$LMDGCM/libf
     17dim="96x72x19"
     18physique=lmd
     19filtre=filtrez
     20grille=reg
     21couple=false
     22veget=false
     23chimie=false
     24parallel=none
     25compil_mod=prod
     26io=ioipsl
     27LIBPREFIX=""
     28fcm_path=none
     29
     30LMDGCM=`/bin/pwd`
     31LIBOGCM=$LMDGCM/libo
     32LIBFGCM=$LMDGCM/libf
    3433
    3534########################################################################
     
    3736########################################################################
    3837
    39 set CPP_KEY=""
    40 set INCLUDE=""
    41 set LIB=""
    42 set adjnt=""
    43 set COMPIL_FFLAGS="%PROD_FFLAGS"
    44 set PARA_FFLAGS=""
    45 set PARA_LD=""
     38CPP_KEY=""
     39INCLUDE=""
     40LIB=""
     41adjnt=""
     42COMPIL_FFLAGS="%PROD_FFLAGS"
     43PARA_FFLAGS=""
     44PARA_LD=""
    4645
    4746########################################################################
     
    4948########################################################################
    5049
    51 top:
    52 if ($#argv > 0) then
    53     switch ($1:q)
    54 
    55     case -h:
    56 cat <<fin
     50while (($# > 0))
     51  do
     52  case $1 in
     53      "-h") cat <<fin
    5754manuel complet sur http://...
    5855Usage :
     
    7774 exec                      : exécutable généré
    7875fin
    79         exit
    80 
    81     case -d:
    82         set dim=$2 ; shift ; shift ; goto top
    83                        
    84     case -O:
    85         echo "option obsolete dans cette version intermediaire de makegcm"
    86         exit
    87 
    88      case -p
    89         set physique="$2" ;  shift ; shift ; goto top
    90 
    91      case -g
    92         set grille="$2" ; shift ; shift ; goto top
    93 
    94      case -c
    95         set couple="$2" ; shift ; shift ; goto top
    96 
    97      case -prod
    98         set compil_mod="prod" ; shift ; goto top
    99 
    100      case -dev
    101        set compil_mod="dev" ; shift ; goto top
    102 
    103      case -debug
    104        set compil_mod="debug" ; shift ; goto top
    105 
    106      case -io
    107         set io="$2" ; shift ; shift ; goto top
    108 
    109      case -v
    110         set veget="$2" ; shift ; shift ; goto top
    111 
    112      case -chimie
    113         set chimie="$2" ; shift ; shift ; goto top
    114 
    115      case -parallel
    116         set parallel="$2" ; shift ; shift ; goto top
    117  
    118      case -include
    119         set INCLUDE="$INCLUDE -I$2" ; shift ; shift ; goto top
    120 
    121      case -cpp
    122         set CPP_KEY="$CPP_KEY $2" ; shift ; shift ; goto top
    123 
    124      case -adjnt
    125         echo 'otpion a reactiver ';exit
    126         set opt_dep="$opt_dep adjnt" ; set adjnt="-ladjnt -ldyn3d "
    127         set optim="$optim -Dadj" ; shift ; goto top
    128 
    129 
    130      case -filtre
    131         set filtre=$2 ; shift ; shift ; goto top
    132 
    133      case -link
    134         set LIB="$LIB $2" ; shift ; shift ; goto top
    135 
    136      case -fcm_path
    137        set fcm_path=$2 ; shift ; shift ; goto top
    138 
    139      case -arch
    140        set arch=$2 ; shift ; shift ; goto top
    141 
    142      default
    143         set code="$1" ; shift ; goto top
    144 
    145    endsw
    146 endif
     76          exit;;
     77
     78      "-d")
     79          dim=$2 ; shift ; shift ;;
     80     
     81      "-O")
     82          echo "option obsolete dans cette version intermediaire de makegcm"
     83          exit;;
     84
     85      "-p")
     86          physique="$2" ;  shift ; shift ;;
     87
     88      "-g")
     89          grille="$2" ; shift ; shift ;;
     90
     91      "-c")
     92          couple="$2" ; shift ; shift ;;
     93
     94      "-prod")
     95          compil_mod="prod" ; shift ;;
     96
     97      "-dev")
     98          compil_mod="dev" ; shift ;;
     99
     100      "-debug")
     101          compil_mod="debug" ; shift ;;
     102
     103      "-io")
     104          io="$2" ; shift ; shift ;;
     105
     106      "-v")
     107          veget="$2" ; shift ; shift ;;
     108
     109      "-chimie")
     110          chimie="$2" ; shift ; shift ;;
     111
     112      "-parallel")
     113          parallel="$2" ; shift ; shift ;;
     114     
     115      "-include")
     116          INCLUDE="$INCLUDE -I$2" ; shift ; shift ;;
     117
     118      "-cpp")
     119          CPP_KEY="$CPP_KEY $2" ; shift ; shift ;;
     120
     121      "-adjnt")
     122          echo "otpion a reactiver ";exit
     123          opt_dep="$opt_dep adjnt" ; adjnt="-ladjnt -ldyn3d "
     124          optim="$optim -Dadj" ; shift ;;
     125
     126
     127      "-filtre")
     128          filtre=$2 ; shift ; shift ;;
     129
     130      "-link")
     131          LIB="$LIB $2" ; shift ; shift ;;
     132
     133      "-fcm_path")
     134          fcm_path=$2 ; shift ; shift ;;
     135
     136      "-arch")
     137          arch=$2 ; shift ; shift ;;
     138
     139      *)
     140          code="$1" ; shift ;;
     141  esac
     142done
    147143
    148144###############################################################
    149145# mettre le chemin du fcm dans le path
    150146###############################################################
    151 if  ( "$fcm_path" != 'none' ) then
    152     setenv PATH ${fcm_path}:${PATH}
    153 endif
     147if  [[ "$fcm_path" != "none" ]]
     148then
     149    export PATH=${fcm_path}:${PATH}
     150fi
    154151
    155152echo "Chemin du fcm utlise :"
     
    169166########################################################################
    170167
    171 if ( "$compil_mod" == 'prod' ) then
    172   set COMPIL_FFLAGS="%PROD_FFLAGS"
    173 else if ( "$compil_mod" == 'dev' ) then
    174   set COMPIL_FFLAGS="%DEV_FFLAGS"
    175 else if ( "$compil_mod" == 'debug' ) then
    176   set COMPIL_FFLAGS="%DEBUG_FFLAGS"
    177 endif
    178 
    179 if ( "$physique" == 'nophys' ) then
    180    
    181 else
     168if [[ "$compil_mod" == "prod" ]]
     169then
     170  COMPIL_FFLAGS="%PROD_FFLAGS"
     171elif [[ "$compil_mod" == "dev" ]]
     172then
     173  COMPIL_FFLAGS="%DEV_FFLAGS"
     174elif [[ "$compil_mod" == "debug" ]]
     175then
     176  COMPIL_FFLAGS="%DEBUG_FFLAGS"
     177fi
     178
     179if [[ "$physique" != "nophys" ]]
     180then
    182181   #Default planet type is Earth
    183    set CPP_KEY="$CPP_KEY CPP_EARTH"
    184 endif
    185 
    186 if ( "$chimie" == 'INCA' ) then
    187    set CPP_KEY="$CPP_KEY INCA"
    188    set INCLUDE="$INCLUDE -I${INCA_INCDIR}"
    189    set LIB="$LIB -L${INCA_LIBDIR} -lchimie"
    190 endif
    191 
    192 if ( "$couple" != 'false' ) then
    193    set CPP_KEY="$CPP_KEY CPP_COUPLE"
    194    set INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    195    set LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"
    196 endif
    197 
    198 if ( "$parallel" == 'mpi' ) then
    199    set CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI"
    200    set PARA_FFLAGS="%MPI_FFLAGS"
    201    set PARA_LD="%MPI_LD"
    202 else if ("$parallel" == 'omp' ) then
    203    set CPP_KEY="$CPP_KEY CPP_PARA CPP_OMP"
    204    set PARA_FFLAGS="%OMP_FFLAGS"
    205    set PARA_LD="%OMP_LD"
    206 else if ("$parallel" == 'mpi_omp' ) then
    207    set CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI CPP_OMP"
    208    set PARA_FFLAGS="%MPI_FFLAGS %OMP_FFLAGS"
    209    set PARA_LD="%MPI_LD %OMP_LD"
    210 endif
    211 
    212 if ( ( "$parallel" == 'omp' || "$parallel" == 'mpi_omp' ) \
    213    && ( "$compil_mod" == 'debug' ) ) then
    214     echo 'Usually, parallelization with OpenMP requires some optimization.'
    215     echo 'We suggest switching to "-dev".'
     182   CPP_KEY="$CPP_KEY CPP_EARTH"
     183fi
     184
     185if [[ "$chimie" == "INCA" ]]
     186then
     187   CPP_KEY="$CPP_KEY INCA"
     188   INCLUDE="$INCLUDE -I${INCA_INCDIR}"
     189   LIB="$LIB -L${INCA_LIBDIR} -lchimie"
     190fi
     191
     192if [[ "$couple" != "false" ]]
     193then
     194   CPP_KEY="$CPP_KEY CPP_COUPLE"
     195   INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
     196   LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"
     197fi
     198
     199if [[ "$parallel" == "mpi" ]]
     200then
     201   CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI"
     202   PARA_FFLAGS="%MPI_FFLAGS"
     203   PARA_LD="%MPI_LD"
     204elif [[ "$parallel" == "omp" ]]
     205then
     206   CPP_KEY="$CPP_KEY CPP_PARA CPP_OMP"
     207   PARA_FFLAGS="%OMP_FFLAGS"
     208   PARA_LD="%OMP_LD"
     209elif [[ "$parallel" == "mpi_omp" ]]
     210then
     211   CPP_KEY="$CPP_KEY CPP_PARA CPP_MPI CPP_OMP"
     212   PARA_FFLAGS="%MPI_FFLAGS %OMP_FFLAGS"
     213   PARA_LD="%MPI_LD %OMP_LD"
     214fi
     215
     216if [[ ( "$parallel" == "omp" || "$parallel" == "mpi_omp" ) \
     217   && "$compil_mod" == "debug" ]]
     218then
     219    echo "Usually, parallelization with OpenMP requires some optimization."
     220    echo "We suggest switching to \"-dev\"."
    216221    exit 1
    217     ##set COMPIL_FFLAGS="%DEV_FFLAGS"
    218 endif
    219 
    220 if ( "$veget" == 'true' ) then
    221    set CPP_KEY="$CPP_KEY CPP_VEGET"
    222    set INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
    223    set LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob"
    224 endif
    225 
    226 if ( $io == ioipsl ) then
    227    set CPP_KEY="$CPP_KEY CPP_IOIPSL"
    228    set INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
    229    set LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
    230 endif
    231 
    232 set INCLUDE="$INCLUDE -I${NETCDF_INCDIR}"
    233 set LIB="$LIB -L${NETCDF_LIBDIR} -lnetcdf"
     222    ##COMPIL_FFLAGS="%DEV_FFLAGS"
     223fi
     224
     225if [[ "$veget" == "true" ]]
     226then
     227   CPP_KEY="$CPP_KEY CPP_VEGET"
     228   INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
     229   LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob"
     230fi
     231
     232if [[ $io == ioipsl ]]
     233then
     234   CPP_KEY="$CPP_KEY CPP_IOIPSL"
     235   INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
     236   LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
     237fi
     238
     239INCLUDE="$INCLUDE -I${NETCDF_INCDIR}"
     240LIB="$LIB -L${NETCDF_LIBDIR} -lnetcdf"
    234241
    235242########################################################################
     
    238245
    239246
    240 set dim_full=$dim
    241 set dim=`echo $dim | sed -e 's/[^0-9]/ /g'`
    242 set dimc=`echo $dim | wc -w`
     247dim_full=$dim
     248dim=`echo $dim | sed -e 's/[^0-9]/ /g'`
     249dimc=`echo $dim | wc -w`
    243250
    244251echo calcul de la dimension
     
    262269########################################################################
    263270
    264 set dimension=`echo $dim | wc -w`
     271dimension=`echo $dim | wc -w`
    265272echo dimension $dimension
    266273
    267 if ( $dimension != 3 ) then
    268   echo "Probleme dans les dimensions de la dynamique !!"
    269   echo "Non reactive pour l'instant !!!"
    270 endif
    271 
    272 if ( $dimension == 3 ) then
     274if (( $dimension == 3 ))
     275then
    273276  cd $LIBFGCM/grid
    274277  \rm fxyprim.h
    275278  cp -p fxy_${grille}.h fxyprim.h
    276 endif
     279else
     280  echo "Probleme dans les dimensions de la dynamique !!"
     281  echo "Non reactive pour l'instant !!!"
     282fi
    277283
    278284######################################################################
     
    281287######################################################################
    282288
    283 #if ( -f $libf/phy$physique/raddim.h ) then
    284 # if ( -f $libf/phy$physique/raddim.$dimh.h ) then
     289#if [[ -f $libf/phy$physique/raddim.h ]]
     290#then
     291# if [[ -f $libf/phy$physique/raddim.$dimh.h ]]
     292#then
    285293#  \rm -f $libf/phy$physique/raddim.h
    286294#  cp -p $libf/phy$physique/raddim.$dimh.h $libf/phy$physique/raddim.h
     
    291299#  echo le fichier $libf/phy$physique/raddim.$dimh.h
    292300#  \cp -p $libf/phy$physique/raddim.defaut.h $libf/phy$physique/raddim.h
    293 # endif
    294 #endif
     301# fi
     302#fi
    295303
    296304######################################################################
     
    298306######################################################################
    299307
    300 if ( `expr $dimc \> 2` == 1 ) then
    301    set filtre="FILTRE=$filtre"
     308if (( `expr $dimc \> 2` == 1 ))
     309then
     310   filtre="FILTRE=$filtre"
    302311else
    303    set filtre="FILTRE= L_FILTRE= "
    304 endif
     312   filtre="FILTRE= L_FILTRE= "
     313fi
    305314echo MACRO FILTRE $filtre
    306315
     
    314323
    315324
    316 set SUFF_NAME=_${dim_full}
    317 set SUFF_NAME=${SUFF_NAME}_phy${physique}
    318 
    319 if ( "$parallel" != 'none' ) then
    320   set SUFF_NAME=${SUFF_NAME}_para
    321   set DYN=dyn${dimc}dpar
     325SUFF_NAME=_${dim_full}
     326SUFF_NAME=${SUFF_NAME}_phy${physique}
     327
     328if [[ "$parallel" != "none" ]]
     329then
     330  SUFF_NAME=${SUFF_NAME}_para
     331  DYN=dyn${dimc}dpar
    322332else
    323   set SUFF_NAME=${SUFF_NAME}_seq
    324   set DYN=dyn${dimc}d
    325 endif
    326 
    327 if ( $veget == "true" ) then
    328   set SUFF_NAME=${SUFF_NAME}_orch
    329 endif
    330 
    331 if ( $couple != "false" ) then
    332   set SUFF_NAME=${SUFF_NAME}_couple
    333 endif
    334 
    335 if ( $chimie == 'INCA' ) then
    336   set SUFF_NAME=${SUFF_NAME}_inca
    337 endif
     333  SUFF_NAME=${SUFF_NAME}_seq
     334  DYN=dyn${dimc}d
     335fi
     336
     337if [[ $veget == "true" ]]
     338then
     339  SUFF_NAME=${SUFF_NAME}_orch
     340fi
     341
     342if [[ $couple != "false" ]]
     343then
     344  SUFF_NAME=${SUFF_NAME}_couple
     345fi
     346
     347if [[ $chimie == "INCA" ]]
     348then
     349  SUFF_NAME=${SUFF_NAME}_inca
     350fi
    338351
    339352cd $LMDGCM
    340 set config_fcm="config.fcm"
     353config_fcm="config.fcm"
    341354rm -f $config_fcm
    342355touch $config_fcm
Note: See TracChangeset for help on using the changeset viewer.