main
|
Last change
on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago |
|
Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
991 bytes
|
| Rev | Line | |
|---|
| [2131108] | 1 | #!/bin/bash
|
|---|
| 2 | # script to test many sht cases
|
|---|
| 3 |
|
|---|
| 4 | id=`hg id`
|
|---|
| 5 | log="test_suite.log"
|
|---|
| 6 |
|
|---|
| 7 | function test1 {
|
|---|
| 8 | run="./time_SHT $1 -vector"
|
|---|
| 9 | echo $run
|
|---|
| 10 | echo "---" >> $log
|
|---|
| 11 | echo "*** $run *** " >> $log
|
|---|
| 12 | $run > tmp.out
|
|---|
| 13 | cat tmp.out | grep ERROR
|
|---|
| 14 | cat tmp.out | grep -i nan
|
|---|
| 15 | cat tmp.out >> $log
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | echo "beginning test suite for $id" > $log
|
|---|
| 19 |
|
|---|
| 20 | # first, do a huge transform :
|
|---|
| 21 | test1 "2047 -mres=15 -quickinit -iter=1"
|
|---|
| 22 |
|
|---|
| 23 | # even bigger :
|
|---|
| 24 | test1 "7975 -mres=145 -quickinit -iter=1"
|
|---|
| 25 |
|
|---|
| 26 | # without threads
|
|---|
| 27 | test1 "2047 -mres=15 -quickinit -iter=1 -nth=1"
|
|---|
| 28 |
|
|---|
| 29 | for switch in "" "-oop" "-transpose" "-schmidt" "-4pi"
|
|---|
| 30 | do
|
|---|
| 31 | for mode in "-quickinit" "-gauss" "-reg" "-fly" "-gauss -nth=1"
|
|---|
| 32 | do
|
|---|
| 33 | for lmax in 1 2 3 4 11 12 13 14 31 32 33 34 121 122 123 124
|
|---|
| 34 | do
|
|---|
| 35 | for mmax in 0 1 $lmax
|
|---|
| 36 | do
|
|---|
| 37 | test1 "$lmax -mmax=$mmax $mode $switch -iter=1"
|
|---|
| 38 | done
|
|---|
| 39 | done
|
|---|
| 40 | for nlat in 32 34 36 38 40 42 44 46
|
|---|
| 41 | do
|
|---|
| 42 | test1 "19 -mmax=10 -nlat=$nlat $mode $switch -iter=10"
|
|---|
| 43 | done
|
|---|
| 44 | done
|
|---|
| 45 | done
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.