Memosa-FVM  0.2
CG.h
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #ifndef _CG_H_
6 #define _CG_H_
7 
8 #include <vector>
9 #include "LinearSystem.h"
10 #include "MultiFieldReduction.h"
11 #include "LinearSolver.h"
12 
13 using namespace std;
14 
20 class CG : public LinearSolver
21 {
22 public:
23 
24  CG();
25  virtual ~CG();
26  virtual MFRPtr solve(LinearSystem & ls);
27 
28  virtual void cleanup();
29  virtual void smooth(LinearSystem& ls);
30 
32 private:
33 
34  CG(const CG&);
35 };
36 
37 #endif
Definition: CG.h:20
shared_ptr< MultiFieldReduction > MFRPtr
LinearSolver * preconditioner
Definition: CG.h:31