/[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 3933 by jfenwick, Fri Jun 15 05:02:42 2012 UTC revision 3934 by jfenwick, Fri Jul 13 09:01:16 2012 UTC
# Line 34  Test suite for input and output of meshe Line 34  Test suite for input and output of meshe
34  import unittest, sys  import unittest, sys
35    
36  from esys.escript import *  from esys.escript import *
37  from esys.finley import Rectangle, Brick, LoadMesh, ReadMesh, GetMeshFromFile  from esys.finley import Rectangle, Brick, LoadMesh, ReadMesh, GetMeshFromFile, ReadGmsh
38    
39  try:  try:
40       FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']       FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
# Line 141  class InputOutput(unittest.TestCase): Line 141  class InputOutput(unittest.TestCase):
141            mydomain2=LoadMesh(dumpfile)            mydomain2=LoadMesh(dumpfile)
142            self.domainsEqual(mydomain1, mydomain2)            self.domainsEqual(mydomain1, mydomain2)
143    
144         def test_gmshTags(self):
145            tags=ReadGmsh(os.path.join(FINLEY_TEST_MESH_PATH, "tagtest.fly"),2).showTagNames()
146            self.assertEqual(tags,'tag1, tag2, tag3','error with tags')
147    
148    
149       def test_mesh_dump_to_NetCDF_brick(self):       def test_mesh_dump_to_NetCDF_brick(self):
150          if loadIsConfigured():          if loadIsConfigured():
151            mydomain1 = Brick(n0=NE0, n1=NE1, n2=NE2, order=2, l0=1., l1=1., l2=1., optimize=False)            mydomain1 = Brick(n0=NE0, n1=NE1, n2=NE2, order=2, l0=1., l1=1., l2=1., optimize=False)

Legend:
Removed from v.3933  
changed lines
  Added in v.3934

  ViewVC Help
Powered by ViewVC 1.1.26