-
Notifications
You must be signed in to change notification settings - Fork 2
/
dumux3_nompi.sh
60 lines (49 loc) · 1.37 KB
/
dumux3_nompi.sh
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
51
52
53
54
55
56
57
58
59
60
#
# 1. deletes current build
# 2. builds a non-mpi version
# 3. delete again, but keep rosi_richards_cyl
# 4. build mpi-version
# 5. copy rosi_richards_cyl to the right location
#
# run from DUMUX/dumux-rosi/
cd ..
# delete all builds
cd dumux
sudo rm build-cmake -rf
sudo rm CMakeCache.txt
cd ..
cd dumux-rosi
sudo rm build-cmake -rf
sudo rm CMakeCache.txt
cd ..
for MOD in common foamgrid geometry grid istl localfunctions pybindxi spgrid uggrid; do
cd dune-$MOD
sudo rm build-cmake -rf
sudo rm CMakeCache.txt
cd ..
done
# build without MPI
./dune-common/bin/dunecontrol --opts=dumux-rosi/cmake_nompi.opts all
# copy richards_cyl to DUMUX/
cp dumux-rosi/build-cmake/cpp/python_binding/rosi_richards_cyl*.so ./
cp dumux-rosi/build-cmake/cpp/python_binding/rosi_richardsnc_cyl*.so ./
# delete all builds
cd dumux
sudo rm build-cmake -rf
sudo rm CMakeCache.txt
cd ..
cd dumux-rosi
sudo rm build-cmake -rf
sudo rm CMakeCache.txt
cd ..
for MOD in common foamgrid geometry grid istl localfunctions pybindxi spgrid uggrid; do
cd dune-$MOD
sudo rm build-cmake -rf
sudo rm CMakeCache.txt
cd ..
done
# rebuild again with mpi
./dune-common/bin/dunecontrol --opts=dumux-rosi/cmake.opts all
# copy from DUMUX/ the non-mpi richards_cyl (overwriting the MPI version)
cp rosi_richards_cyl*.so dumux-rosi/build-cmake/cpp/python_binding/
cp rosi_richardsnc_cyl*.so dumux-rosi/build-cmake/cpp/python_binding/