added miss .h file
authorYanhua Sun <yanhuas@jyc1.(none)>
Wed, 17 Oct 2012 22:24:41 +0000 (17:24 -0500)
committerYanhua Sun <yanhuas@jyc1.(none)>
Wed, 17 Oct 2012 22:24:41 +0000 (17:24 -0500)
tests/charm++/jacobi3d-gausssiedel/jacobi3d.h [new file with mode: 0644]

diff --git a/tests/charm++/jacobi3d-gausssiedel/jacobi3d.h b/tests/charm++/jacobi3d-gausssiedel/jacobi3d.h
new file mode 100644 (file)
index 0000000..f7fcca6
--- /dev/null
@@ -0,0 +1,34 @@
+class Jacobi: public CBase_Jacobi {
+  Jacobi_SDAG_CODE
+
+  public:
+    int iterations;
+    int imsg;
+#if  JACOBI
+    double *new_temperature;
+#endif
+    double *temperature;
+       double timing,average;
+    int neighbors;
+    int thisIndex_x, thisIndex_y, thisIndex_z;
+    // Constructor, initialize values
+    Jacobi() ;
+    Jacobi(CkMigrateMessage* m): CBase_Jacobi(m) { }
+    ~Jacobi() { 
+        delete [] temperature; }
+
+    void begin_iteration(void) ;
+    void processGhosts(ghostMsg *gmsg) ;
+       void check_and_compute() ;
+    double compute_kernel() ;     //Gauss-Siedal compute
+    void constrainBC() ;
+    void print();
+       // Pupping function for migration and fault tolerance
+       // Condition: assuming the 3D Chare Arrays are NOT used
+       
+       void ResumeFromSync();
+    void pup(PUP::er &p);
+    //void doStep();
+};
+