/[escript]/branches/arrexp_2137_win_merge/finley/benchmarks/runbenchmark.py
ViewVC logotype

Annotation of /branches/arrexp_2137_win_merge/finley/benchmarks/runbenchmark.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 382 - (hide annotations)
Mon Dec 19 06:09:49 2005 UTC (13 years, 7 months ago) by gross
Original Path: trunk/finley/test/python/runbenchmark.py
File MIME type: text/x-python
File size: 2202 byte(s)
run finley benchmark
1 gross 382 #/usr/bin/python
2     # $Id:$
3    
4     #
5     # COPYRIGHT ACcESS 2004 - All Rights Reserved
6     #
7     # This software is the property of ACcESS. No part of this code
8     # may be copied in any form or by any means without the expressed written
9     # consent of ACcESS. Copying, use or modification of this software
10     # by any unauthorised person is illegal unless that
11     # person has a software license agreement with ACcESS.
12     #
13    
14     """
15     some benchmarks for tetsing the finley solver. The idea is to develop a set of standart benchmarks
16    
17     * Laplace2Dorder1_?k
18     * Laplace3Dorder2_?k
19    
20     where ? is approximatively the number of unknowns in 1000.
21    
22     @var __author__: name of author
23     @var __licence__: licence agreement
24     var __url__: url entry point on documentation
25     @var __version__: version
26     @var __date__: date of the version
27     """
28    
29     __author__="Lutz Gross, l.gross@uq.edu.au"
30     __licence__="contact: esys@access.uq.edu.au"
31     __url__="http://www.iservo.edu.au/esys/escript"
32     __version__="$Revision:$"
33     __date__="$Date:$"
34    
35     from esys.finley.finleybench import *
36     from esys.escript.benchmark import BenchmarkSuite,Benchmark
37    
38     thlist=[1,2,4,8,16,32,64,128]
39     show=True
40     ff=FinleyFilter()
41    
42     opt1=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.JACOBI,verbose=show)
43     opt2=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.ILU0,verbose=show)
44    
45     bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")
46     bm_L2Do1.addProblem(Laplace2DOrder1_30k())
47     bm_L2Do1.addProblem(Laplace2DOrder1_60k())
48     # bm_L2Do1.addProblem(Laplace2DOrder1_120k())
49     # bm_L2Do1.addProblem(Laplace2DOrder1_240k())
50     # bm_L2Do1.addProblem(Laplace2DOrder1_480k())
51     # bm_L2Do1.addProblem(Laplace2DOrder1_960k())
52     bm_L2Do1.addOptions(opt1)
53     bm_L2Do1.addOptions(opt2)
54    
55     bm_L2Do2=Benchmark("Laplace 2D (order 2)")
56     bm_L2Do2.addProblem(Laplace2DOrder2_30k())
57     bm_L2Do2.addProblem(Laplace2DOrder2_60k())
58     # bm_L2Do2.addProblem(Laplace2DOrder2_120k())
59     # bm_L2Do2.addProblem(Laplace2DOrder2_240k())
60     # bm_L2Do2.addProblem(Laplace2DOrder2_480k())
61     # bm_L2Do2.addProblem(Laplace2DOrder2_960k())
62     bm_L2Do2.addOptions(opt1)
63     bm_L2Do2.addOptions(opt2)
64    
65    
66     bms=BenchmarkSuite("Paso/Finley")
67     bms.addBenchmark(bm_L2Do1)
68     bms.addBenchmark(bm_L2Do2)
69     bms.run(scale=thlist)
70     print bms.getHTML(filter=ff)

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26