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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 480 - (show annotations) (download) (as text)
Mon Apr 17 10:45:23 2006 UTC (13 years, 7 months ago) by johnpye
File MIME type: text/x-chdr
File size: 1482 byte(s)
Adding ASC_DLLSPEC to all functions that are being used by Python interface.
Also cleaned up some #ifdef header brackets and html-style comments inside doxygen comments.
Renamed pygtk/interface/config.in to pygtk/interface/config.h.in and made 
this active again (for ASC_BUILDING_INTERFACE) use.
Trying to catch error in ascpy.Library call with try/except, doesn't work though.
1 #ifndef ASCXX_SOLVERSTATUS_H
2 #define ASCXX_SOLVERSTATUS_H
3
4 #include <cstdio>
5
6 #include "config.h"
7 extern "C"{
8 #include <utilities/ascConfig.h>
9 #include <solver/slv_types.h>
10 #include <solver/rel.h>
11 #include <solver/logrel.h>
12 #include <solver/mtx.h>
13 #include <general/list.h>
14 #include <solver/slv_common.h>
15 }
16
17 #include "simulation.h"
18
19 /**
20 Class to wrap slv_status_t and provide
21 and query interface to access various data from it
22 */
23 class SolverStatus{
24 private:
25 slv_status_t s;
26
27 public:
28 SolverStatus();
29 SolverStatus(const SolverStatus &old);
30 void getSimulationStatus(Simulation &);
31
32 const bool isOK() const;
33 const bool isOverDefined() const;
34 const bool isUnderDefined() const;
35 const bool isStructurallySingular() const;
36 const bool isInconsistent() const;
37 const bool isReadyToSolve() const;
38 const bool isConverged() const;
39 const bool isDiverged() const;
40 const bool hasExceededIterationLimit() const;
41 const bool hasExceededTimeLimit() const;
42 const bool hasResidualCalculationErrors() const;
43 const bool isInterrupted() const;
44 const int getIterationNum() const;
45
46 // block structure stuff...
47
48 const int getNumBlocks() const;
49 const int getCurrentBlockNum() const;
50 const int getCurrentBlockSize() const;
51 const int getCurrentBlockIteration() const;
52 const int getNumConverged() const; /* previous total size */
53 const int getNumJacobianEvals() const;
54 const int getNumResidualEvals() const;
55 const double getBlockResidualRMS() const;
56 };
57
58 #endif // ASCXX_SOLVERSTATUS_H

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