/[escript]/trunk/dudley/test/python/run_utilOnDudley.py
ViewVC logotype

Contents of /trunk/dudley/test/python/run_utilOnDudley.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5148 - (show annotations)
Mon Sep 15 01:25:23 2014 UTC (4 years, 11 months ago) by caltinay
File MIME type: text/x-python
File size: 3206 byte(s)
Merging ripley diagonal storage + CUDA support into trunk.
Options file version has been incremented due to new options
'cuda' and 'nvccflags'.

1
2 ##############################################################################
3 #
4 # Copyright (c) 2003-2014 by 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) 2003-2014 by 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 test_util import Test_util as Test_util
27 from test_util import Test_Util_SpatialFunctions, Test_Util_SpatialFunctions_noGradOnBoundary_noContact
28
29 from esys.escript import *
30 from esys.dudley import Rectangle,Brick,ReadMesh
31 import sys
32 import os
33
34 if HAVE_SYMBOLS:
35 from test_symfuncs import Test_symfuncs
36 else:
37 print("Skipping symbolic tests since sympy is not available")
38 class Test_symfuncs:
39 pass
40
41 try:
42 DUDLEY_TEST_DATA=os.environ['DUDLEY_TEST_DATA']
43 except KeyError:
44 DUDLEY_TEST_DATA='.'
45
46 DUDLEY_TEST_MESH_PATH=os.path.join(DUDLEY_TEST_DATA,"data_meshes")
47
48
49 NE=4 # number elements, must be even
50
51 class Test_UtilOnDudley(Test_util,Test_symfuncs):
52 def setUp(self):
53 self.domain =Rectangle(NE,NE+1,1)
54 self.functionspace = FunctionOnBoundary(self.domain) # due to a bug in escript python needs to hold a reference to the domain
55 def tearDown(self):
56 del self.functionspace
57 del self.domain
58
59 class Test_Util_SpatialFunctionsOnDudleyTet2DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
60 def setUp(self):
61 self.order=1
62 self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_2D_order1.fly"),optimize=False)
63 def tearDown(self):
64 del self.order
65 del self.domain
66
67
68 class Test_Util_SpatialFunctionsOnDudleyTet3DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
69 def setUp(self):
70 self.order=1
71 self.domain = ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH,"tet_3D_order1.fly"),optimize=False)
72 def tearDown(self):
73 del self.order
74 del self.domain
75
76 class Test_Util_SpatialFunctionsOnDudleyRectOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
77 def setUp(self):
78 self.order=1
79 self.domain = Rectangle(n0=NE,n1=NE,order=1)
80 def tearDown(self):
81 del self.order
82 del self.domain
83
84
85 class Test_Util_SpatialFunctionsOnDudleyBrickOrder1(Test_Util_SpatialFunctions_noGradOnBoundary_noContact):
86 def setUp(self):
87 self.order=1
88 self.domain = Brick(n0=NE,n1=NE,n2=NE,order=1)
89 def tearDown(self):
90 del self.order
91 del self.domain
92
93
94
95 if __name__ == '__main__':
96 run_tests(__name__, exit_on_failure=True)
97

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision
svn:mergeinfo /branches/diaplayground/dudley/test/python/run_utilOnDudley.py:4940-5147 /branches/lapack2681/finley/test/python/run_utilOnFinley.py:2682-2741 /branches/pasowrap/dudley/test/python/run_utilOnDudley.py:3661-3674 /branches/py3_attempt2/dudley/test/python/run_utilOnDudley.py:3871-3891 /branches/restext/finley/test/python/run_utilOnFinley.py:2610-2624 /branches/ripleygmg_from_3668/dudley/test/python/run_utilOnDudley.py:3669-3791 /branches/stage3.0/finley/test/python/run_utilOnFinley.py:2569-2590 /branches/symbolic_from_3470/dudley/test/python/run_utilOnDudley.py:3471-3974 /branches/symbolic_from_3470/ripley/test/python/dudley/test/python/run_utilOnDudley.py:3517-3974 /release/3.0/finley/test/python/run_utilOnFinley.py:2591-2601 /trunk/ripley/test/python/dudley/test/python/run_utilOnDudley.py:3480-3515

  ViewVC Help
Powered by ViewVC 1.1.26