/[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 1806 by ksteube, Wed Sep 24 23:39:00 2008 UTC revision 1807 by ksteube, Thu Sep 25 01:04:51 2008 UTC
# Line 39  __date__="$Date: 2006-09-26 12:19:18 +10 Line 39  __date__="$Date: 2006-09-26 12:19:18 +10
39  import unittest, sys  import unittest, sys
40    
41  from esys.escript import *  from esys.escript import *
42  from esys.finley import Rectangle, Brick, LoadMesh, ReadMesh, ReadMeshMPI  from esys.finley import Rectangle, Brick, LoadMesh, ReadMesh
43    
44  try:  try:
45       FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']       FINLEY_TEST_DATA=os.environ['FINLEY_TEST_DATA']
# Line 139  class InputOutput(unittest.TestCase): Line 139  class InputOutput(unittest.TestCase):
139       def test_mesh_read_rectangle_from_finley_file(self):       def test_mesh_read_rectangle_from_finley_file(self):
140      if getMPISizeWorld() < 16:      if getMPISizeWorld() < 16:
141        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)
142            mydomain2 = ReadMeshMPI(FINLEY_TEST_MESH_PATH+"rectangle_8x10.fly")            mydomain2 = ReadMesh(FINLEY_TEST_MESH_PATH+"rectangle_8x10.fly")
143            self.domainsEqual(mydomain1, mydomain2)            self.domainsEqual(mydomain1, mydomain2)
144    
145       def test_mesh_read_brick_from_finley_file(self):       def test_mesh_read_brick_from_finley_file(self):
146      if getMPISizeWorld() < 16:      if getMPISizeWorld() < 16:
147            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)
148            mydomain2 = ReadMeshMPI(FINLEY_TEST_MESH_PATH+"brick_8x10x12.fly")            mydomain2 = ReadMesh(FINLEY_TEST_MESH_PATH+"brick_8x10x12.fly")
149            self.domainsEqual(mydomain1, mydomain2)            self.domainsEqual(mydomain1, mydomain2)
150    
151  if __name__ == '__main__':  if __name__ == '__main__':

Legend:
Removed from v.1806  
changed lines
  Added in v.1807

  ViewVC Help
Powered by ViewVC 1.1.26