Bug #1081: Report an error on command-line flags that expect a wholly-missing integer...
[charm.git] / examples / charm++ / cell / jacobi / main.h
blob1dd44c4cf5093ea6989c64f228c732a71e573c6d
1 #ifndef __MAIN_H__
2 #define __MAIN_H__
4 #include "main.decl.h"
5 #include "jacobi.decl.h"
6 #include "jacobi_config.h"
9 /* readonly */ extern CProxy_Main mainProxy;
10 /* readonly */ extern CProxy_Jacobi jacobiProxy;
13 class Main : public CBase_Main {
15 ////////////////////////////////////////////////////////////////////////////////////////////////
16 // Member Variables
17 private:
18 CProxy_Jacobi jArray;
19 int iterationCount;
20 double startTime;
21 double endTime;
23 float partialMaxError[REPORT_MAX_ERROR_BUFFER_DEPTH];
24 int checkInCount[REPORT_MAX_ERROR_BUFFER_DEPTH];
26 int createdCheckIn_count;
28 // STATS
29 int reportMaxError_resendCount;
31 ////////////////////////////////////////////////////////////////////////////////////////////////
32 // Constructor(s) / Destructor
33 public:
34 Main(CkArgMsg *msg);
36 ////////////////////////////////////////////////////////////////////////////////////////////////
37 // Member Functions
38 public:
39 void createdCheckIn();
40 void maxErrorReductionClient(CkReductionMsg *msg);
41 void reportMaxError(float val, int iter);
45 #endif //__MAIN_H__