-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathdtest.csh
executable file
·49 lines (43 loc) · 1.18 KB
/
dtest.csh
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
#!/bin/csh
set ofile = dtest.out # output file
if ( -e $ofile ) then
rm -f $ofile
endif
echo "Double-precision testing output" > $ofile
set MATRICES = (LAPACK g20.rua)
set NVAL = (9 19)
set NRHS = (5)
set LWORK = (0 10000000)
#
# Loop through all matrices ...
#
foreach m ($MATRICES)
#--------------------------------------------
# Test matrix types generated in LAPACK-style
#--------------------------------------------
if ($m == 'LAPACK') then
echo '== LAPACK test matrices' >> $ofile
foreach n ($NVAL)
foreach s ($NRHS)
foreach l ($LWORK)
echo '' >> $ofile
echo 'n='$n 'nrhs='$s 'lwork='$l >> $ofile
./dtest -t "LA" -l $l -n $n -s $s >> $ofile
end
end
end
#--------------------------------------------
# Test a specified sparse matrix
#--------------------------------------------
else
echo '' >> $ofile
echo '== sparse matrix:' $m >> $ofile
foreach s ($NRHS)
foreach l ($LWORK)
echo '' >> $ofile
echo 'nrhs='$s 'lwork='$l >> $ofile
./dtest -t "SP" -s $s -l $l -f ../EXAMPLE/$m >> $ofile
end
end
endif
end