Hi,
after some tests, this is the procedure I found to compile preCICE on opensuse, In the end, as @Makis
said, it all boiled down to the right version of MPI and how to source it. 'll recap it here just in case.
general prerequisites
MPI:
install openmpi:
sudo zypper install: openmpi-devel
and add to .bashrc:
export PATH=/usr/lib64/mpi/gcc/openmpi/bin/:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/mpi/gcc/openmpi/lib64/
PETSc:
-
git clone -b release PETSc / petsc · GitLab petsc
-
set environment variables in .bashrc:
export PETSC_DIR=“/home/claudio/Projects/petsc”
export PETSC_ARCH=“arch-linux-c-debug”
./configure
make PETSC_DIR=/home/claudio/Projects/petsc PETSC_ARCH=arch-linux-c-debug all
make PETSC_DIR=/home/claudio/Projects/petsc PETSC_ARCH=arch-linux-c-debug check
EIGEN:
eigen3-devel from YaST
BOOST: (>=1.71.0)
the following are required:
- boost_log
- boost_log_setup
- boost_thread
- boost_system
- boost_filesystem
- boost_program_options
- boost_unit_test_framework
I followed the command suggested on the precice website:
sudo zypper install libboost_log1_75_0-devel libboost_thread1_75_0-devel libboost_system1_75_0-devel libboost_filesystem1_75_0-devel libboost_program_options1_75_0-devel libboost_test1_75_0-devel
LIBXML2:
libxml2-2 libxml2-devel libxml2-tools from YaST
PYTHON:
python3 python3-devel python3-numpy python3-numpy-devel (from YaST)
1) clone the repo
wget https://github.com/precice/precice/archive/v2.5.0.tar.gz
tar -xzvf v2.5.0.tar.gz
cd precice-2.5.0
2) compile
mkdir build
cd build
cmake …
make -j(n)
3) test
The compilation runs without errors.
All the tests PASS