The following how-to is based of the use of the install_saturne.py script. I suppose that an installation of Salome 5.1.3 is available.
1) in the Salome 5.1.3 installation create the following symbolic link ( adapt the paths depending on your installation ):
2) source the environment variables of SALOME:ln -s /home/salome/Salome_5.1.3/PyQt-4.5.4/bin/pyuic4 /home/salome/Salome_5.1.3/Python-2.4.4/bin/.
ln -s /home/salome/Salome_5.1.3/PyQt-4.5.4/bin/pyrcc4 /home/salome/Salome_5.1.3/Python-2.4.4/bin/.
ln -s /home/salome/Salome_5.1.3/PyQt-4.5.4/bin/pylupdate4 /home/salome/Salome_5.1.3/Python-2.4.4/bin/.
3) create the directory in which you want to install Code_Saturne:source /home/salome/Salome_5.1.3/env_product.sh
4) adapt the setup file of the Code_Saturne installer and particularly the following variables:mkdir -p /home/saturne/Code_Saturne/2.0-rc1
note that a new swig will be downloaded and installed, because the swig embedded with SALOME is too old for the mei library.prefix /home/saturne/Code_Saturne/2.0-rc1
python /home/salome/Salome_5.1.3/Python-2.4.4/bin
cgns None yes yes
hdf5 /home/salome/Salome_5.1.3/hdf5-1.6.9 yes no
med /home/salome/Salome_5.1.3/med-2.3.6 yes no
metis None yes yes
mpi None yes yes
libxml2 /home/salome/Salome_5.1.3/libxml2-2.6.27 yes no
swig None yes yes
5) finally launch the installer:
on the terminal you will have this output:./install_saturne.py
6) create a launcher for SALOME with CFDSTUDY and Code_Saturne:Installation of Code_Saturne
The process will take several minutes.
You can have a look at the log file meanwhile.
Check the setup file and some utilities presence.
Installation of CGNS
Installation of MPI
Installation of Swig
Installation of BFT
Installation of FVM
Installation of MEI
Installation of ECS
Installation of NCS
Before using Code_Saturne, please update your path with:
cspath=/home/saturne/Code_Saturne/2.0-rc1/cs-2.0-beta2/bin
export PATH=$cspath:$PATH
The documentation should then be available through the commands:
code_saturne info -g refcard
code_saturne info -g user
Thank you for choosing Code_Saturne!
You can download here my setup file...#!/bin/sh
source /home/salome/Salome_5.1.3/env_products.sh
CS_HOME=/home/saturne/Code_Saturne/2.0-rc1/cs-2.0-beta2
export PYTHONPATH=$CS_HOME/lib/python2.4/site-packages:$PYTHONPATH
export PYTHONPATH=$CS_HOME/lib/python2.4/site-packages/mei:$PYTHONPATH
$INST_ROOT/KERNEL_5.1.3/bin/salome/runSalome --modules=GEOM,SMESH,CFDSTUDY,VISU,MED --killall