#!/bin/bash
#-----------------------------------------------------------------------
#
#                        SYRTHES version 5.X
#                        -------------------
#
#     This file is part of the SYRTHES Kernel, element of the
#     thermal code SYRTHES.
#
#     Copyright (C) 2018 EDF S.A., France
#
#     contact: syrthes-support@edf.fr
#
#
#     The SYRTHES Kernel is free software; you can redistribute it
#     and/or modify it under the terms of the GNU General Public License
#     as published by the Free Software Foundation; either version 2 of
#     the License, or (at your option) any later version.
#
#     The SYRTHES Kernel is distributed in the hope that it will be
#     useful, but WITHOUT ANY WARRANTY; without even the implied warranty
#     of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#     GNU General Public License for more details.
#
#
#     You should have received a copy of the GNU General Public License
#     along with the Code_Saturne Kernel; if not, write to the
#     Free Software Foundation, Inc.,
#     51 Franklin St, Fifth Floor,
#     Boston, MA  02110-1301  USA
#
#
#-----------------------------------------------------------------------

# Architecture name and location of the directory for installation
# ================================================================

SYRTHES_HOME=/opt/local/syrthes/syrthes5.0/arch/Linux_x86_64
NOM_ARCH=Linux_x86_64

#-----------------------------------------------------------
# LD_LIBRARY_PATH
#-----------------------------------------------------------
#hdf5
LD_LIBRARY_PATH=/opt/local/syrthes/syrthes5.0/extern-libraries/opt/hdf5-1.10.5/arch/Linux_x86_64/lib:$LD_LIBRARY_PATH
#med
LD_LIBRARY_PATH=/opt/local/syrthes/syrthes5.0/extern-libraries/opt/med-4.1.0/arch/Linux_x86_64/lib:$LD_LIBRARY_PATH
#mpi
LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
#metis
LD_LIBRARY_PATH=/opt/local/syrthes/syrthes5.0/extern-libraries/opt/metis-5.1.0/arch/Linux_x86_64/lib:$LD_LIBRARY_PATH
#scotch
LD_LIBRARY_PATH=/opt/local/syrthes/syrthes5.0/extern-libraries/opt/scotch_6.0.3/arch/Linux_x86_64/lib:$LD_LIBRARY_PATH
#stardis
LD_LIBRARY_PATH=/opt/local/syrthes/syrthes5.0/extern-libraries/opt/Stardis-0.8.2-GNU-Linux64/arch/Linux_x86_64/lib:$LD_LIBRARY_PATH
#ple
LD_LIBRARY_PATH=/opt/local/code-saturne/code_saturne-7.0.4/build/code_saturne-7.0.4/arch/Linux_x86_64/lib:$LD_LIBRARY_PATH

#
#-----------------------------------------------------------
# Path
#-----------------------------------------------------------
PATH=${SYRTHES_HOME}/bin:$PATH
#

#-----------------------------------------------------------
# MPI Path
#-----------------------------------------------------------

SYRTHES_MPIPATH=/usr/lib64/openmpi
PATH=/usr/lib64/openmpi/bin:$PATH 

#-----------------------------------------------------------
# Export variables
#-----------------------------------------------------------
export NOM_ARCH SYRTHES_HOME LD_LIBRARY_PATH PATH SYRTHES_MPIPATH

#-----------------------------------------------------------
# Display
#-----------------------------------------------------------
echo " "

echo "SYRTHES_HOME=" ${SYRTHES_HOME}
echo "NOM_ARCH=     " ${NOM_ARCH}
echo "PATH=         " ${PATH}
echo "LD_LIBRARY_PATH="${LD_LIBRARY_PATH}
echo " "
