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

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

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

revision 3933 by jfenwick, Thu Jun 14 01:01:03 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.dudley import Rectangle, Brick, LoadMesh, ReadMesh  from esys.dudley import Rectangle, Brick, LoadMesh, ReadMesh, ReadGmsh, ReadGmsh
38    
39  try:  try:
40       DUDLEY_WORKDIR=os.environ['DUDLEY_WORKDIR']       DUDLEY_WORKDIR=os.environ['DUDLEY_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    
145         def test_gmshTags(self):
146            tags=ReadGmsh(os.path.join(DUDLEY_TEST_MESH_PATH, "tagtest.fly"),2).showTagNames()
147            self.assertEqual(tags,'tag1, tag2, tag3','error with tags')
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=1, l0=1., l1=1., l2=1., optimize=False)            mydomain1 = Brick(n0=NE0, n1=NE1, n2=NE2, order=1, 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