This repository has been archived by the owner on Jan 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paper.sh
executable file
·87 lines (76 loc) · 1.57 KB
/
paper.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
clear
clear
clear
mkdir -p export
mkdir -p plot
mkdir -p build
rm -rf plot/*
# # VERIFICATION
# rm -rf export/*
# export sourceName="mainSolution"
# # COMPILE
# cd build
# cmake ..
# make
# cd ..
# echo ""
# PARAMETERS
declare -a gridType=()
declare -a interpScheme=()
declare -a problemsSolved=0
declare -a inputOptions
declare -a medium
gridType+=("staggered")
interpScheme+=("NA")
gridType+=("collocated")
interpScheme+=("CDS")
gridType+=("collocated")
interpScheme+=("I2DPIS")
numRuns=${#gridType[@]}
# problemsSolved+=2
# problemsSolved+=4
# medium="gulfMexicoShale";
# # SOLVE
# echo "-- Solving benchmarking problems"
# echo ""
# for ((i=0; i<numRuns; i++));
# do
# cd build
# ./$sourceName ${gridType[$i]} ${interpScheme[$i]} ${medium} ${problemsSolved}
# echo ""
# cd ..
# done
# # PLOT
# echo "-- Plotting results"
# python3 -W ignore ./postpro/terzaghiPlotSolutionPaper.py ${medium}
# python3 -W ignore ./postpro/mandelPlotSolutionPaper.py ${medium}
# echo ""
# STABILITY
rm -rf export/*
export sourceName="mainStability"
# COMPILE
cd build
cmake ..
make
cd ..
echo ""
# PARAMETERS
problemsSolved+=8
medium="abyssalRedClay";
# RUN
echo "-- Testing method's stability"
echo ""
for ((i=0; i<numRuns; i++));
do
cd build
./$sourceName ${gridType[$i]} ${interpScheme[$i]} ${medium} ${problemsSolved}
echo ""
cd ..
done
# PLOT
echo "-- Plotting results"
# python3 -W ignore ./postpro/terzaghiPlotStabilityPaper.py ${medium}
# python3 -W ignore ./postpro/mandelPlotStabilityPaper.py ${medium}
python3 -W ignore ./postpro/stripfootPlotStabilityPaper.py ${medium}
echo ""
rm -rf export/*