/[escript]/trunk/downunder/test/python/run_minimizers.py
ViewVC logotype

Diff of /trunk/downunder/test/python/run_minimizers.py

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

revision 4983 by sshaw, Mon May 26 04:18:19 2014 UTC revision 4984 by sshaw, Mon Jun 2 02:50:34 2014 UTC
# Line 24  __url__="https://launchpad.net/escript-f Line 24  __url__="https://launchpad.net/escript-f
24  import logging  import logging
25  import numpy as np  import numpy as np
26  import esys.escriptcore.utestselect as unittest  import esys.escriptcore.utestselect as unittest
27    from esys.escriptcore.testing import *
28  import sys  import sys
29  from esys.downunder.minimizers import *  from esys.downunder.minimizers import *
30  from esys.downunder.costfunctions import CostFunction  from esys.downunder.costfunctions import CostFunction
# Line 162  class TestMinimizerNLCG(unittest.TestCas Line 163  class TestMinimizerNLCG(unittest.TestCas
163          self.assertEqual(n[0], 11)          self.assertEqual(n[0], 11)
164    
165    
166  if __name__ == "__main__":  if __name__ == '__main__':
167      suite = unittest.TestSuite()      run_tests(__name__, exit_on_failure=True)
     suite.addTest(unittest.makeSuite(TestMinimizerLBFGS))  
     suite.addTest(unittest.makeSuite(TestMinimizerBFGS))  
     suite.addTest(unittest.makeSuite(TestMinimizerNLCG))  
     s=unittest.TextTestRunner(verbosity=2).run(suite)  
     if not s.wasSuccessful(): sys.exit(1)  
168    

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

  ViewVC Help
Powered by ViewVC 1.1.26