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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6523 - (hide annotations)
Tue Mar 7 06:50:34 2017 UTC (2 years, 8 months ago) by jfenwick
File MIME type: text/x-python
File size: 2012 byte(s)
UPDATE THE COPYRIGHT DATES

1 jfenwick 5461
2     ##############################################################################
3     #
4 jfenwick 6523 # Copyright (c)2015-2017 by The University of Queensland
5 jfenwick 5461 # http://www.uq.edu.au
6     #
7     # Primary Business: Queensland, Australia
8 jfenwick 6112 # Licensed under the Apache License, version 2.0
9     # http://www.apache.org/licenses/LICENSE-2.0
10 jfenwick 5461 #
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 sshaw 5706 from __future__ import print_function, division
18    
19 jfenwick 6523 __copyright__="""Copyright (c)2015-2017 by The University of Queensland
20 jfenwick 5461 http://www.uq.edu.au
21     Primary Business: Queensland, Australia"""
22 jfenwick 6112 __license__="""Licensed under the Apache License, version 2.0
23     http://www.apache.org/licenses/LICENSE-2.0"""
24 jfenwick 5461 __url__="https://launchpad.net/escript-finley"
25    
26     import esys.escriptcore.utestselect as unittest
27     from esys.escriptcore.testing import *
28     from esys.escript import *
29     from esys.finley import Rectangle, Brick, ReadMesh, ReadGmsh
30 jfenwick 5703 from test_splitworld import Test_SplitWorld, sw_testing
31 jfenwick 5461
32    
33     mpisize=getMPISizeWorld()
34     NE=4 # number elements, must be even
35    
36     class Test_SplitOnFinley(Test_SplitWorld):
37     def setUp(self):
38     self.domainpars=[Rectangle, NE, NE]
39    
40     def tearDown(self):
41     del self.domainpars
42 jfenwick 5703
43     class Test_finley_sw_2D(sw_testing):
44     def setUp(self):
45     from esys.finley import Rectangle
46     self.domain_ctr=Rectangle
47     self.domain_vec=(6,6)
48     self.domain_dict={}
49 jfenwick 5461
50 jfenwick 5703 def tearDown(self):
51     del self.domain_ctr
52     del self.domain_vec
53 jfenwick 5461
54    
55 jfenwick 5703 class Test_finley_sw_3D(sw_testing):
56     def setUp(self):
57     from esys.finley import Brick
58     self.domain_ctr=Brick
59     self.domain_vec=(6,6,6)
60     self.domain_dict={}
61    
62     def tearDown(self):
63     del self.domain_ctr
64     del self.domain_vec
65    
66    
67    
68    
69 jfenwick 5461 if __name__ == '__main__':
70     run_tests(__name__, exit_on_failure=True)
71    

  ViewVC Help
Powered by ViewVC 1.1.26