![]() |
Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
|
GMG method as an iterative solver for Poisson Problem. More...
#include <time.h>
#include <math.h>
#include "fasp.h"
#include "fasp_functs.h"
#include "PreGMG.inl"
Go to the source code of this file.
Functions | |
INT | fasp_poisson_gmg1d (REAL *u, REAL *b, const INT nx, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 1D equation by Geometric Multigrid Method. More... | |
INT | fasp_poisson_gmg2d (REAL *u, REAL *b, const INT nx, const INT ny, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 2D equation by Geometric Multigrid Method. More... | |
INT | fasp_poisson_gmg3d (REAL *u, REAL *b, const INT nx, const INT ny, const INT nz, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 3D equation by Geometric Multigrid Method. More... | |
void | fasp_poisson_fgmg1d (REAL *u, REAL *b, const INT nx, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 1D equation by Geometric Multigrid Method (FMG) More... | |
void | fasp_poisson_fgmg2d (REAL *u, REAL *b, const INT nx, const INT ny, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 2D equation by Geometric Multigrid Method (FMG) More... | |
void | fasp_poisson_fgmg3d (REAL *u, REAL *b, const INT nx, const INT ny, const INT nz, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 3D equation by Geometric Multigrid Method (FMG) More... | |
INT | fasp_poisson_gmgcg1d (REAL *u, REAL *b, const INT nx, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 1D equation by Geometric Multigrid Method (GMG preconditioned Conjugate Gradient method) More... | |
INT | fasp_poisson_gmgcg2d (REAL *u, REAL *b, const INT nx, const INT ny, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 2D equation by Geometric Multigrid Method (GMG preconditioned Conjugate Gradient method) More... | |
INT | fasp_poisson_gmgcg3d (REAL *u, REAL *b, const INT nx, const INT ny, const INT nz, const INT maxlevel, const REAL rtol, const SHORT prtlvl) |
Solve Ax=b of Poisson 3D equation by Geometric Multigrid Method (GMG preconditioned Conjugate Gradient method) More... | |
GMG method as an iterative solver for Poisson Problem.
Copyright (C) 2009–Present by the FASP team. All rights reserved.
Definition in file SolGMGPoisson.c.
void fasp_poisson_fgmg1d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 1D equation by Geometric Multigrid Method (FMG)
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 442 of file SolGMGPoisson.c.
void fasp_poisson_fgmg2d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | ny, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 2D equation by Geometric Multigrid Method (FMG)
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
ny | Number of grids in Y direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 536 of file SolGMGPoisson.c.
void fasp_poisson_fgmg3d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | ny, | ||
const INT | nz, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 3D equation by Geometric Multigrid Method (FMG)
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
ny | NUmber of grids in y direction |
nz | NUmber of grids in z direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 644 of file SolGMGPoisson.c.
INT fasp_poisson_gmg1d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 1D equation by Geometric Multigrid Method.
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 48 of file SolGMGPoisson.c.
INT fasp_poisson_gmg2d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | ny, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 2D equation by Geometric Multigrid Method.
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
ny | Number of grids in y direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 172 of file SolGMGPoisson.c.
INT fasp_poisson_gmg3d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | ny, | ||
const INT | nz, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 3D equation by Geometric Multigrid Method.
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
ny | Number of grids in y direction |
nz | Number of grids in z direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 308 of file SolGMGPoisson.c.
INT fasp_poisson_gmgcg1d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 1D equation by Geometric Multigrid Method (GMG preconditioned Conjugate Gradient method)
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 754 of file SolGMGPoisson.c.
INT fasp_poisson_gmgcg2d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | ny, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 2D equation by Geometric Multigrid Method (GMG preconditioned Conjugate Gradient method)
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
ny | Number of grids in y direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 849 of file SolGMGPoisson.c.
INT fasp_poisson_gmgcg3d | ( | REAL * | u, |
REAL * | b, | ||
const INT | nx, | ||
const INT | ny, | ||
const INT | nz, | ||
const INT | maxlevel, | ||
const REAL | rtol, | ||
const SHORT | prtlvl | ||
) |
Solve Ax=b of Poisson 3D equation by Geometric Multigrid Method (GMG preconditioned Conjugate Gradient method)
u | Pointer to the vector of dofs |
b | Pointer to the vector of right hand side |
nx | Number of grids in x direction |
ny | Number of grids in y direction |
nz | Number of grids in z direction |
maxlevel | Maximum levels of the multigrid |
rtol | Relative tolerance to judge convergence |
prtlvl | Print level for output |
Definition at line 959 of file SolGMGPoisson.c.