PLUTO  4.4-patch2
Functions
multigrid.c File Reference

Multigrid Poisson solver. More...

#include "pluto.h"

Functions

void MultiGridPoisson (double ***rho, double ***phi, Grid *grid)
 

Detailed Description

Solve the Poisson equation $ \nabla^2\phi = \rho $

Author
A. Vacca (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
Date
September 19, 2018

Function Documentation

◆ MultiGridPoisson()

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 $ errore > 1 $ the function stops and printLog in the stderr an error message.