-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrunCheck.sh
executable file
·305 lines (262 loc) · 10.1 KB
/
runCheck.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#!/bin/sh
INPUTRCM='retangulo.dat retangulo_rcm.dat'
INPUTVTK='retangulo.dat'
#regime estacionario difusao
INPUTDIF1='ex3_60_0_gglc.dat ex3_60_3_gglc.dat
ex3_60_0_ggln.dat ex3_60_3_ggln.dat
ex3_60_0_lSquare.dat ex3_60_3_lSquare.dat'
INPUTDIF2='ex2_1_gglc.dat ex2_2_gglc.dat
ex2_1_ggln.dat ex2_2_ggln.dat
ex2_1_lSquare.dat ex2_2_lSquare.dat'
INPUTDIF3='ex3_60_0_gglc.dat ex3_60_3_gglc.dat
ex3_60_0_ggln.dat ex3_60_3_ggln.dat
ex3_60_0_lSquare.dat ex3_60_3_lSquare.dat'
INPUTDIF4='ex4_1_ls.dat ex4_2_ls.dat
ex4_1_ggln.dat ex4_2_ggln.dat
ex4_1_gglc.dat ex4_2_gglc.dat'
INPUTDIF5='ex5_1_ls.dat ex5_2_ls.dat
ex5_1_ggln.dat ex5_2_ggln.dat
ex5_1_gglc.dat ex5_2_gglc.dat'
INPUTDIF3DEX1='ex1_3d_hexa_0_lsqr.dat ex1_3d_hexa_1_lsqr.dat
ex1_3d_hexa_0_ls.dat ex1_3d_hexa_1_ls.dat
ex1_3d_hexa_0_ggln.dat ex1_3d_hexa_1_ggln.dat
ex1_3d_hexa_0_gglc.dat ex1_3d_hexa_1_gglc.dat
ex1_3d_tetra_0_ls.dat ex1_3d_tetra_1_ls.dat
ex1_3d_tetra_0_lsqr.dat ex1_3d_tetra_1_lsqr.dat
ex1_3d_tetra_0_ggln.dat ex1_3d_tetra_1_ggln.dat
ex1_3d_tetra_0_gglc.dat ex1_3d_tetra_1_gglc.dat'
INPUTDIF3DEX2='ex2_3D_0_ls.dat ex2_3D_1_ls.dat
ex2_3D_0_ggln.dat ex2_3D_1_ggln.dat
ex2_3D_0_gglc.dat ex2_3D_1_gglc.dat
ex2_3D_0_lsqr.dat ex2_3D_1_lsqr.dat'
INPUTDIF3DEX2NONORT='ex2_3d_tetra_0_ggln.dat
ex2_3d_tetra_0_gglc.dat
ex2_3d_tetra_0_ls.dat
ex2_3d_tetra_0_lsqr.dat'
INPUTDIF3DEX3='ex3_3d_hexa_0_ls.dat ex3_3d_hexa_1_ls.dat
ex3_3d_hexa_0_ggln.dat ex3_3d_hexa_1_ggln.dat
ex3_3d_hexa_0_gglc.dat ex3_3d_hexa_1_gglc.dat
ex3_3d_hexa_0_lsqr.dat ex3_3d_hexa_1_lsqr.dat
ex3_3d_tetra_0_ggln.dat ex3_3d_tetra_1_ggln.dat
ex3_3d_tetra_0_gglc.dat ex3_3d_tetra_1_gglc.dat
ex3_3d_tetra_0_ls.dat ex3_3d_tetra_1_ls.dat
ex3_3d_tetra_0_lsqr.dat ex3_3d_tetra_1_lsqr.dat'
INPUTDIF3DEX4='ex4_3d_tetra_0_gglc.dat ex4_3d_tetra_1_gglc.dat
ex4_3d_tetra_0_ggln.dat ex4_3d_tetra_1_ggln.dat
ex4_3d_tetra_0_lsqr.dat ex4_3d_tetra_1_lsqr.dat
ex4_3d_tetra_0_ls.dat ex4_3d_tetra_1_ls.dat
ex4_3d_hexa_0_ls.dat ex4_3d_hexa_1_ls.dat
ex4_3d_hexa_0_lsqr.dat ex4_3d_hexa_1_lsqr.dat
ex4_3d_hexa_0_ggln.dat ex4_3d_hexa_1_ggln.dat
ex4_3d_hexa_0_gglc.dat ex4_3d_hexa_1_gglc.dat'
# transiente difusao
INPUTDIF2TIME='ex2_1_gglc.dat ex2_1_gglc_e.dat'
INPUTDIF4TIME='ex4_1_gglc.dat ex4_1_gglc_e.dat'
INPUTDIF5TIME='ex5_1_gglc.dat ex5_1_gglc_e.dat'
INPUTDIF3DEX2TIME='ex2_3D_1_gglc.dat ex2_3D_1_gglc_e.dat'
# transporte estacionario
INPUTTRANS2D='ex2_1_transporte_gglc.dat ex2_1_transporte_ggln.dat ex2_1_transporte_ls.dat'
INPUTTRANS3D='ex3_3D_1_transporte.dat ex3_3D_1_transporte_tetra.dat'
NAMEBIN=mfvCell_gnu_mpi_O3
#difusao
ex1=true
ex2=true
ex3=false
ex4=true
ex5=true
ex1_3D=true
ex2_3D=true
ex2_3D_NONORT=true
ex3_3D=true
ex4_3D=true
# dinamico
ex2t=true
ex4t=true
ex5t=true
ex2_3Dt=true
#transporte
ex2Transporte2D=true
ex3Transporte3D=true
#gerando o executavel
echo `make clean` > /dev/null
echo `make` > /dev/null
mv bin/$NAMEBIN test/binTest
cp test/input/*.dat test/binTest
#rodando os teste COO
#test/binTest/run_coo.sh "$INPUTRCM" "$NAMEBIN"
#rodando os teste VTK
#cp test/input/vtk/*.dat test/binTest
#test/binTest/run_vtk.sh "$INPUTVTK" "$NAMEBIN"
#if [ $? == 1 ];then
# exit 1
#fi
#rodando os teste de transporte
if $ex2Transporte2D ; then
cp test/input/transport/orthogonal/2D/gaussGreenCell/*.dat test/binTest
cp test/input/transport/orthogonal/2D/gaussGreenNode/*.dat test/binTest
cp test/input/transport/orthogonal/2D/LeastSquare/*.dat test/binTest
#
test/binTest/run_trans_ex2_2D.sh "$INPUTTRANS2D" "$NAMEBIN"
if [ $? == 1 ]; then
exit 1
fi
fi
if $ex3Transporte3D ; then
cp test/input/transport/orthogonal/3D/gaussGreenCell/*.dat test/binTest
cp test/input/transport/non_orthogonal/3D/gaussGreenCell/*.dat test/binTest
#
test/binTest/run_trans_ex3_3D.sh "$INPUTTRANS3D" "$NAMEBIN"
if [ $? == 1 ]; then
exit 1
fi
fi
#rodando os teste de difusao
if $ex2 ; then
cp test/input/dif/orthogonal/2D/gaussGreenCell/*.dat test/binTest
cp test/input/dif/orthogonal/2D/gaussGreenNode/*.dat test/binTest
cp test/input/dif/orthogonal/2D/LeastSquare/*.dat test/binTest
#
test/binTest/run_dif_exato.sh "$INPUTDIF2" "$NAMEBIN"
if [ $? == 1 ]; then
exit 1
fi
fi
if $ex3 ; then
cp test/input/dif/non_orthogonal/2D/60/gaussGreenCell/*.dat test/binTest
cp test/input/dif/non_orthogonal/2D/60/gaussGreenNode/*.dat test/binTest
cp test/input/dif/non_orthogonal/2D/60/LeastSquare/*.dat test/binTest
test/binTest/run_dif.sh "$INPUTDIF3" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
if $ex4 ; then
cp test/input/dif/orthogonal/2D/gaussGreenCell/*.dat test/binTest
cp test/input/dif/orthogonal/2D/gaussGreenNode/*.dat test/binTest
cp test/input/dif/orthogonal/2D/LeastSquare/*.dat test/binTest
test/binTest/run_dif_exato_Ex4.sh "$INPUTDIF4" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
#
if $ex5 ; then
cp test/input/dif/orthogonal/2D/gaussGreenCell/*.dat test/binTest
cp test/input/dif/orthogonal/2D/gaussGreenNode/*.dat test/binTest
cp test/input/dif/orthogonal/2D/LeastSquare/*.dat test/binTest
test/binTest/run_dif_exato_Ex5.sh "$INPUTDIF5" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
# difusao 3D
if $ex2_3D ; then
cp test/input/dif/orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/orthogonal/3D/LeastSquareQR/*.dat test/binTest
test/binTest/run_dif_exato_3D_Ex2.sh "$INPUTDIF3DEX2" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
# difusao 3D
if $ex3_3D ; then
for f in test/input/dif/non_orthogonal/3D/*.tar.gz ; do tar -xvzf $f -C test/binTest ; done
cp test/input/dif/non_orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquareQR/*.dat test/binTest
test/binTest/run_dif_exato_3D_Ex3.sh "$INPUTDIF3DEX3" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
# difusao 3D
if $ex2_3D_NONORT ; then
for f in test/input/dif/non_orthogonal/3D/*.tar.gz ; do tar -xvzf $f -C test/binTest ; done
cp test/input/dif/non_orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquareQR/*.dat test/binTest
test/binTest/run_dif_exato_3D_Ex2.sh "$INPUTDIF3DEX2NONORT" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
# difusao 3D
if $ex1_3D ; then
for f in test/input/dif/orthogonal/3D/*.tar.gz ; do tar -xvzf $f -C test/binTest ; done
for f in test/input/dif/non_orthogonal/3D/*.tar.gz ; do tar -xvzf $f -C test/binTest ; done
cp test/input/dif/orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/orthogonal/3D/LeastSquareQR/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquareQR/*.dat test/binTest
test/binTest/run_dif_exato_3D_Ex1.sh "$INPUTDIF3DEX1" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
# difusao 3D
if $ex1_3D ; then
for f in test/input/dif/orthogonal/3D/*.tar.gz ; do tar -xvzf $f -C test/binTest ; done
for f in test/input/dif/non_orthogonal/3D/*.tar.gz ; do tar -xvzf $f -C test/binTest ; done
cp test/input/dif/orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/orthogonal/3D/LeastSquareQR/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/GreenGaussCell/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/GreenGaussNode/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquare/*.dat test/binTest
cp test/input/dif/non_orthogonal/3D/LeastSquareQR/*.dat test/binTest
test/binTest/run_dif_exato_3D_Ex4.sh "$INPUTDIF3DEX4" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
if $ex2t ; then
cp test/input/dif/orthogonal/2D_temp/gaussGreenCell/*.dat test/binTest
# cp test/input/dif/orthogonal/2D/gaussGreenNode/*.dat test/binTest
# cp test/input/dif/orthogonal/2D/LeastSquare/*.dat test/binTest
#
test/binTest/run_dif_exato_temp.sh "$INPUTDIF2TIME" "$NAMEBIN"
if [ $? == 1 ]; then
exit 1
fi
fi
if $ex4t ; then
cp test/input/dif/orthogonal/2D_temp/gaussGreenCell/*.dat test/binTest
# cp test/input/dif/orthogonal/2D/gaussGreenNode/*.dat test/binTest
# cp test/input/dif/orthogonal/2D/LeastSquare/*.dat test/binTest
#
test/binTest/run_dif_exato_Ex4_temp.sh "$INPUTDIF4TIME" "$NAMEBIN"
if [ $? == 1 ]; then
exit 1
fi
fi
if $ex5t ; then
cp test/input/dif/orthogonal/2D_temp/gaussGreenCell/*.dat test/binTest
# cp test/input/dif/orthogonal/2D/gaussGreenNode/*.dat test/binTest
# cp test/input/dif/orthogonal/2D/LeastSquare/*.dat test/binTest
#
test/binTest/run_dif_exato_Ex5_temp.sh "$INPUTDIF5TIME" "$NAMEBIN"
if [ $? == 1 ]; then
exit 1
fi
fi
# difusao 3D
if $ex2_3Dt ; then
cp test/input/dif/orthogonal/3D_temp/GreenGaussCell/*.dat test/binTest
test/binTest/run_dif_exato_3D_Ex2_temp.sh "$INPUTDIF3DEX2TIME" "$NAMEBIN"
if [ $? == 1 ];then
exit 1
fi
fi
DIR="test/binTest"
rm $DIR/*.dat $DIR/*.vtk $DIR/*.txt $DIR/*.csv $DIR/$NAMEBIN
#rm $DIR/*.mtx
exit 0