/[ascend]/trunk/pygtk/interface/solverstatus.h
ViewVC logotype

Contents of /trunk/pygtk/interface/solverstatus.h

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, 9 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1463 byte(s)
Fixed a bug with the diagnose window after a successful solve
Added preference: SolverReporter:close_on_converged
1 #ifndef ASCXX_SOLVERSTATUS_H
2 #define ASCXX_SOLVERSTATUS_H
3
4 #include <cstdio>
5
6 extern "C"{
7 #include <utilities/ascConfig.h>
8 #include <solver/slv_types.h>
9 #include <solver/rel.h>
10 #include <solver/logrel.h>
11 #include <solver/mtx.h>
12 #include <general/list.h>
13 #include <solver/slv_common.h>
14 }
15
16 #include "simulation.h"
17
18 /**
19 Class to wrap slv_status_t and provide
20 and query interface to access various data from it
21 */
22 class SolverStatus{
23 private:
24 slv_status_t s;
25
26 public:
27 SolverStatus();
28 SolverStatus(const SolverStatus &old);
29 void getSimulationStatus(Simulation &);
30
31 const bool isOK() const;
32 const bool isOverDefined() const;
33 const bool isUnderDefined() const;
34 const bool isStructurallySingular() const;
35 const bool isInconsistent() const;
36 const bool isReadyToSolve() const;
37 const bool isConverged() const;
38 const bool isDiverged() const;
39 const bool hasExceededIterationLimit() const;
40 const bool hasExceededTimeLimit() const;
41 const bool hasResidualCalculationErrors() const;
42 const bool isInterrupted() const;
43 const int getIterationNum() const;
44
45 // block structure stuff...
46
47 const int getNumBlocks() const;
48 const int getCurrentBlockNum() const;
49 const int getCurrentBlockSize() const;
50 const int getCurrentBlockIteration() const;
51 const int getNumConverged() const; /* previous total size */
52 const int getNumJacobianEvals() const;
53 const int getNumResidualEvals() const;
54 const double getBlockResidualRMS() const;
55 };
56
57 #endif // ASCXX_SOLVERSTATUS_H

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