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

Diff of /trunk/test.py

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

revision 2616 by jpye, Mon Apr 23 22:03:47 2012 UTC revision 2617 by jpye, Fri May 11 19:52:18 2012 UTC
# Line 181  class TestSystem(AscendSelfTester): Line 181  class TestSystem(AscendSelfTester):
181          M.run(self.L.findType('testlog10').getMethod('on_load'))          M.run(self.L.findType('testlog10').getMethod('on_load'))
182          if platform.system!="Windows":          if platform.system!="Windows":
183              f = file('temp.png','wb')              f = file('temp.png','wb')
184                # currently M.write is failing...JP 20120511.
185              M.write(f,"dot")              M.write(f,"dot")
186              f.close()              f.close()
187          else:          else:
# Line 1495  class TestSlvReq(Ascend): Line 1496  class TestSlvReq(Ascend):
1496          H = ascpy.SolverHooks(ascpy.SolverReporter())          H = ascpy.SolverHooks(ascpy.SolverReporter())
1497          ascpy.SolverHooksManager_Instance().setHooks(H)          ascpy.SolverHooksManager_Instance().setHooks(H)
1498          T = self.L.findType('test1')          T = self.L.findType('test1')
1499          M = T.getSimulation('sim')          M = T.getSimulation('sim',0)
1500          print "\n\n\nRUNNING ON_LOAD EXPLICITLY NOW..."          print "\n\n\nRUNNING ON_LOAD EXPLICITLY NOW..."
1501          M.run(T.getMethod('on_load'))          M.run(T.getMethod('on_load'))
1502    
# Line 1542  class TestSlvReq(Ascend): Line 1543  class TestSlvReq(Ascend):
1543          H = SolverHooksPython()          H = SolverHooksPython()
1544          ascpy.SolverHooksManager_Instance().setHooks(H)          ascpy.SolverHooksManager_Instance().setHooks(H)
1545          T = self.L.findType('test1')          T = self.L.findType('test1')
1546          M = T.getSimulation('sim')          M = T.getSimulation('sim',1)
1547    
1548  # test some stuff for beam calculations  # test some stuff for beam calculations
1549  class TestSection(Ascend):  class TestSection(Ascend):

Legend:
Removed from v.2616  
changed lines
  Added in v.2617

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