/[ascend]/trunk/ascxx/testsolverinit.cpp
ViewVC logotype

Contents of /trunk/ascxx/testsolverinit.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2579 - (show annotations) (download) (as text)
Wed Mar 14 23:05:32 2012 UTC (7 years, 9 months ago) by jpye
File MIME type: text/x-c++src
File size: 373 byte(s)
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