/[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 949 by johnpye, Sat Nov 25 15:28:56 2006 UTC revision 950 by johnpye, Sun Nov 26 03:14:02 2006 UTC
# Line 115  class AscendTest(unittest.TestCase): Line 115  class AscendTest(unittest.TestCase):
115          I.setEngine('IDA')          I.setEngine('IDA')
116          I.setReporter(ascpy.IntegratorReporterConsole(I))          I.setReporter(ascpy.IntegratorReporterConsole(I))
117          I.setLogTimesteps(ascpy.Units("s"), 0.4, 4e10, 11);          I.setLogTimesteps(ascpy.Units("s"), 0.4, 4e10, 11);
118          I.setMinSubStep(0.0005); # these limits are required by IDA at present (numeric diff)          I.setMaxSubStep(0);
119          I.setMaxSubStep(0.02);          I.setInitialSubStep(0);
120          I.setInitialSubStep(0.001);          I.setMaxSubSteps(0);
         I.setMaxSubSteps(500);  
121          I.setParameter('autodiff',True)          I.setParameter('autodiff',True)
122          I.setParameter('linsolver','DENSE')          I.setParameter('linsolver','DENSE')
123          I.analyse()          I.analyse()
124          I.solve()          I.solve()
125          self.fail("WHAT IS THE ANSWER?")          assert abs(float(M.sim.y1) - 5.1091e-08) < 1e-10;
126            assert abs(float(M.sim.y2) - 2.0437e-13) < 1e-15;
127            assert abs(float(M.sim.y3) - 1.0) < 1e-5;
128    
129  # move code above down here if you want to temporarily avoid testing it  # move code above down here if you want to temporarily avoid testing it
130  class NotToBeTested:  class NotToBeTested:

Legend:
Removed from v.949  
changed lines
  Added in v.950

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