/[escript]/trunk/finley/test/python/run_splitworldOnFinley.py
ViewVC logotype

Contents of /trunk/finley/test/python/run_splitworldOnFinley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5703 - (show annotations)
Mon Jun 29 00:56:26 2015 UTC (4 years, 4 months ago) by jfenwick
File MIME type: text/x-python
File size: 1975 byte(s)
Adding/fixing split world tests for domains except speckley

1
2 ##############################################################################
3 #
4 # Copyright (c) 2015 by The University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Open Software License version 3.0
9 # http://www.opensource.org/licenses/osl-3.0.php
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17 __copyright__="""Copyright (c) 2015 by The University of Queensland
18 http://www.uq.edu.au
19 Primary Business: Queensland, Australia"""
20 __license__="""Licensed under the Open Software License version 3.0
21 http://www.opensource.org/licenses/osl-3.0.php"""
22 __url__="https://launchpad.net/escript-finley"
23
24 import esys.escriptcore.utestselect as unittest
25 from esys.escriptcore.testing import *
26 from esys.escript import *
27 from esys.finley import Rectangle, Brick, ReadMesh, ReadGmsh
28 from test_splitworld import Test_SplitWorld, sw_testing
29
30
31 mpisize=getMPISizeWorld()
32 NE=4 # number elements, must be even
33
34 class Test_SplitOnFinley(Test_SplitWorld):
35 def setUp(self):
36 self.domainpars=[Rectangle, NE, NE]
37
38 def tearDown(self):
39 del self.domainpars
40
41 class Test_finley_sw_2D(sw_testing):
42 def setUp(self):
43 from esys.finley import Rectangle
44 self.domain_ctr=Rectangle
45 self.domain_vec=(6,6)
46 self.domain_dict={}
47
48 def tearDown(self):
49 del self.domain_ctr
50 del self.domain_vec
51
52
53 class Test_finley_sw_3D(sw_testing):
54 def setUp(self):
55 from esys.finley import Brick
56 self.domain_ctr=Brick
57 self.domain_vec=(6,6,6)
58 self.domain_dict={}
59
60 def tearDown(self):
61 del self.domain_ctr
62 del self.domain_vec
63
64
65
66
67 if __name__ == '__main__':
68 run_tests(__name__, exit_on_failure=True)
69

  ViewVC Help
Powered by ViewVC 1.1.26