File: test-slepc

package info (click to toggle)
slepc 3.24.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 123,068 kB
  • sloc: ansic: 104,361; javascript: 12,987; python: 7,085; f90: 3,312; cpp: 1,528; makefile: 761; xml: 686; sh: 347
file content (32 lines) | stat: -rw-r--r-- 854 bytes parent folder | download | duplicates (2)
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