/[escript]/trunk/speckley/test/python/run_readWriteOnSpeckley.py
ViewVC logotype

Diff of /trunk/speckley/test/python/run_readWriteOnSpeckley.py

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

revision 6140 by jfenwick, Thu Mar 31 09:40:10 2016 UTC revision 6141 by caltinay, Wed Apr 6 03:51:30 2016 UTC
# Line 35  try: Line 35  try:
35  except KeyError:  except KeyError:
36       SPECKLEY_WORKDIR='/tmp'       SPECKLEY_WORKDIR='/tmp'
37    
38    HAVE_UNZIP = getEscriptParamInt('HAVE_UNZIP')
39    
40  #NE=4 # number elements, must be even  #NE=4 # number elements, must be even
41  #for x in [int(sqrt(mpiSize)),2,3,5,7,1]:  #for x in [int(sqrt(mpiSize)),2,3,5,7,1]:
42  #    NX=x  #    NX=x
# Line 435  class Test_readBinaryGridZippedSpeckley( Line 437  class Test_readBinaryGridZippedSpeckley(
437              return readBinaryGrid(filename, FS, (), 50000,              return readBinaryGrid(filename, FS, (), 50000,
438                  self.byteorder, self.datatype, first, expected, scale, reverse)                  self.byteorder, self.datatype, first, expected, scale, reverse)
439    
440          if not hasattr(speckleycpp, "_readBinaryGridFromZipped"):          if not HAVE_UNZIP:
441              raise unittest.SkipTest("unzip library not available (boost_iostreams)")              raise unittest.SkipTest("unzip library not available (boost_iostreams)")
442          return speckleycpp._readBinaryGridFromZipped(filename, FS, (), 50000,          return speckleycpp._readBinaryGridFromZipped(filename, FS, (), 50000,
443                  self.byteorder, self.datatype, first, expected, scale, reverse)                  self.byteorder, self.datatype, first, expected, scale, reverse)

Legend:
Removed from v.6140  
changed lines
  Added in v.6141

  ViewVC Help
Powered by ViewVC 1.1.26