Kategoriarkiv: Salome

Salome is an open source ”Workbench” :-) http://salome-platform.org

The ugly compilation of foamMeshToMED

I want to test Code Saturne. Then it would be nice to use OpenFOAM meshes. This i how I did

first install
Build OpenFOAM 3.0.0 on CentOS 6.6and
Install Salome-Platform on CentOS
then download foamMeshToMED

to create an compilation environment:

module load openfoam/3.0.0
. /opt/salome/7.3.0/env_build.sh
as root: ln -s /opt/salome/7.3.0/med-3.0.7/lib/libmedC.so /usr/lib64/
export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/opt/salome/7.3.0/med-3.0.7/include/
export LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/salome/7.3.0/med-3.0.7/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/salome/7.3.0/med-3.0.7/lib

then

wmake

to use it just do:

module load openfoam/3.0.0
. /opt/salome/7.3.0/env_build.sh