Parent Directory | Revision Log
Workaround for bug 494. Very close to the changes that Grivan suggested in changeset 3482. ASCEND now working in Fedora 16 with SWIG 2.0.4.
1 | #include "simulation.h" |
2 | #include "library.h" |
3 | #include "solver.h" |
4 | |
5 | #include <iostream> |
6 | using namespace std; |
7 | |
8 | int main(void){ |
9 | |
10 | Library L; |
11 | L.load("johnpye/testlog10.a4c"); |
12 | Type t = L.findType("testlog10"); |
13 | cerr << "Type = " << t.getName() << endl; |
14 | Simulation S = t.getSimulation("S",1); |
15 | |
16 | S.build(); |
17 | |
18 | cerr << "About to solve..." << endl; |
19 | |
20 | S.solve(Solver("QRSlv")); |
21 | } |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |