/[ascend]/trunk/pygtk/test.py
ViewVC logotype

Diff of /trunk/pygtk/test.py

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

revision 973 by johnpye, Tue Dec 19 10:48:38 2006 UTC revision 974 by johnpye, Tue Dec 19 11:00:57 2006 UTC
# Line 33  class TestSolver(Ascend): Line 33  class TestSolver(Ascend):
33          self.L.load(filename)          self.L.load(filename)
34          T = self.L.findType(modelname)          T = self.L.findType(modelname)
35          M = T.getSimulation('sim')          M = T.getSimulation('sim')
36            M.build()
37          M.solve(ascpy.Solver(solvername),ascpy.SolverReporter())              M.solve(ascpy.Solver(solvername),ascpy.SolverReporter())    
38          M.run(T.getMethod('self_test'))          M.run(T.getMethod('self_test'))
39    
# Line 43  class TestSolver(Ascend): Line 44  class TestSolver(Ascend):
44          self._run('testconopt',"CONOPT")                          self._run('testconopt',"CONOPT")                
45    
46      def testcmslv2(self):      def testcmslv2(self):
47          self._run('testcmslv2',"CONOPT")              self._run('testcmslv2',"CMSlv")
48    
49      def testsunpos1(self):      def testsunpos1(self):
50          self._run('example_1_6_1',"QRSlv","johnpye/sunpos.a4c")          self._run('example_1_6_1',"QRSlv","johnpye/sunpos.a4c")

Legend:
Removed from v.973  
changed lines
  Added in v.974

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22