An efficient 2d Multigrid gauss-seidel code to solve Poisson type equations. Gauss-seidel iterations are computationaly expensive, however using multiple grids with different resolutions helps convergence and brings execution times to reasonable levels. One of the main advantages to solve the gravitational force equation with a multigrid method is that it can be extended to non-linear equations.
git (optional)
make
g++
## Build
```shell
$ git clone https://github.com/florpi/MGPoissonSolver.git
$ cd MGPoissonSolver
$ make
USAGE:
./acceleration [-p ] [-h]
Where:
-p <int>, --parallel_flag
if flagged executes parallel code, if not executes sequential code.
Default: False
-h, --help
Displays information
For a point particle we obtain the following acceleration-distance relation in two dimensions: