/[ascend]/trunk/pygtk/interface/ascxxtest.cpp
ViewVC logotype

Contents of /trunk/pygtk/interface/ascxxtest.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 529 - (show annotations) (download) (as text)
Sat Apr 22 06:26:23 2006 UTC (13 years, 9 months ago) by johnpye
File MIME type: text/x-c++src
File size: 450 byte(s)
Working of debugging the mysterious PyGTK bug. Seems to be coming from a wrong
char *filename in an error_reporter call from the DEBUG_RELS sections of the
compiler code.
Also renamed the WSEM and WSNM macros for clarity, removed unused file pointer.
1 #include "simulation.h"
2 #include "library.h"
3 #include "solver.h"
4 #include "solverreporter.h"
5
6 #include <iostream>
7 using namespace std;
8
9 int main(void){
10
11 Library L;
12 L.load("johnpye/extfn/extfntest.a4c");
13 Type t = L.findType("test_extfntest");
14 cerr << "Type = " << t.getName() << endl;
15 Simulation S = t.getSimulation("S");
16
17 S.build();
18
19 cerr << "About to solve..." << endl;
20
21 SolverReporter r = SolverReporter();
22 S.solve(Solver("QRSlv"),r);
23 }

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