/[escript]/trunk/finley/benchmarks/runbenchmark.py
ViewVC logotype

Diff of /trunk/finley/benchmarks/runbenchmark.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/finley/test/python/runbenchmark.py revision 459 by gross, Tue Jan 24 07:51:02 2006 UTC trunk/finley/benchmarks/runbenchmark.py revision 2625 by jfenwick, Fri Aug 21 06:30:25 2009 UTC
# Line 1  Line 1 
 #/usr/bin/python  
 # $Id:$  
1    
2    ########################################################
3  #  #
4  #      COPYRIGHT ACcESS 2004 -  All Rights Reserved  # Copyright (c) 2003-2009 by University of Queensland
5    # Earth Systems Science Computational Center (ESSCC)
6    # http://www.uq.edu.au/esscc
7  #  #
8  #   This software is the property of ACcESS.  No part of this code  # Primary Business: Queensland, Australia
9  #   may be copied in any form or by any means without the expressed written  # Licensed under the Open Software License version 3.0
10  #   consent of ACcESS.  Copying, use or modification of this software  # http://www.opensource.org/licenses/osl-3.0.php
 #   by any unauthorised person is illegal unless that  
 #   person has a software license agreement with ACcESS.  
11  #  #
12    ########################################################
13    
14    __copyright__="""Copyright (c) 2003-2009 by University of Queensland
15    Earth Systems Science Computational Center (ESSCC)
16    http://www.uq.edu.au/esscc
17    Primary Business: Queensland, Australia"""
18    __license__="""Licensed under the Open Software License version 3.0
19    http://www.opensource.org/licenses/osl-3.0.php"""
20    __url__="https://launchpad.net/escript-finley"
21    
22  """  """
23  some benchmarks for tetsing the finley solver.  some benchmarks for tetsing the finley solver.
24    
25  @var __author__: name of author  :var __author__: name of author
26  @var __licence__: licence agreement  :var __licence__: licence agreement
27  var __url__: url entry point on documentation  var __url__: url entry point on documentation
28  @var __version__: version  :var __version__: version
29  @var __date__: date of the version  :var __date__: date of the version
30  """  """
31    
32  __author__="Lutz Gross, l.gross@uq.edu.au"  __author__="Lutz Gross, l.gross@uq.edu.au"
 __licence__="contact: esys@access.uq.edu.au"  
 __url__="http://www.iservo.edu.au/esys/escript"  
 __version__="$Revision:$"  
 __date__="$Date:$"  
33    
 from esys.finley.finleybench import *  
