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

Contents of /trunk/pygtk/solverstatus.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1316 - (show annotations) (download) (as text)
Mon Mar 5 07:22:21 2007 UTC (12 years, 10 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1318 byte(s)
Another one of these big refactorings. Split out 'system' directory from 'solver' directory. This will need more work
but it's a start at getting the non-solver-specific code out separately.
1 #ifndef ASCXX_SOLVERSTATUS_H
2 #define ASCXX_SOLVERSTATUS_H
3
4 #include <cstdio>
5
6 #include "config.h"
7 extern "C"{
8 #include <system/slv_common.h>
9 }
10
11 #include "simulation.h"
12
13 /**
14 Class to wrap slv_status_t and provide
15 and query interface to access various data from it
16 */
17 class SolverStatus{
18 private:
19 slv_status_t s;
20
21 public:
22 SolverStatus();
23 SolverStatus(const SolverStatus &old);
24 void getSimulationStatus(Simulation &);
25
26 const bool isOK() const;
27 const bool isOverDefined() const;
28 const bool isUnderDefined() const;
29 const bool isStructurallySingular() const;
30 const bool isInconsistent() const;
31 const bool isReadyToSolve() const;
32 const bool isConverged() const;
33 const bool isDiverged() const;
34 const bool hasExceededIterationLimit() const;
35 const bool hasExceededTimeLimit() const;
36 const bool hasResidualCalculationErrors() const;
37 const bool isInterrupted() const;
38 const int getIterationNum() const;
39
40 // block structure stuff...
41
42 const int getNumBlocks() const;
43 const int getCurrentBlockNum() const;
44 const int getCurrentBlockSize() const;
45 const int getCurrentBlockIteration() const;
46 const int getNumConverged() const; /* previous total size */
47 const int getNumJacobianEvals() const;
48 const int getNumResidualEvals() const;
49 const double getBlockResidualRMS() const;
50 };
51
52 #endif // ASCXX_SOLVERSTATUS_H

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