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) |