ParMooN
 All Classes Functions Variables Friends Pages
JacobiIte.h
1 // =======================================================================
2 // @(#)ItMethod.h 1.6 10/18/99
3 //
4 // Class: TJacobiIte
5 // Purpose: defines the fixed point iteration
6 //
7 // Author: Volker John
8 //
9 // History: start of implementation 24.10.2000
10 //
11 // =======================================================================
12  #ifndef __JACOBIITE__
13  #define __JACOBIITE__
14 
15 #include <ItMethod.h>
16 #ifdef _MPI
17  #ifdef __3D__
18  #include <ParFECommunicator3D.h>
19  #else
20  #include <ParFECommunicator2D.h>
21  #endif
22 #endif
23 
25 class TJacobiIte : public TItMethod
26 {
27  public:
28  double *oldSol;
29  #ifdef _MPI
30  TParFECommunicator3D *ParComm;
31  #endif
32  public:
34  TJacobiIte(MatVecProc *MatVec, DefectProc *Defect, TItMethod *Prec,
35  int n_aux, int N_Unknowns, int scalar
36 #ifdef _MPI
37  ,TParFECommunicator3D *ParComm
38 #endif
39 
40  );
41 
43  virtual ~TJacobiIte();
44 
46  int Iterate(TSquareMatrix **A, TMatrix **B, double *sol,
47  double *rhs);
48  void Iterate_p(TSquareMatrix **A, TMatrix **B, double *sol, double *rhs
49 #ifdef _MPI
50  ,TParFECommunicator3D *ParComm
51 #endif
52  );
54  void Defect(TSquareMatrix **A, double *sol, double *f, double *d, double &res);
55 };
56  #endif
int Iterate(TSquareMatrix **A, TMatrix **B, double *sol, double *rhs)
Definition: JacobiIte.C:85
Definition: Matrix.h:21
Definition: SquareMatrix.h:20
TJacobiIte(MatVecProc *MatVec, DefectProc *Defect, TItMethod *Prec, int n_aux, int N_Unknowns, int scalar#ifdef _MPI, TParFECommunicator3D *ParComm#endif)
Definition: JacobiIte.C:24
virtual ~TJacobiIte()
Definition: JacobiIte.C:75
Definition: ParFECommunicator3D.h:25
Definition: ItMethod.h:19
void Defect(TSquareMatrix **A, double *sol, double *f, double *d, double &res)
Definition: JacobiIte.C:219
Definition: JacobiIte.h:25