blob: d7148ff702130c09b5da53d71bc055cdc3f4eded (
plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/bash
# Test if external packages for PETSC are installed
CONFOPTS=""
## External downloads
#for external_pkg in hypre; do
#CONFOPTS="${CONFOPTS} --download-${external_pkg}=1"
#done
# HYPRE
if [ -f "/usr/lib/libHYPRE.so" ]; then
CONFOPTS="${CONFOPTS} --with-hypre-lib=/usr/lib/libHYPRE.so --with-hypre-include=/usr/include/hypre"
fi
# Kokkos
if [ -f "/usr/lib/libkokkoscore.so" ]; then
CONFOPTS="${CONFOPTS} --with-kokkos=1"
fi
# (Par)METIS
if [ -f "/usr/include/metis.h" ]; then
CONFOPTS="${CONFOPTS} --with-metis=1"
if [ -f "/usr/include/parmetis.h" ]; then
CONFOPTS="${CONFOPTS} --with-parmetis=1"
fi
fi
# MUMPS
if [ -f "/usr/lib/libmumps_common.so" ]; then
CONFOPTS="${CONFOPTS} --with-mumps=1"
fi
# ScaLAPACK
if [ -f "/usr/lib/pkgconfig/scalapack.pc" ]; then
CONFOPTS="${CONFOPTS} --with-scalapack=1"
fi
# Triangle
if [ -f "/usr/lib/libtriangle.so" ]; then
CONFOPTS="${CONFOPTS} --with-triangle=1"
fi
# Zoltan
if [ -f "/usr/lib/libzoltan.so" ]; then
CONFOPTS="${CONFOPTS} --with-zoltan=1"
fi
echo "${CONFOPTS}"
|