DOpE
voidlinearsolver.h
Go to the documentation of this file.
1 
24 #ifndef VOID_LINEAR_SOLVER_H_
25 #define VOID_LINEAR_SOLVER_H_
26 
27 #include <deal.II/lac/vector.h>
28 #include <deal.II/lac/block_sparsity_pattern.h>
29 #include <deal.II/lac/block_sparse_matrix.h>
30 #include <deal.II/lac/compressed_simple_sparsity_pattern.h>
31 #include <deal.II/lac/solver_cg.h>
32 #include <deal.II/lac/precondition.h>
33 #include <deal.II/lac/full_matrix.h>
34 #include <deal.II/lac/sparse_direct.h>
35 #include <deal.II/dofs/dof_tools.h>
36 #include <deal.II/numerics/vector_tools.h>
37 
38 #include <vector>
39 
40 namespace DOpE
41 {
52  template <typename VECTOR>
54  {
55  public:
56  VoidLinearSolver(ParameterReader &param_reader);
58 
59  static void declare_params(ParameterReader &param_reader);
60 
65  template<typename PROBLEM>
66  void ReInit(PROBLEM& pde);
67 
82  template<typename PROBLEM, typename INTEGRATOR>
83  void Solve(PROBLEM& pde, INTEGRATOR& integr, VECTOR &rhs, VECTOR &solution, bool force_matrix_build=false);
84 
85  protected:
86 
87  private:
88 
89  };
90 
91 /*********************************Implementation************************************************/
92 
93  template <typename VECTOR>
95  {
96  }
97 
98  /******************************************************/
99 
100  template <typename VECTOR>
102  {
103  }
104 
105 /******************************************************/
106 
107 template <typename VECTOR>
109 {
110 }
111 
112 /******************************************************/
113 
114 template <typename VECTOR>
115  template<typename PROBLEM>
116  void VoidLinearSolver<VECTOR>::ReInit(PROBLEM& /*pde*/)
117 {
118 
119 }
120 
121 /******************************************************/
122 
123 template <typename VECTOR>
124  template<typename PROBLEM, typename INTEGRATOR>
125  void VoidLinearSolver<VECTOR>::Solve(PROBLEM& /*pde*/, INTEGRATOR& /*integr*/, VECTOR &rhs, VECTOR &solution, bool /*force_matrix_build*/)
126 {
127  solution = rhs;
128 }
129 
130 
131 }
132 #endif
VoidLinearSolver(ParameterReader &param_reader)
Definition: voidlinearsolver.h:101
Definition: parameterreader.h:36
void Solve(PROBLEM &pde, INTEGRATOR &integr, VECTOR &rhs, VECTOR &solution, bool force_matrix_build=false)
Definition: voidlinearsolver.h:125
void ReInit(PROBLEM &pde)
Definition: voidlinearsolver.h:116
static void declare_params(ParameterReader &param_reader)
Definition: voidlinearsolver.h:94
~VoidLinearSolver()
Definition: voidlinearsolver.h:108
Definition: voidlinearsolver.h:53