Parent Directory | Revision Log
Merging in refactor of the C++ code, which is moved out of 'pygtk' and into 'ascxx'. Adding support for IPOPT 3.9.1, the current latest version. Support in dtar for parallel builds (possibly needs some testing still).
1 | #include "solverreporter.h" |
2 | #include <iostream> |
3 | using namespace std; |
4 | |
5 | #define SOLVERREPORTER_DEBUG 0 |
6 | |
7 | SolverReporter::SolverReporter(){ |
8 | #if SOLVERREPORTER_DEBUG |
9 | CONSOLE_DEBUG("Creating SolverReporter at %p",this); |
10 | #endif |
11 | // nothing |
12 | } |
13 | |
14 | SolverReporter::~SolverReporter(){ |
15 | #if SOLVERREPORTER_DEBUG |
16 | CONSOLE_DEBUG("Destroying SolverReporter at %p",this); |
17 | #endif |
18 | // nothing |
19 | } |
20 | |
21 | int |
22 | SolverReporter::report(SolverStatus *status){ |
23 | //cerr << "Iteration: " << status->getIterationNum() << endl; |
24 | return 0; |
25 | } |
26 | |
27 | void |
28 | SolverReporter::finalise(SolverStatus *status){ |
29 | if(status->isConverged()){ |
30 | cerr << "Converged" << endl; |
31 | }else{ |
32 | cerr << "Not converged" << endl; |
33 | } |
34 | } |
john.pye@anu.edu.au | ViewVC Help |
Powered by ViewVC 1.1.22 |