forked from SlaybaughLab/BART
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gauss-Sidel iteration SlaybaughLab#10
- Loading branch information
Weixiong Zheng
committed
Sep 10, 2017
1 parent
d2d164f
commit 2cfc091
Showing
6 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "mg_base.h" | ||
|
||
template <int dim> | ||
GaussSidel<dim>::GaussSidel (ParameterHandler &prm) | ||
: | ||
MGBase<dim> (prm) | ||
{ | ||
} | ||
|
||
template <int dim> | ||
GaussSidel<dim>::~GaussSidel () | ||
{ | ||
} | ||
|
||
template <int dim> | ||
void GaussSidel<dim>::mg_iterations | ||
(std::vector<Vector<double> > &sflxes_proc, | ||
std::vector<std_cxx11::shared_ptr<EquationBase<dim> > > &equ_ptrs) | ||
{ | ||
// TODO: fill this up | ||
} | ||
|
||
template class GaussSidel<2>; | ||
template class GaussSidel<3>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef __gauss_sidel_h__ | ||
#define __gauss_sidel_h__ | ||
|
||
#include "mg_base.h" | ||
|
||
template <int dim> | ||
class GaussSidel : public MGBase<dim> | ||
{ | ||
public: | ||
GaussSidel (ParameterHandler); | ||
~GaussSidel (); | ||
|
||
void mg_iterations | ||
(std::vector<Vector<double> > &sflxes_proc, | ||
std::vector<std_cxx11::shared_ptr<EquationBase<dim> > > equ_ptrs); | ||
} | ||
|
||
#endif //__gauss_sidel_h__ |