/[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 1754 by ksteube, Sun Sep 7 22:07:26 2008 UTC revision 1755 by ksteube, Mon Sep 8 01:34:40 2008 UTC
# Line 108  class InputOutput(unittest.TestCase): Line 108  class InputOutput(unittest.TestCase):
108      mydomain2 = Brick(n0=7, n1=11, n2=5, order=2, l0=1., l1=1., l2=1., optimize=True)      mydomain2 = Brick(n0=7, n1=11, n2=5, order=2, l0=1., l1=1., l2=1., optimize=True)
109          self.failUnless(domainsEqual(mydomain1, mydomain2), "Domains differ")          self.failUnless(domainsEqual(mydomain1, mydomain2), "Domains differ")
110    
111       def DISABLED_test_NetCDF(self):       def test_mesh_dump_to_NetCDF_rectangle(self):
112      if loadIsConfigured():      if loadIsConfigured():
113        mydomain1 = Rectangle(n0=2, n1=3, order=1, l0=1., l1=1.,        mydomain1 = Rectangle(n0=17, n1=111, order=1, l0=1., l1=1., optimize=False)
114          integrationOrder=-1, reducedIntegrationOrder=-1, periodic0=False, periodic1=False,        mydomain1.dump("tt.mesh.nc")
115          useElementsOnFace=False, useFullElementOrder=False, optimize=False)        mydomain2=LoadMesh("tt.mesh.nc")
116              self.failUnless(domainsEqual(mydomain1, mydomain2), "Domains differ")
117    
118         def test_mesh_dump_to_NetCDF_brick(self):
119        if loadIsConfigured():
120          mydomain1 = Brick(n0=7, n1=11, n2=5, order=2, l0=1., l1=1., l2=1., optimize=False)
121        mydomain1.dump("tt.mesh.nc")        mydomain1.dump("tt.mesh.nc")
122        mydomain2=LoadMesh("tt.mesh.nc")        mydomain2=LoadMesh("tt.mesh.nc")
123            self.failUnless(domainsEqual(mydomain1, mydomain2), "Domains differ")            self.failUnless(domainsEqual(mydomain1, mydomain2), "Domains differ")

Legend:
Removed from v.1754  
changed lines
  Added in v.1755

  ViewVC Help
Powered by ViewVC 1.1.26