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

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

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

revision 2415 by jfenwick, Mon Mar 30 02:13:58 2009 UTC revision 2416 by gross, Wed May 13 06:03:59 2009 UTC
# Line 41  try: Line 41  try:
41  except KeyError:  except KeyError:
42       FINLEY_TEST_DATA='.'       FINLEY_TEST_DATA='.'
43    
44  FINLEY_TEST_MESH_PATH=FINLEY_TEST_DATA+"/data_meshes/"  FINLEY_TEST_MESH_PATH=os.path.join(FINLEY_TEST_DATA,"data_meshes")
45    
46  REL_TOL=1.e-6  REL_TOL=1.e-6
47    
# Line 132  class InputOutput(unittest.TestCase): Line 132  class InputOutput(unittest.TestCase):
132       def test_mesh_read_rectangle_from_finley_file(self):       def test_mesh_read_rectangle_from_finley_file(self):
133      if getMPISizeWorld() < 16:      if getMPISizeWorld() < 16:
134        mydomain1 = Rectangle(n0=8, n1=10, order=1, l0=1., l1=1., optimize=False)        mydomain1 = Rectangle(n0=8, n1=10, order=1, l0=1., l1=1., optimize=False)
135            mydomain2 = ReadMesh(FINLEY_TEST_MESH_PATH+"rectangle_8x10.fly")            mydomain2 = ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"rectangle_8x10.fly"))
136            self.domainsEqual(mydomain1, mydomain2)            self.domainsEqual(mydomain1, mydomain2)
137    
138       def test_mesh_read_brick_from_finley_file(self):       def test_mesh_read_brick_from_finley_file(self):
139      if getMPISizeWorld() < 16:      if getMPISizeWorld() < 16:
140            mydomain1 = Brick(n0=8, n1=10, n2=12, order=1, l0=1., l1=1., l2=1., optimize=False)            mydomain1 = Brick(n0=8, n1=10, n2=12, order=1, l0=1., l1=1., l2=1., optimize=False)
141            mydomain2 = ReadMesh(FINLEY_TEST_MESH_PATH+"brick_8x10x12.fly")            mydomain2 = ReadMesh(os.path.join(FINLEY_TEST_MESH_PATH,"brick_8x10x12.fly"))
142            self.domainsEqual(mydomain1, mydomain2)            self.domainsEqual(mydomain1, mydomain2)
143    
144  if __name__ == '__main__':  if __name__ == '__main__':

Legend:
Removed from v.2415  
changed lines
  Added in v.2416

  ViewVC Help
Powered by ViewVC 1.1.26