/[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 1017 by johnpye, Wed Jan 3 06:40:21 2007 UTC revision 1018 by johnpye, Wed Jan 3 06:44:39 2007 UTC
# Line 214  class TestLSODE(Ascend): Line 214  class TestLSODE(Ascend):
214  try:  try:
215      import freesteam      import freesteam
216      have_freesteam = True      have_freesteam = True
217  except ImportException,e:  except ImportError,e:
218      have_freesteam = False      have_freesteam = False
219    
220  if have_freesteam:  if have_freesteam:
221      class TestFreesteam(Ascend):      class TestFreesteam(Ascend):
222          def testfreesteam(self):          def testimport(self):
223              self.L.load('johnpye/thermalequilibrium2.a4c')              self.L.load('johnpye/thermalequilibrium2.a4c')
224              #M = self.L.findType('thermalequilibrium2').getSimulation('sim')  
225              #M.setSolver(ascpy.Solver("QRSlv"))          def testevaluate(self):
226                self.L.load('johnpye/thermalequilibrium2.a4c')
227                M = self.L.findType('thermalequilibrium2').getSimulation('sim')
228                M.setSolver(ascpy.Solver("QRSlv"))
229              #I = ascpy.Integrator(M)              #I = ascpy.Integrator(M)
230              #I.setEngine('LSODE')              #I.setEngine('LSODE')
231              #I.setReporter(ascpy.IntegratorReporterConsole(I))              #I.setReporter(ascpy.IntegratorReporterConsole(I))

Legend:
Removed from v.1017  
changed lines
  Added in v.1018

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