Skip to content

Commit

Permalink
Gauss-Sidel iteration SlaybaughLab#10
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixiong Zheng committed Sep 10, 2017
1 parent d2d164f commit 2cfc091
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions src/iteration/gauss_sidel.cc
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>;
18 changes: 18 additions & 0 deletions src/iteration/gauss_sidel.h
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__

0 comments on commit 2cfc091

Please sign in to comment.