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

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

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

revision 1828 by ksteube, Thu Oct 2 04:28:07 2008 UTC revision 1829 by ksteube, Thu Oct 2 05:40:30 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         # For MPI a subdomain may be missing some tags and this test is expected to fail         ref_tags=[1, 2, 10, 20]
62         if getMPISizeWorld() == 1:         tags=FunctionOnBoundary(self.domain).getListOfTags()
63           ref_tags=[1, 2, 10, 20]         # For an MPI-distributed domain some tags may be missing
64           tags=FunctionOnBoundary(self.domain).getListOfTags()         if getMPISizeWorld() == 1: self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
65           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")         for i in tags: self.failUnless(i in ref_tags,"tag %s is missing."%i)
          for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)  
66     def test_tagsReducedFunctionOnBoundary(self):     def test_tagsReducedFunctionOnBoundary(self):
67         # For MPI a subdomain may be missing some tags and this test is expected to fail         ref_tags=[1, 2, 10, 20]
68         if getMPISizeWorld() == 1:         tags=ReducedFunctionOnBoundary(self.domain).getListOfTags()
69           ref_tags=[1, 2, 10, 20]         # For an MPI-distributed domain some tags may be missing
70           tags=ReducedFunctionOnBoundary(self.domain).getListOfTags()         if getMPISizeWorld() == 1: self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
71           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")         for i in tags: self.failUnless(i in ref_tags,"tag %s is missing."%i)
          for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)  
72     def test_tagsFunctionOnContactOne(self):     def test_tagsFunctionOnContactOne(self):
73         ref_tags=[]         ref_tags=[]
74         tags=FunctionOnContactOne(self.domain).getListOfTags()         tags=FunctionOnContactOne(self.domain).getListOfTags()

Legend:
Removed from v.1828  
changed lines
  Added in v.1829

  ViewVC Help
Powered by ViewVC 1.1.26