Changeset 4782 for BOL


Ignore:
Timestamp:
Jan 4, 2024, 3:11:31 PM (11 months ago)
Author:
Ehouarn Millour
Message:

Update install script for XIOS to use (by default) XIOS-2.6 revision 2568.
While at it added the possibility to choose which branch (trunk|2.5|2.6) via a script argument "-branch ###".
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_xios.bash

    • Property svn:executable set to *
    r4410 r4782  
    1313fi
    1414arch="local"
    15 xios_rev="1786"
     15#xios_branch="trunk"
     16xios_branch="2.6"
     17#xios_rev="HEAD"
     18xios_rev="2568"
     19
    1620#########################################################################
    1721#  Options
     
    2933       [ -MPI path ]          top directory of the MPI library
    3034                              (default: $mpi_home)
     35       [ -branch branch]      XIOS branch trunk|2.5|2.6
     36                              (default: $xios_branch)
    3137       [ -rev number ]        XIOS revision
    3238                              (default: $xios_rev)
     
    3945     "-hdf5" ) hdf5_home=$2 ; shift ; shift ;;
    4046     "-MPI") mpi_home=$2 ; shift ; shift ;;
     47     "-branch") xios_branch=$2 ; shift ; shift ;;
    4148     "-rev") xios_rev=$2 ; shift ; shift ;;
    4249     "-arch") arch=$2 ; shift ; shift ;;
     
    5057
    5158# Download XIOS
     59case $xios_branch in
     60  "trunk")
     61  xios_http="http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/trunk" ;;
     62  "2.5")
     63  xios_http="http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/branchs/xios-2.5" ;;
     64  "2.6")
     65  xios_http="http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS2/branches/xios-2.6" ;;
     66*)
     67echo "Error, bad argument for -branch ! Did not expect $xios_branch" ; exit ;;
     68esac
     69
    5270cd $install_dir
    53 #svn co --revision $xios_rev http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/trunk XIOS
    54 #XIOS 2.5 branch
    55 #svn co --revision $xios_rev http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS/branchs/xios-2.5 XIOS
    56 svn co --revision $xios_rev http://forge.ipsl.jussieu.fr/ioserver/svn/XIOS2/branches/xios-2.5 XIOS
     71svn co --revision $xios_rev $xios_http XIOS
    5772
    5873# Make arch files, if necesary:
     
    8297echo '%BASE_CFLAGS    -w -ansi'                >> arch-local.fcm
    8398else
    84 echo '%BASE_CFLAGS    -w -ansi -std=c++03'                >> arch-local.fcm
     99echo '%BASE_CFLAGS    -w -std=c++11 -D__XIOS_EXCEPTION'   >> arch-local.fcm
    85100fi
    86101echo '%PROD_CFLAGS    -O3 -D BOOST_DISABLE_ASSERTS'       >> arch-local.fcm
Note: See TracChangeset for help on using the changeset viewer.