-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAllrun
More file actions
executable file
·35 lines (31 loc) · 981 Bytes
/
Allrun
File metadata and controls
executable file
·35 lines (31 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
#!/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 variables 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
# Run the cases
(cd 3x3LinReg && python selfsim_linear_elastic.py && python post_processor.py &)
(cd 3x3NN && python selfsim_linear_elastic.py && python post_processor.py &)
(cd 6x6LinReg && python selfsim_linear_elastic.py && python post_processor.py &)
(cd 6x6NN && python selfsim_linear_elastic.py && python post_processor.py &)