34  from esys.escript.benchmark import BenchmarkSuite,Benchmark  from esys.escript.benchmark import BenchmarkSuite,Benchmark
35    # from esys.finley.finleybench import *
36    from finleybench import *
37    
38    type="all"
39    type="mantle"
40    type="simple"
41    
42  thlist=[1,2,4,8,16]  thlist=[1,2,4,8,16]
43  # thlist=[1,2,4,8,16,32]  # thlist=[1,2,4,8,16,32]
# Line 37  thlist=[1,2,4,8,16] Line 46  thlist=[1,2,4,8,16]
46  show=True  show=True
47  ff=FinleyFilter()  ff=FinleyFilter()
48    
49  opt1=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.JACOBI,verbose=show)  opt1=FinleyOptions(solver_method=SolverOptions.PCG,preconditioner=SolverOptions.JACOBI,verbose=show)
50  opt2=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.ILU0,verbose=show)  opt2=FinleyOptions(solver_method=SolverOptions.PCG,preconditioner=SolverOptions.ILU0,verbose=show)
51  opt3=FinleyOptions(solver_method=LinearPDE.PCG,preconditioner=LinearPDE.RILU,verbose=show)  opt3=FinleyOptions(solver_method=SolverOptions.PCG,preconditioner=SolverOptions.RILU,verbose=show)
52  opt4=FinleyOptions(solver_method=LinearPDE.DIRECT,verbose=show)  opt4=FinleyOptions(solver_method=SolverOptions.DIRECT,verbose=show)
53  ops=(opt1,opt2,opt3,opt4)  ops=(opt1,opt3,opt4)
54    ops=(opt1,opt3)
55    
56  bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")  bm_L2Do1=Benchmark(name="Laplace 2D (order 1)")
57  bm_L2Do1.addProblem(Laplace2DOrder1_30k())  bm_L2Do1.addProblem(Laplace2DOrder1_30k())
# Line 721  bm_LA3D_o2_pen100_c6_n45.addProblem(Inho Line 731  bm_LA3D_o2_pen100_c6_n45.addProblem(Inho
731  bm_LA3D_o2_pen100_c6_n45.addProblem(InhomogeneousLame3DOrder2JumpE6Normal45Alpha100_15360k())  bm_LA3D_o2_pen100_c6_n45.addProblem(InhomogeneousLame3DOrder2JumpE6Normal45Alpha100_15360k())
732  map(bm_LA3D_o2_pen100_c6_n45.addOptions,ops)  map(bm_LA3D_o2_pen100_c6_n45.addOptions,ops)
733    
734  bms=BenchmarkSuite("Paso/Finley")  bm_CLA2D_o1=Benchmark(name="Lame 2D (compressible, order 1)")
735  # bms.addBenchmark(bm_L2Do1)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_30k())
736  # bms.addBenchmark(bm_L2Do2)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_60k())
737  # bms.addBenchmark(bm_L3Do1)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_120k())
738  # bms.addBenchmark(bm_L3Do2)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_240k())
739    bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_480k())
740  # bms.addBenchmark(bm_A2Do1g30)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_960k())
741  # bms.addBenchmark(bm_A2Do1g45)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_1920k())
742  # bms.addBenchmark(bm_A2Do2g30)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_3840k())
743  # bms.addBenchmark(bm_A2Do2g45)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_7680k())
744  # bms.addBenchmark(bm_A3Do1g30)  bm_CLA2D_o1.addProblem(CompressibleLame2DOrder1_15360k())
745  # bms.addBenchmark(bm_A3Do1g45)  map(bm_CLA2D_o1.addOptions,ops)
746  # bms.addBenchmark(bm_A3Do2g30)  
747  # bms.addBenchmark(bm_A3Do2g45)  bm_CLA2D_o1_c2=Benchmark(name="Lame 2D (compressible, order 1, contrast 1e2)")
748    bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_30k())
749  bms.addBenchmark(bm_LA2D_o1)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_60k())
750  bms.addBenchmark(bm_LA2D_o1_pen100)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_120k())
751  bms.addBenchmark(bm_LA2D_o1_c2)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_240k())
752  bms.addBenchmark(bm_LA2D_o1_pen100_c2)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_480k())
753  bms.addBenchmark(bm_LA2D_o1_c6)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_960k())
754  bms.addBenchmark(bm_LA2D_o1_pen100_c6)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_1920k())
755  bms.addBenchmark(bm_LA2D_o1_c2_n45)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_3840k())
756  bms.addBenchmark(bm_LA2D_o1_pen100_c2_n45)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_7680k())
757  bms.addBenchmark(bm_LA2D_o1_c6_n45)  bm_CLA2D_o1_c2.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE2_15360k())
758  bms.addBenchmark(bm_LA2D_o1_pen100_c6_n45)  map(bm_CLA2D_o1_c2.addOptions,ops)
759  bms.addBenchmark(bm_LA2D_o2)  
760  bms.addBenchmark(bm_LA2D_o2_pen100)  bm_CLA2D_o1_c6=Benchmark(name="Lame 2D (compressible, order 1, contrast 1e6)")
761  bms.addBenchmark(bm_LA2D_o2_c2)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_30k())
762  bms.addBenchmark(bm_LA2D_o2_pen100_c2)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_60k())
763  bms.addBenchmark(bm_LA2D_o2_c6)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_120k())
764  bms.addBenchmark(bm_LA2D_o2_pen100_c6)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_240k())
765  bms.addBenchmark(bm_LA2D_o2_c2_n45)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_480k())
766  bms.addBenchmark(bm_LA2D_o2_pen100_c2_n45)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_960k())
767  bms.addBenchmark(bm_LA2D_o2_c6_n45)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_1920k())
768  bms.addBenchmark(bm_LA2D_o2_pen100_c6_n45)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_3840k())
769  bms.addBenchmark(bm_LA3D_o1)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_7680k())
770  bms.addBenchmark(bm_LA3D_o1_pen100)  bm_CLA2D_o1_c6.addProblem(CompressibleInhomgeneousLame2DOrder1JumpE6_15360k())
771  bms.addBenchmark(bm_LA3D_o1_c2)  map(bm_CLA2D_o1_c6.addOptions,ops)
772  bms.addBenchmark(bm_LA3D_o1_pen100_c2)  
773  bms.addBenchmark(bm_LA3D_o1_c6)  bm_CLA2D_o1_c2_n45=Benchmark(name="Lame 2D (compressible, order 1, contrast 1e2, normal 45deg)")
774  bms.addBenchmark(bm_LA3D_o1_pen100_c6)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_30k())
775  bms.addBenchmark(bm_LA3D_o1_c2_n45)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_60k())
776  bms.addBenchmark(bm_LA3D_o1_pen100_c2_n45)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_120k())
777  bms.addBenchmark(bm_LA3D_o1_c6_n45)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_240k())
778  bms.addBenchmark(bm_LA3D_o1_pen100_c6_n45)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_480k())
779  bms.addBenchmark(bm_LA3D_o2)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_960k())
780  bms.addBenchmark(bm_LA3D_o2_pen100)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_1920k())
781  bms.addBenchmark(bm_LA3D_o2_c2)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_3840k())
782  bms.addBenchmark(bm_LA3D_o2_pen100_c2)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_7680k())
783  bms.addBenchmark(bm_LA3D_o2_c6)  bm_CLA2D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE2Normal45_15360k())
784  bms.addBenchmark(bm_LA3D_o2_pen100_c6)  map(bm_CLA2D_o1_c2_n45.addOptions,ops)
785  bms.addBenchmark(bm_LA3D_o2_c2_n45)  
786  bms.addBenchmark(bm_LA3D_o2_pen100_c2_n45)  bm_CLA2D_o1_c6_n45=Benchmark(name="Lame 2D (compressible, order 1, contrast 1e6, normal 45deg)")
787  bms.addBenchmark(bm_LA3D_o2_c6_n45)  bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_30k())
788  bms.addBenchmark(bm_LA3D_o2_pen100_c6_n45)  bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_60k())
789    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_120k())
790    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_240k())
791    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_480k())
792    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_960k())
793    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_1920k())
794    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_3840k())
795    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_7680k())
796    bm_CLA2D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder1JumpE6Normal45_15360k())
797    map(bm_CLA2D_o1_c6_n45.addOptions,ops)
798    
799    bm_CLA2D_o2=Benchmark(name="Lame 2D (compressible, order 2)")
800    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_30k())
801    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_60k())
802    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_120k())
803    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_240k())
804    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_480k())
805    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_960k())
806    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_1920k())
807    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_3840k())
808    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_7680k())
809    bm_CLA2D_o2.addProblem(CompressibleLame2DOrder2_15360k())
810    map(bm_CLA2D_o2.addOptions,ops)
811    
812    bm_CLA2D_o2_c2=Benchmark(name="Lame 2D (compressible, order 2, contrast 1e2)")
813    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_30k())
814    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_60k())
815    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_120k())
816    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_240k())
817    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_480k())
818    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_960k())
819    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_1920k())
820    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_3840k())
821    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_7680k())
822    bm_CLA2D_o2_c2.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE2_15360k())
823    map(bm_CLA2D_o2_c2.addOptions,ops)
824    
825    bm_CLA2D_o2_c6=Benchmark(name="Lame 2D (compressible, order 2, contrast 1e6)")
826    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_30k())
827    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_60k())
828    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_120k())
829    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_240k())
830    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_480k())
831    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_960k())
832    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_1920k())
833    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_3840k())
834    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_7680k())
835    bm_CLA2D_o2_c6.addProblem(CompressibleInhomgeneousLame2DOrder2JumpE6_15360k())
836    map(bm_CLA2D_o2_c6.addOptions,ops)
837    
838    bm_CLA2D_o2_c2_n45=Benchmark(name="Lame 2D (compressible, order 2, contrast 1e2, normal 45deg)")
839    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_30k())
840    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_60k())
841    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_120k())
842    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_240k())
843    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_480k())
844    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_960k())
845    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_1920k())
846    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_3840k())
847    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_7680k())
848    bm_CLA2D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE2Normal45_15360k())
849    map(bm_CLA2D_o2_c2_n45.addOptions,ops)
850    
851    bm_CLA2D_o2_c6_n45=Benchmark(name="Lame 2D (compressible, order 2, contrast 1e6, normal 45deg)")
852    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_30k())
853    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_60k())
854    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_120k())
855    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_240k())
856    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_480k())
857    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_960k())
858    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_1920k())
859    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_3840k())
860    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_7680k())
861    bm_CLA2D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame2DOrder2JumpE6Normal45_15360k())
862    map(bm_CLA2D_o2_c6_n45.addOptions,ops)
863    
864    bm_CLA3D_o1=Benchmark(name="Lame 3D (compressible, order 1)")
865    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_30k())
866    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_60k())
867    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_120k())
868    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_240k())
869    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_480k())
870    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_960k())
871    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_1920k())
872    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_3840k())
873    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_7680k())
874    bm_CLA3D_o1.addProblem(CompressibleLame3DOrder1_15360k())
875    map(bm_CLA3D_o1.addOptions,ops)
876    
877    bm_CLA3D_o1_c2=Benchmark(name="Lame 3D (compressible, order 1, contrast 1e2)")
878    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_30k())
879    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_60k())
880    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_120k())
881    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_240k())
882    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_480k())
883    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_960k())
884    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_1920k())
885    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_3840k())
886    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_7680k())
887    bm_CLA3D_o1_c2.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE2_15360k())
888    map(bm_CLA3D_o1_c2.addOptions,ops)
889    
890    bm_CLA3D_o1_c6=Benchmark(name="Lame 3D (compressible, order 1, contrast 1e6)")
891    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_30k())
892    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_60k())
893    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_120k())
894    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_240k())
895    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_480k())
896    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_960k())
897    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_1920k())
898    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_3840k())
899    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_7680k())
900    bm_CLA3D_o1_c6.addProblem(CompressibleInhomgeneousLame3DOrder1JumpE6_15360k())
901    map(bm_CLA3D_o1_c6.addOptions,ops)
902    
903    bm_CLA3D_o1_c2_n45=Benchmark(name="Lame 3D (compressible, order 1, contrast 1e2, normal 45deg)")
904    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_30k())
905    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_60k())
906    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_120k())
907    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_240k())
908    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_480k())
909    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_960k())
910    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_1920k())
911    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_3840k())
912    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_7680k())
913    bm_CLA3D_o1_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE2Normal45_15360k())
914    map(bm_CLA3D_o1_c2_n45.addOptions,ops)
915    
916    bm_CLA3D_o1_c6_n45=Benchmark(name="Lame 3D (compressible, order 1, contrast 1e6, normal 45deg)")
917    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_30k())
918    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_60k())
919    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_120k())
920    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_240k())
921    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_480k())
922    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_960k())
923    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_1920k())
924    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_3840k())
925    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_7680k())
926    bm_CLA3D_o1_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder1JumpE6Normal45_15360k())
927    map(bm_CLA3D_o1_c6_n45.addOptions,ops)
928    
929    bm_CLA3D_o2=Benchmark(name="Lame 3D (compressible, order 2)")
930    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_30k())
931    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_60k())
932    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_120k())
933    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_240k())
934    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_480k())
935    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_960k())
936    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_1920k())
937    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_3840k())
938    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_7680k())
939    bm_CLA3D_o2.addProblem(CompressibleLame3DOrder2_15360k())
940    map(bm_CLA3D_o2.addOptions,ops)
941    
942    bm_CLA3D_o2_c2=Benchmark(name="Lame 3D (compressible, order 2, contrast 1e2)")
943    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_30k())
944    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_60k())
945    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_120k())
946    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_240k())
947    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_480k())
948    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_960k())
949    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_1920k())
950    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_3840k())
951    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_7680k())
952    bm_CLA3D_o2_c2.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE2_15360k())
953    map(bm_CLA3D_o2_c2.addOptions,ops)
954    
955    bm_CLA3D_o2_c6=Benchmark(name="Lame 3D (compressible, order 2, contrast 1e6)")
956    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_30k())
957    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_60k())
958    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_120k())
959    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_240k())
960    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_480k())
961    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_960k())
962    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_1920k())
963    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_3840k())
964    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_7680k())
965    bm_CLA3D_o2_c6.addProblem(CompressibleInhomgeneousLame3DOrder2JumpE6_15360k())
966    map(bm_CLA3D_o2_c6.addOptions,ops)
967    
968    bm_CLA3D_o2_c2_n45=Benchmark(name="Lame 3D (compressible, order 2, contrast 1e2, normal 45deg)")
969    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_30k())
970    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_60k())
971    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_120k())
972    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_240k())
973    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_480k())
974    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_960k())
975    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_1920k())
976    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_3840k())
977    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_7680k())
978    bm_CLA3D_o2_c2_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE2Normal45_15360k())
979    map(bm_CLA3D_o2_c2_n45.addOptions,ops)
980    
981    bm_CLA3D_o2_c6_n45=Benchmark(name="Lame 3D (compressible, order 2, contrast 1e6, normal 45deg)")
982    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_30k())
983    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_60k())
984    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_120k())
985    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_240k())
986    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_480k())
987    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_960k())
988    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_1920k())
989    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_3840k())
990    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_7680k())
991    bm_CLA3D_o2_c6_n45.addProblem(CompressibleInhomogeneousLame3DOrder2JumpE6Normal45_15360k())
992    map(bm_CLA3D_o2_c6_n45.addOptions,ops)
993    
994    
995    bms=BenchmarkSuite("Paso/Finley (%s benchmark)"%type)
996    
997    # 2D ==========================================================
998    bms.addBenchmark(bm_L2Do1)
999    bms.addBenchmark(bm_L2Do2)
1000    
1001    if type in ["simple"]:
1002       bms.addBenchmark(bm_CLA2D_o1)
1003       bms.addBenchmark(bm_CLA2D_o2)
1004    
1005    if type in ["all", "mantle"]:
1006       bms.addBenchmark(bm_CLA2D_o2)
1007       bms.addBenchmark(bm_LA2D_o2_pen100)
1008    
1009       bms.addBenchmark(bm_CLA2D_o2_c6)
1010       bms.addBenchmark(bm_LA2D_o2_pen100_c6)
1011    
1012       bms.addBenchmark(bm_CLA2D_o2_c6_n45)
1013       bms.addBenchmark(bm_LA2D_o2_pen100_c6_n45)
1014    
1015    if type in ["all", "linear elastic"]:
1016       bms.addBenchmark(bm_LA2D_o2)
1017       bms.addBenchmark(bm_LA2D_o2_c6)
1018       bms.addBenchmark(bm_LA2D_o2_c6_n45)
1019    
1020    # 3D ==========================================================
1021    bms.addBenchmark(bm_L3Do1)
1022    bms.addBenchmark(bm_L3Do2)
1023    if type in ["simple"]:
1024       bms.addBenchmark(bm_CLA3D_o1)
1025       bms.addBenchmark(bm_CLA3D_o2)
1026        
1027    if type in ["all", "mantle"]:
1028       bms.addBenchmark(bm_CLA3D_o2)
1029       bms.addBenchmark(bm_LA3D_o2_pen100)
1030    
1031       bms.addBenchmark(bm_CLA3D_o2_c6)
1032       bms.addBenchmark(bm_LA3D_o2_pen100_c6)
1033    
1034       bms.addBenchmark(bm_CLA3D_o2_c6_n45)
1035       bms.addBenchmark(bm_LA3D_o2_pen100_c6_n45)
1036    
1037    if type in ["all", "linear elastic"]:
1038       bms.addBenchmark(bm_LA3D_o2)
1039       bms.addBenchmark(bm_LA3D_o2_c6)
1040       bms.addBenchmark(bm_LA3D_o2_c6_n45)
1041    
1042    if type in ["all"]:
1043       bms.addBenchmark(bm_A2Do1g30)
1044       bms.addBenchmark(bm_A2Do2g30)
1045       bms.addBenchmark(bm_A2Do2g45)
1046       bms.addBenchmark(bm_A2Do1g45)
1047       bms.addBenchmark(bm_A3Do1g30)
1048       bms.addBenchmark(bm_A3Do1g45)
1049       bms.addBenchmark(bm_A3Do2g30)
1050       bms.addBenchmark(bm_A3Do2g45)
1051    
1052       bms.addBenchmark(bm_LA2D_o1)
1053       bms.addBenchmark(bm_LA2D_o1_c2)
1054       bms.addBenchmark(bm_LA2D_o1_c6)
1055    
1056       bms.addBenchmark(bm_LA2D_o1_c2_n45)
1057       bms.addBenchmark(bm_LA2D_o1_c6_n45)
1058    
1059       bms.addBenchmark(bm_LA2D_o1_pen100)
1060       bms.addBenchmark(bm_LA2D_o1_pen100_c2)
1061       bms.addBenchmark(bm_LA2D_o1_pen100_c6)
1062    
1063       bms.addBenchmark(bm_LA2D_o1_pen100_c2_n45)
1064       bms.addBenchmark(bm_LA2D_o1_pen100_c6_n45)
1065    
1066       bms.addBenchmark(bm_LA2D_o2_c2)
1067    
1068       bms.addBenchmark(bm_LA2D_o2_c2_n45)
1069       bms.addBenchmark(bm_LA2D_o2_pen100_c2)
1070       bms.addBenchmark(bm_LA2D_o2_pen100_c2_n45)
1071    
1072    
1073       bms.addBenchmark(bm_LA3D_o1)
1074       bms.addBenchmark(bm_LA3D_o1_pen100)
1075       bms.addBenchmark(bm_LA3D_o1_c2)
1076       bms.addBenchmark(bm_LA3D_o1_pen100_c2)
1077       bms.addBenchmark(bm_LA3D_o1_c6)
1078       bms.addBenchmark(bm_LA3D_o1_pen100_c6)
1079       bms.addBenchmark(bm_LA3D_o1_c2_n45)
1080       bms.addBenchmark(bm_LA3D_o1_pen100_c2_n45)
1081       bms.addBenchmark(bm_LA3D_o1_c6_n45)
1082       bms.addBenchmark(bm_LA3D_o1_pen100_c6_n45)
1083       bms.addBenchmark(bm_LA3D_o2_c2)
1084       bms.addBenchmark(bm_LA3D_o2_pen100)
1085       bms.addBenchmark(bm_LA3D_o2_pen100_c2)
1086       bms.addBenchmark(bm_LA3D_o2_c2_n45)
1087       bms.addBenchmark(bm_LA3D_o2_pen100_c2_n45)
1088      
1089       bms.addBenchmark(bm_CLA2D_o1)
1090       bms.addBenchmark(bm_CLA2D_o1_c2)
1091       bms.addBenchmark(bm_CLA2D_o1_c6)
1092       bms.addBenchmark(bm_CLA2D_o1_c2_n45)
1093       bms.addBenchmark(bm_CLA2D_o1_c6_n45)
1094      
1095       bms.addBenchmark(bm_CLA2D_o2_c2)
1096       bms.addBenchmark(bm_CLA2D_o2_c2_n45)
1097      
1098       bms.addBenchmark(bm_CLA3D_o1)
1099       bms.addBenchmark(bm_CLA3D_o1_c2)
1100       bms.addBenchmark(bm_CLA3D_o1_c6)
1101       bms.addBenchmark(bm_CLA3D_o1_c2_n45)
1102       bms.addBenchmark(bm_CLA3D_o1_c6_n45)
1103      
1104       bms.addBenchmark(bm_CLA3D_o2_c2)
1105       bms.addBenchmark(bm_CLA3D_o2_c2_n45)
1106      
1107  bms.run(scale=thlist)  bms.run(scale=thlist)
1108  out=bms.getHTML(filter=ff)  out=bms.getHTML(filter=ff)
1109  print out  print out

Legend:
Removed from v.459  
changed lines
  Added in v.2625

  ViewVC Help
Powered by ViewVC 1.1.26