Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (13 sloc) 455 Bytes
#!/bin/sh
inc=$1
test_range () {
cos_scale=$1;
echo 'cos_scale = ' $cos_scale
for n in $(seq $2 $3 $4); do
printf "%3d: " $n
./elliptic -dim $n,$n -exact 0 -cos_scale $cos_scale -gamma 4 -ksp_rtol 1e-12 -snes_rtol 1e-12 | grep 'Norm of error'
#./elliptic -dim $n,$n -exact 0 -cos_scale $cos_scale -gamma 4 -snes_max_it 1 -ksp_type preonly -pc_type lu # | grep 'Norm of error'
done
}
test_range 3 4 $inc 44
test_range "2.8" 4 $inc 44