PLUTO
4.4-patch2
|
Multigrid Poisson solver. More...
#include "pluto.h"
Functions | |
void | MultiGridPoisson (double ***rho, double ***phi, Grid *grid) |
Solve the Poisson equation
void MultiGridPoisson | ( | double *** | rho, |
double *** | phi, | ||
Grid * | grid | ||
) |
Now this function works only with 2D grid. It takes a triple pointer, but the k
index is useless. The function applies the Gauss-Seidel method in the domain until the errore (error) falls under the value tolleranza (tollerance). If for some mistake the function stops and printLog in the stderr an error message.