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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 319 - (show annotations) (download) (as text)
Thu Feb 23 12:30:40 2006 UTC (14 years, 3 months ago) by johnpye
File MIME type: text/x-c++src
File size: 454 byte(s)
Fixed a bug with the diagnose window after a successful solve
Added preference: SolverReporter:close_on_converged
1 #include "solverreporter.h"
2 #include <iostream>
3 using namespace std;
4
5 SolverReporter::SolverReporter(){
6 // nothing
7 }
8
9 SolverReporter::~SolverReporter(){
10 // nothing
11 }
12
13 int
14 SolverReporter::report(SolverStatus *status){
15 cerr << "Iteration: " << status->getIterationNum() << endl;
16 return 0;
17 }
18
19 void
20 SolverReporter::finalise(SolverStatus *status){
21 if(status->isConverged()){
22 cerr << "Converged" << endl;
23 }else{
24 cerr << "Not converged" << endl;
25 }
26 }

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