1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/bin/bash
if [ "x${SLEPC_DIR}" = "x" ]; then
SLEPC_DIR=/usr/lib/slepc
fi
if [ "x${PETSC_DIR}" = "x" ]; then
PETSC_DIR=/usr/lib/petsc
fi
export PRTE_MCA_plm_ssh_agent=/bin/false
export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe
export OMP_NUM_THREADS=1
DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
if [ ${DEB_HOST_ARCH} = "i386" ]; then
SKIP_TEST7F=y
fi
cp makefile makefile.orig
cp gmakefile gmakefile.orig
sed "s|^\(include \./\${PETSC_ARCH}/lib/slepc/conf/slepcvariables\)|#\1|" -i makefile
sed "s|^include ./\$(PETSC_ARCH)/lib/slepc/conf/slepcvariables|include \$(SLEPC_DIR)/lib/slepc/conf/slepcvariables|" -i gmakefile
make check SLEPC_DIR=${SLEPC_DIR} PETSC_DIR=${PETSC_DIR} SKIP_TEST7F=${SKIP_TEST7F} V=1
cp makefile makefile.tests
cp gmakefile gmakefile.tests
cp makefile.orig makefile
cp gmakefile.orig gmakefile
|