jedbrown / spectral-petsc

Experiments with matrix-free Chebyshev collocation for nonlinear elliptic/Stokes problems with fully iterative solutions.

This URL has Read+Write access

spectral-petsc / tests.sh
100755 17 lines (13 sloc) 0.455 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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