v0.10.0
test1.sh
Go to the documentation of this file.
1 #mpirun -np 9 ./fe_approximation \
2 #-my_file analytical_solution.h5m \
3 #-my_is_partitioned false \
4 #-wave_number 3 \
5 #-wave_direction 1,0,0 \
6 #-save_postproc_mesh false \
7 #-pc_factor_mat_solver_package mumps \
8 #-ksp_monitor \
9 #-my_order 8 \
10 #-pc_type lu \
11 #-ksp_type fgmres \
12 #-my_max_post_proc_ref_level 0 \
13 #-amplitude_of_incident_wave 1 \
14 #-duffy true \
15 #-lobatto true \
16 #-adaptivity false \
17 #-add_incident_wave false 2>&1
18 #ODISP="1"
19 #ORDER="2"
20 #if [ "$ORDER" -gt "$ODISP" ]
21 #then echo "god order"
22 #else echo "it is odisp"
23 #fi
24 
25 WAVE_NUMBER="3"
26 
27 ODISP="3"
28 KKK="1"
29 SOLVER="mumps"
30 BEST_NB_PRC="8"
31 # example="kick"
32 
33 
34 NB_PROC="8"
35 ERROR_TYPE="l2"
36 PRIORI_TYPE="1"
37 ORDER="4"
38 b="3"
39 COUNT="0"
40 # echo $ORDER'>'$4 | bc -l
41 #
42 
43 # if [ "echo $ORDER'>'$4 | bc -l" -eq "1" ]
44 # then echo $ORDER is greater than 4
45 # else echo $ORDER is smaller than 4
46 # fi
47 for COUNT in "1" "2" "3" "4" "5"
48 do
49 COUNT=`expr $COUNT + 1`
50 echo COUNT = $COUNT
51 if [ "$COUNT" -gt "4" ]
52 then NB_PROC=`expr 8`
53 else NB_PROC=`expr 2`
54 fi
55 echo we have $NB_PROC
56 done
57 
58 
59 
60 for ERROR_TYPE in "l2" "h1"
61 do
62 echo "ERROR_TYPE = $ERROR_TYPE"
63 if [ $ERROR_TYPE = "h1" ]
64 then PRIORI_TYPE="2"
65 fi
66 echo "PRIORI_TYPE = $PRIORI_TYPE"
67 
68 done
69 
70 echo "ACOUSTIC_PROBLEM cols 1"
71 echo "ACOUSTIC_PROBLEM cols 2"
72 
73 
74 
75 # echo "ACOUSTIC_PROBLEM cols ACOUSTIC_PROBLEM cols" | example=$(grep --line-buffered -i "ACOUSTIC_PROBLEM" | uniq)
76 # grep only affects line just above its commands,
77 echo "gogo"
78 echo "gogo"
79 # echo "ACOUSTIC_PROBLEM cols 3" | echo $(grep --line-buffered -i "ACOUSTIC_PROBLEM" | sort | uniq) | echo $(grep --line-buffered -i "ACOUSTIC_PROBLEM cols" | sort | uniq) |
80 # if grep --line-buffered -i "ACOUSTIC_PROBLEM cols"; then
81 # echo found
82 # else
83 # echo not found
84 # fi
85 
86 
87 echo "ACOUSTIC_PROBLEM cols 3" |
88 if grep --line-buffered -i "ACOUSTIC_PROBLEM cols"; then
89  echo found
90 else
91  echo not found
92 fi
93 
94 # for mLine in `grep -n 'COUSTIC_PROBLEM'`
95 # do
96 # echo 'mLine = '${mLine}
97 # done
98 # echo $example
99 # if [echo $(grep --line-buffered -i "ACOUSTIC_PROBLEM cols" | sort | uniq) = "ACOUSTIC_PROBLEM cols"]
100 # then echo "ACOUSTIC_PROBLEM cols is true"
101 # fi
102 # echo "Cao 1 2 3" |
103 # if [$(grep --line-buffered -i "ACOUSTIC_PROBLEM cols" | sort | uniq) = "ACOUSTIC_PROBLEM cols"]
104 # then echo "ACOUSTIC_PROBLEM cols is true"
105 # fi
106 
107 #
108 #
109 # for SOLVER in "mumps" "batman" "superman"
110 # do
111 # echo $SOLVER
112 # done
113 #
114 # for WAVE_NUMBER in "3" "5" "10"
115 # do
116 #
117 # for ODISP in "3" "2"
118 # do
119 #
120 # BEST_NB_PRC=`expr 2 + $(echo $(( 2 * $ODISP )))`
121 # echo $BEST_NB_PRC
122 # # echo impinging_cylinder_${ODISP}.cub
123 # mpirun -np $BEST_NB_PRC ./best_approximation \
124 # -my_file impinging_cylinder_${ODISP}.cub \
125 # -my_is_partitioned false \
126 # -wave_number $WAVE_NUMBER \
127 # -wave_direction 1,0,0 \
128 # -analytical_solution_type hard_cylinder_scatter_wave \
129 # -save_postproc_mesh false \
130 # -ksp_type fgmres \
131 # -pc_type lu \
132 # -pc_factor_mat_solver_package superlu_dist \
133 # -ksp_monitor \
134 # -my_order 8 \
135 # -my_max_post_proc_ref_level 0 \
136 # -add_incident_wave false \
137 # -lobatto true
138 #
139 # done
140 # done