/[escript]/branches/trilinos_from_5897/dudley/test/python/run_splitworldOnDudley.py
ViewVC logotype

Contents of /branches/trilinos_from_5897/dudley/test/python/run_splitworldOnDudley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6079 - (show annotations)
Mon Mar 21 12:22:38 2016 UTC (2 years, 11 months ago) by caltinay
File MIME type: text/x-python
File size: 1984 byte(s)
Big commit - making dudley much more like finley to make it more
managable. Fixed quite a few issues that had been fixed in finley.
Disposed of all ReducedNode/ReducedDOF entities that dudley never supported.
Compiles and passes tests.

1
2 ##############################################################################
3 #
4 # Copyright (c)2015-2016 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 from __future__ import print_function, division
18
19 __copyright__="""Copyright (c)2015-2016 by The University of Queensland
20 http://www.uq.edu.au
21 Primary Business: Queensland, Australia"""
22 __license__="""Licensed under the Open Software License version 3.0
23 http://www.opensource.org/licenses/osl-3.0.php"""
24 __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.dudley import Rectangle, Brick
30 from test_splitworld import Test_SplitWorld, sw_testing
31
32 NE=4 # number elements, must be even
33
34 class Test_SplitOnDudley(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_dudley_sw_2D(sw_testing):
42 def setUp(self):
43 from esys.dudley 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_dudley_sw_3D(sw_testing):
54 def setUp(self):
55 from esys.dudley 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)

  ViewVC Help
Powered by ViewVC 1.1.26