/[escript]/trunk/finley/test/python/run_escriptOnFinley.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_escriptOnFinley.py

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

revision 4962 by jfenwick, Fri May 23 02:53:00 2014 UTC revision 4963 by jfenwick, Fri May 23 05:12:40 2014 UTC
# Line 285  class Test_DiracOnFinley(unittest.TestCa Line 285  class Test_DiracOnFinley(unittest.TestCa
285      if mpisize==1:      if mpisize==1:
286        self.assertEquals(v.toListOfTuples(),[(0.0, 0.5, 0.0), (0.5, 1.0, 0.0), (0.75, 0.25, 1), (1.0, 0.75, 1.0)])        self.assertEquals(v.toListOfTuples(),[(0.0, 0.5, 0.0), (0.5, 1.0, 0.0), (0.75, 0.25, 1), (1.0, 0.75, 1.0)])
287        self.assertEquals(v.getNumberOfDataPoints(), 4)        self.assertEquals(v.getNumberOfDataPoints(), 4)
288      self.assertEquals(inf(v[0]), 0)        self.assertEquals(inf(v[0]), 0)
289      self.assertEquals(inf(v[1]), 0.25)        self.assertEquals(inf(v[1]), 0.25)
290      self.assertEquals(Lsup(v[0]), 1)        self.assertEquals(Lsup(v[0]), 1)
291      self.assertEquals(Lsup(v[1]), 1)        self.assertEquals(Lsup(v[1]), 1)
292      v.setTaggedValue("A",(-10,0.5,-500))      v.setTaggedValue("A",(-10,0.5,-500))
293      self.assertEquals(inf(v[0]), -10)      if mpisize==1:
294      self.assertEquals(inf(v[1]), 0.5)        self.assertEquals(inf(v[0]), -10)
295      self.assertEquals(inf(v[2]),-500)        self.assertEquals(inf(v[1]), 0.5)
296          self.assertEquals(inf(v[2]),-500)
297      v.setTaggedValue(500,(-100,-100, -100)) # non-existant tag      v.setTaggedValue(500,(-100,-100, -100)) # non-existant tag
298      self.assertEquals(inf(v[0]), -10)      if mpisize==1:
299      self.assertEquals(inf(v[1]), 0.5)        self.assertEquals(inf(v[0]), -10)
300      self.assertEquals(z.showTagNames(), 'A, B, C, back, bottom, front, left, right, top')        self.assertEquals(inf(v[1]), 0.5)
301          self.assertEquals(z.showTagNames(), 'A, B, C, back, bottom, front, left, right, top')
302      self.assertEquals(z.getTag("C"), 42)      self.assertEquals(z.getTag("C"), 42)
303    
304    

Legend:
Removed from v.4962  
changed lines
  Added in v.4963

  ViewVC Help
Powered by ViewVC 1.1.26