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

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

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

revision 773 by gross, Fri Jul 7 10:10:00 2006 UTC revision 798 by gross, Fri Aug 4 01:05:36 2006 UTC
# Line 40  class Test_LinearPDEOnFinley2DOrder1(Tes Line 40  class Test_LinearPDEOnFinley2DOrder1(Tes
40     ABS_TOL=1.e-8     ABS_TOL=1.e-8
41     def setUp(self):     def setUp(self):
42          self.domain = Rectangle(NE,NE,1)          self.domain = Rectangle(NE,NE,1)
43       def tearDown(self):
44            del self.domain
45    
46  class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do2):  class Test_LinearPDEOnFinley2DOrder2(Test_LinearPDE,Test_pdetools,Test_assemblage_2Do2):
47     RES_TOL=1.e-7     RES_TOL=1.e-7
48     ABS_TOL=1.e-8     ABS_TOL=1.e-8
49     def setUp(self):     def setUp(self):
50          self.domain = Rectangle(NE,NE,2)          self.domain = Rectangle(NE,NE,2)
51       def tearDown(self):
52            del self.domain
53    
54  class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1):  class Test_LinearPDEOnFinley3DOrder1(Test_LinearPDE,Test_pdetools,Test_assemblage_3Do1):
55     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 58  class Test_LinearPDEOnFinley3DOrder2(Tes Line 62  class Test_LinearPDEOnFinley3DOrder2(Tes
62     ABS_TOL=1.e-8     ABS_TOL=1.e-8
63     def setUp(self):     def setUp(self):
64          self.domain = Brick(NE,NE,NE,2)          self.domain = Brick(NE,NE,NE,2)
65       def tearDown(self):
66            del self.domain
67    
68  class Test_PoissonOnFinley(Test_Poisson):  class Test_PoissonOnFinley(Test_Poisson):
69     RES_TOL=1.e-7     RES_TOL=1.e-7
70     ABS_TOL=1.e-8     ABS_TOL=1.e-8
71     def setUp(self):     def setUp(self):
72          self.domain = Rectangle(NE,NE,2)          self.domain = Rectangle(NE,NE,2)
73       def tearDown(self):
74            del self.domain
75    
76    
77  class Test_AssemblePDEwithFinley_2Do1_Contact(Test_assemblage_2Do1_Contact):  class Test_AssemblePDEwithFinley_2Do1_Contact(Test_assemblage_2Do1_Contact):
# Line 77  class Test_AssemblePDEwithFinley_2Do1_Co Line 85  class Test_AssemblePDEwithFinley_2Do1_Co
85         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
86         d2.setX(d2.getX()+[0.5,0.])         d2.setX(d2.getX()+[0.5,0.])
87         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
88       def tearDown(self):
89            del self.domain
90    
91  class Test_AssemblePDEwithFinley_2Do2_Contact(Test_assemblage_2Do2_Contact):  class Test_AssemblePDEwithFinley_2Do2_Contact(Test_assemblage_2Do2_Contact):
92     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 89  class Test_AssemblePDEwithFinley_2Do2_Co Line 99  class Test_AssemblePDEwithFinley_2Do2_Co
99         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
100         d2.setX(d2.getX()+[0.5,0.])         d2.setX(d2.getX()+[0.5,0.])
101         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
102       def tearDown(self):
103            del self.domain
104    
105  class Test_AssemblePDEwithFinley_3Do1_Contact(Test_assemblage_3Do1_Contact):  class Test_AssemblePDEwithFinley_3Do1_Contact(Test_assemblage_3Do1_Contact):
106     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 101  class Test_AssemblePDEwithFinley_3Do1_Co Line 113  class Test_AssemblePDEwithFinley_3Do1_Co
113         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
114         d2.setX(d2.getX()+[0.5,0.,0.])         d2.setX(d2.getX()+[0.5,0.,0.])
115         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
116       def tearDown(self):
117            del self.domain
118    
119  class Test_AssemblePDEwithFinley_3Do2_Contact(Test_assemblage_3Do2_Contact):  class Test_AssemblePDEwithFinley_3Do2_Contact(Test_assemblage_3Do2_Contact):
120     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 113  class Test_AssemblePDEwithFinley_3Do2_Co Line 127  class Test_AssemblePDEwithFinley_3Do2_Co
127         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
128         d2.setX(d2.getX()+[0.5,0.,0.])         d2.setX(d2.getX()+[0.5,0.,0.])
129         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
130       def tearDown(self):
131            del self.domain
132    
133    
134  class Test_AssemblePDEwithFinley_2Do1_Contact_withElementsOnFace(Test_assemblage_2Do1_Contact):  class Test_AssemblePDEwithFinley_2Do1_Contact_withElementsOnFace(Test_assemblage_2Do1_Contact):
# Line 126  class Test_AssemblePDEwithFinley_2Do1_Co Line 142  class Test_AssemblePDEwithFinley_2Do1_Co
142         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
143         d2.setX(d2.getX()+[0.5,0.])         d2.setX(d2.getX()+[0.5,0.])
144         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
145       def tearDown(self):
146            del self.domain
147    
148  class Test_AssemblePDEwithFinley_2Do2_Contact_withElementsOnFace(Test_assemblage_2Do2_Contact):  class Test_AssemblePDEwithFinley_2Do2_Contact_withElementsOnFace(Test_assemblage_2Do2_Contact):
149     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 138  class Test_AssemblePDEwithFinley_2Do2_Co Line 156  class Test_AssemblePDEwithFinley_2Do2_Co
156         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
157         d2.setX(d2.getX()+[0.5,0.])         d2.setX(d2.getX()+[0.5,0.])
158         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
159       def tearDown(self):
160            del self.domain
161    
162  class Test_AssemblePDEwithFinley_3Do1_Contact_withElementsOnFace(Test_assemblage_3Do1_Contact):  class Test_AssemblePDEwithFinley_3Do1_Contact_withElementsOnFace(Test_assemblage_3Do1_Contact):
163     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 150  class Test_AssemblePDEwithFinley_3Do1_Co Line 170  class Test_AssemblePDEwithFinley_3Do1_Co
170         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
171         d2.setX(d2.getX()+[0.5,0.,0.])         d2.setX(d2.getX()+[0.5,0.,0.])
172         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
173       def tearDown(self):
174            del self.domain
175    
176  class Test_AssemblePDEwithFinley_3Do2_Contact_withElementsOnFace(Test_assemblage_3Do2_Contact):  class Test_AssemblePDEwithFinley_3Do2_Contact_withElementsOnFace(Test_assemblage_3Do2_Contact):
177     RES_TOL=1.e-7     RES_TOL=1.e-7
# Line 162  class Test_AssemblePDEwithFinley_3Do2_Co Line 184  class Test_AssemblePDEwithFinley_3Do2_Co
184         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))         ContinuousFunction(d2).setTags(2,Scalar(1,ContinuousFunction(d2)))
185         d2.setX(d2.getX()+[0.5,0.,0.])         d2.setX(d2.getX()+[0.5,0.,0.])
186         self.domain = JoinFaces([d1,d2])         self.domain = JoinFaces([d1,d2])
187       def tearDown(self):
188            del self.domain
189    
190  if __name__ == '__main__':  if __name__ == '__main__':
191     suite = unittest.TestSuite()     suite = unittest.TestSuite()

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

  ViewVC Help
Powered by ViewVC 1.1.26