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

Diff of /trunk/finley/test/python/run_utilOnFinley.py

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

revision 777 by gross, Wed Jul 12 08:54:45 2006 UTC revision 798 by gross, Fri Aug 4 01:05:36 2006 UTC
# Line 20  class Test_UtilOnFinley(Test_util,Test_s Line 20  class Test_UtilOnFinley(Test_util,Test_s
20     def setUp(self):     def setUp(self):
21         self.domain =Rectangle(NE,NE+1,2)         self.domain =Rectangle(NE,NE+1,2)
22         self.functionspace = FunctionOnBoundary(self.domain) # due to a bug in escript python needs to hold a reference to the domain         self.functionspace = FunctionOnBoundary(self.domain) # due to a bug in escript python needs to hold a reference to the domain
23       def tearDown(self):
24           del self.functionspace
25           del self.domain
26    
27  class Test_Util_SpatialFunctionsOnFinley2DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary):  class Test_Util_SpatialFunctionsOnFinley2DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary):
28      def setUp(self):      def setUp(self):
# Line 28  class Test_Util_SpatialFunctionsOnFinley Line 31  class Test_Util_SpatialFunctionsOnFinley
31          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=1)          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=1)
32          d2.setX(d2.getX()+[0.5,0.])          d2.setX(d2.getX()+[0.5,0.])
33          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
34        def tearDown(self):
35            del self.order
36            del self.domain
37    
38  class Test_Util_SpatialFunctionsOnFinley2DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary):  class Test_Util_SpatialFunctionsOnFinley2DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary):
39      def setUp(self):      def setUp(self):
# Line 36  class Test_Util_SpatialFunctionsOnFinley Line 42  class Test_Util_SpatialFunctionsOnFinley
42          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=2)          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=2)
43          d2.setX(d2.getX()+[0.5,0.])          d2.setX(d2.getX()+[0.5,0.])
44          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
45        def tearDown(self):
46            del self.order
47            del self.domain
48    
49  class Test_Util_SpatialFunctionsOnFinley3DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary):  class Test_Util_SpatialFunctionsOnFinley3DOrder1(Test_Util_SpatialFunctions_noGradOnBoundary):
50      def setUp(self):      def setUp(self):
# Line 44  class Test_Util_SpatialFunctionsOnFinley Line 53  class Test_Util_SpatialFunctionsOnFinley
53          d2 = Brick(n0=NE/2,n1=NE,n2=NE,l0=0.5,order=1)          d2 = Brick(n0=NE/2,n1=NE,n2=NE,l0=0.5,order=1)
54          d2.setX(d2.getX()+[0.5,0.,0.])          d2.setX(d2.getX()+[0.5,0.,0.])
55          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
56        def tearDown(self):
57            del self.order
58            del self.domain
59    
60  class Test_Util_SpatialFunctionsOnFinley3DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary):  class Test_Util_SpatialFunctionsOnFinley3DOrder2(Test_Util_SpatialFunctions_noGradOnBoundary):
61      def setUp(self):      def setUp(self):
# Line 52  class Test_Util_SpatialFunctionsOnFinley Line 64  class Test_Util_SpatialFunctionsOnFinley
64          d2 = Brick(n0=NE/2,n1=NE,n2=NE,l0=0.5,order=2)          d2 = Brick(n0=NE/2,n1=NE,n2=NE,l0=0.5,order=2)
65          d2.setX(d2.getX()+[0.5,0.,0.])          d2.setX(d2.getX()+[0.5,0.,0.])
66          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
67        def tearDown(self):
68            del self.order
69            del self.domain
70    
71  class Test_Util_SpatialFunctionsOnFinley2DOrder1useElementsOnFace(Test_Util_SpatialFunctions):  class Test_Util_SpatialFunctionsOnFinley2DOrder1useElementsOnFace(Test_Util_SpatialFunctions):
72      def setUp(self):      def setUp(self):
# Line 60  class Test_Util_SpatialFunctionsOnFinley Line 75  class Test_Util_SpatialFunctionsOnFinley
75          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=1,useElementsOnFace=True)          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=1,useElementsOnFace=True)
76          d2.setX(d2.getX()+[0.5,0.])          d2.setX(d2.getX()+[0.5,0.])
77          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
78        def tearDown(self):
79            del self.order
80            del self.domain
81    
82  class Test_Util_SpatialFunctionsOnFinley2DOrder2useElementsOnFace(Test_Util_SpatialFunctions):  class Test_Util_SpatialFunctionsOnFinley2DOrder2useElementsOnFace(Test_Util_SpatialFunctions):
83      def setUp(self):      def setUp(self):
# Line 68  class Test_Util_SpatialFunctionsOnFinley Line 86  class Test_Util_SpatialFunctionsOnFinley
86          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=2,useElementsOnFace=True)          d2 = Rectangle(n0=NE/2,n1=NE,l0=0.5,order=2,useElementsOnFace=True)
87          d2.setX(d2.getX()+[0.5,0.])          d2.setX(d2.getX()+[0.5,0.])
88          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
89        def tearDown(self):
90            del self.order
91            del self.domain
92    
93  class Test_Util_SpatialFunctionsOnFinley3DOrder1useElementsOnFace(Test_Util_SpatialFunctions):  class Test_Util_SpatialFunctionsOnFinley3DOrder1useElementsOnFace(Test_Util_SpatialFunctions):
94      def setUp(self):      def setUp(self):
# Line 76  class Test_Util_SpatialFunctionsOnFinley Line 97  class Test_Util_SpatialFunctionsOnFinley
97          d2 = Brick(n0=NE/2+1,n1=NE,n2=NE,l0=0.5,order=1,useElementsOnFace=True)          d2 = Brick(n0=NE/2+1,n1=NE,n2=NE,l0=0.5,order=1,useElementsOnFace=True)
98          d2.setX(d2.getX()+[0.5,0.,0.])          d2.setX(d2.getX()+[0.5,0.,0.])
99          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
100        def tearDown(self):
101            del self.order
102            del self.domain
103    
104  class Test_Util_SpatialFunctionsOnFinley3DOrder2useElementsOnFace(Test_Util_SpatialFunctions):  class Test_Util_SpatialFunctionsOnFinley3DOrder2useElementsOnFace(Test_Util_SpatialFunctions):
105      def setUp(self):      def setUp(self):
# Line 84  class Test_Util_SpatialFunctionsOnFinley Line 108  class Test_Util_SpatialFunctionsOnFinley
108          d2 = Brick(n0=NE/2+1,n1=NE,n2=NE,l0=0.5,order=2,useElementsOnFace=True)          d2 = Brick(n0=NE/2+1,n1=NE,n2=NE,l0=0.5,order=2,useElementsOnFace=True)
109          d2.setX(d2.getX()+[0.5,0.,0.])          d2.setX(d2.getX()+[0.5,0.,0.])
110          self.domain = JoinFaces([d1,d2])          self.domain = JoinFaces([d1,d2])
111        def tearDown(self):
112            del self.order
113            del self.domain
114    
115  if __name__ == '__main__':  if __name__ == '__main__':
116     suite = unittest.TestSuite()     suite = unittest.TestSuite()

Legend:
Removed from v.777  
changed lines
  Added in v.798

  ViewVC Help
Powered by ViewVC 1.1.26