# Diff of /trunk/ripley/test/python/run_diracOnRipley.py

revision 4983 by caltinay, Wed May 21 01:31:23 2014 UTC revision 4984 by sshaw, Mon Jun 2 02:50:34 2014 UTC
# Line 25  __url__="https://launchpad.net/escript-f Line 25  __url__="https://launchpad.net/escript-f
25
26  import os, sys  import os, sys
27  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
28    from esys.escriptcore.testing import *
29  from esys.escript import *  from esys.escript import *
30  from esys.escript.linearPDEs import LameEquation  from esys.escript.linearPDEs import LameEquation
31  from esys.ripley import Rectangle, Brick  from esys.ripley import Rectangle, Brick
# Line 201  class Test_DiracPoints(unittest.TestCase Line 202  class Test_DiracPoints(unittest.TestCase
202                      #remaining ranks must also exit, otherwise we'll lock up                      #remaining ranks must also exit, otherwise we'll lock up
203                      self.assertEqual(global_result, 0, "One or more ranks failed")                      self.assertEqual(global_result, 0, "One or more ranks failed")
204

205      def test_RectangleInterpolation(self):      def test_RectangleInterpolation(self):
206          for a in range(-1, (self.longEdge+self.numRanks)*2, self.numRanks*2):          for a in range(-1, (self.longEdge+self.numRanks)*2, self.numRanks*2):
207              a = a//2.              a = a//2.
# Line 230  class Test_DiracPoints(unittest.TestCase Line 230  class Test_DiracPoints(unittest.TestCase
230                  self.assertEqual(global_result, 0, "One or more ranks failed")                  self.assertEqual(global_result, 0, "One or more ranks failed")
231
232  if __name__ == '__main__':  if __name__ == '__main__':
233      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
234      suite.addTest(unittest.makeSuite(Test_DiracPoints))
s=unittest.TextTestRunner(verbosity=2).run(suite)
if not s.wasSuccessful():
sys.exit(1)
235

Legend:
 Removed from v.4983 changed lines Added in v.4984

 ViewVC Help Powered by ViewVC 1.1.26