/[escript]/branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py
ViewVC logotype

Diff of /branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py

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

revision 1809 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 1827 by ksteube, Thu Oct 2 04:28:07 2008 UTC
# Line 58  class Test_DomainOnFinley(Test_Domain): Line 58  class Test_DomainOnFinley(Test_Domain):
58         self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")         self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
59         for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)         for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
60     def test_tagsFunctionOnBoundary(self):     def test_tagsFunctionOnBoundary(self):
61         ref_tags=[1, 2, 10, 20]         # For MPI a subdomain may be missing some tags and this test is expected to fail
62         tags=FunctionOnBoundary(self.domain).getListOfTags()         if getMPISizeWorld() == 1:
63         self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")           ref_tags=[1, 2, 10, 20]
64         for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)           tags=FunctionOnBoundary(self.domain).getListOfTags()
65             self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
66             for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
67     def test_tagsReducedFunctionOnBoundary(self):     def test_tagsReducedFunctionOnBoundary(self):
68         ref_tags=[1, 2, 10, 20]         # For MPI a subdomain may be missing some tags and this test is expected to fail
69         tags=ReducedFunctionOnBoundary(self.domain).getListOfTags()         if getMPISizeWorld() == 1:
70         self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")           ref_tags=[1, 2, 10, 20]
71         for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)           tags=ReducedFunctionOnBoundary(self.domain).getListOfTags()
72             self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
73             for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
74     def test_tagsFunctionOnContactOne(self):     def test_tagsFunctionOnContactOne(self):
75         ref_tags=[]         ref_tags=[]
76         tags=FunctionOnContactOne(self.domain).getListOfTags()         tags=FunctionOnContactOne(self.domain).getListOfTags()

Legend:
Removed from v.1809  
changed lines
  Added in v.1827

  ViewVC Help
Powered by ViewVC 1.1.26