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

Diff of /trunk/test.py

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

revision 1305 by johnpye, Thu Mar 1 06:34:04 2007 UTC revision 1306 by johnpye, Sat Mar 3 11:50:47 2007 UTC
# Line 896  class TestIDA(Ascend): Line 896  class TestIDA(Ascend):
896      def testincidencefail5(self):      def testincidencefail5(self):
897          self._runfail('incidence',5)          self._runfail('incidence',5)
898    
899        def testwritematrix(self):
900            self.L.load('test/ida/writematrix.a4c')
901            T = self.L.findType('writematrix')
902            M = T.getSimulation('sim')
903            M.build()
904            I = ascpy.Integrator(M)
905            I.setEngine('IDA')
906            I.analyse()
907            F = os.tmpfile()
908            I.writeMatrix(F,"y")
909            F.seek(0)
910            print F.read()
911            F1 = os.tmpfile()
912            I.writeMatrix(F1,"ydot")
913            F1.seek(0)
914            print F1.read()
915            # for the moment you'll have to check these results manually.
916    
917  # doesn't work yet:  # doesn't work yet:
918  #   def testincidence5(self):  #   def testincidence5(self):
919  #       self._run('incidence',5)  #       self._run('incidence',5)

Legend:
Removed from v.1305  
changed lines
  Added in v.1306

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