-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAllwmake
More file actions
executable file
·43 lines (36 loc) · 981 Bytes
/
Allwmake
File metadata and controls
executable file
·43 lines (36 loc) · 981 Bytes
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
#!/bin/bash
cd ${0%/*} || exit 1 # run from this directory
# Stop at first error
set -e
# Check if OpenFOAM/FOAM has been sourced
if [[ -z "${WM_PROJECT}" ]]
then
echo "Please source the OpenFOAM/FOAM bashrc first!"
exit 1
fi
# Check required environment variaables are set
if [[ -z "${SOLIDS4FOAM_INST_DIR}" ]]
then
echo "Please set the SOLIDS4FOAM_INST_DIR environment variable!"
exit 1
fi
if [[ -z "${PYBIND11_INC_DIR}" ]]
then
echo "Please set the PYBIND11_INC_DIR environment variable!"
exit 1
fi
if [[ -z "${PYBIND11_LIB_DIR}" ]]
then
echo "Please set the PYBIND11_LIB_DIR environment variable!"
exit 1
fi
# Compile libraries
echo; echo "Compiling libraries"; echo
(cd src/libraries && ./Allwmake)
# Compile solvers
echo; echo "Compiling solvers"; echo
(cd src/solvers && ./Allwmake)
# Compile utilities
echo; echo "Compiling utilities"; echo
(cd src/utilities && ./Allwmake)
echo; echo; echo "All done: check for errors above"; echo