Skip to content
Snippets Groups Projects
Commit 76417828 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixed creation of example.mk

parent 40129f42
No related branches found
No related tags found
No related merge requests found
......@@ -169,8 +169,7 @@ else
./script/install_MPI.sh $i_dir $compiler_opt
MPI_installed=1
export PATH="$PATH:$i_dir/MPI/bin"
echo $PATH
configure_options="$configure_options CXX=mpic++ "
elif [ $conf_err -eq 201 ]; then
echo "Metis not found try to install"
if [ $METIS_installed -eq 1 ]; then
......@@ -196,13 +195,6 @@ else
done
fi
make clean
make
if [ $? -ne 0 ]; then
conf_err=1
fi
### Create example.mk
install_base=$(cat install_dir)
echo "INCLUDE_PATH=-I. -I$install_base/openfpm_pdata/include/config -I$install_base/openfpm_pdata/include -I$install_base/openfpm_data/include -I$install_base/openfpm_vcluster/include -I$install_base/openfpm_io/include -I$install_base/openfpm_devices/include -I$i_dir/METIS/include" > example.mk
......@@ -211,6 +203,13 @@ echo "LIBS=-lvcluster -lofpmmemory -lmetis -lboost_iostreams" >> example.mk
cp example.mk src/example.mk
cp example.mk example/example.mk
make clean
make
if [ $? -ne 0 ]; then
conf_err=1
fi
echo ""
echo ""
if [ $conf_err -eq 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment