/[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 1049 by johnpye, Fri Jan 5 13:45:13 2007 UTC revision 1050 by johnpye, Sat Jan 6 04:04:47 2007 UTC
# Line 415  class TestSteam(AscendSelfTester): Line 415  class TestSteam(AscendSelfTester):
415          T = self.L.findType('dsgsat2')          T = self.L.findType('dsgsat2')
416          M = T.getSimulation('sim')          M = T.getSimulation('sim')
417          M.solve(ascpy.Solver('QRSlv'),ascpy.SolverReporter())          M.solve(ascpy.Solver('QRSlv'),ascpy.SolverReporter())
418          M.solve(ascpy.Solver('QRSlv'),ascpy.SolverReporter())          M.run(T.getMethod('fixed_states'))
419            I = ascpy.Integrator(M)
420            I.setEngine('LSODE')
421            I.setReporter(ascpy.IntegratorReporterConsole(I))
422            I.setReporter(ascpy.IntegratorReporterConsole(I))
423            I.setLinearTimesteps(ascpy.Units("s"), 0, 10, 100)
424            I.setMinSubStep(0.01)
425            I.setInitialSubStep(0.1)
426            I.analyse()
427            I.solve()
428          #M.checkStructuralSingularity() causes crash!          #M.checkStructuralSingularity() causes crash!
429                    
430  #-------------------------------------------------------------------------------  #-------------------------------------------------------------------------------

Legend:
Removed from v.1049  
changed lines
  Added in v.1050

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