Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
wrapper.c File Reference

Wrappers for accessing functions by advanced users. More...

#include "fasp.h"
#include "fasp_block.h"
#include "fasp_functs.h"

Go to the source code of this file.

Functions

void fasp_fwrapper_amg_ (INT *n, INT *nnz, INT *ia, INT *ja, REAL *a, REAL *b, REAL *u, REAL *tol, INT *maxit, INT *ptrlvl)
 Solve Ax=b by Ruge and Stuben's classic AMG. More...
 
void fasp_fwrapper_krylov_amg_ (INT *n, INT *nnz, INT *ia, INT *ja, REAL *a, REAL *b, REAL *u, REAL *tol, INT *maxit, INT *ptrlvl)
 Solve Ax=b by Krylov method preconditioned by classic AMG. More...
 
INT fasp_wrapper_dbsr_krylov_amg (INT n, INT nnz, INT nb, INT *ia, INT *ja, REAL *a, REAL *b, REAL *u, REAL tol, INT maxit, INT ptrlvl)
 Solve Ax=b by Krylov method preconditioned by AMG (dcsr - > dbsr) More...
 
INT fasp_wrapper_dcoo_dbsr_krylov_amg (INT n, INT nnz, INT nb, INT *ia, INT *ja, REAL *a, REAL *b, REAL *u, REAL tol, INT maxit, INT ptrlvl)
 Solve Ax=b by Krylov method preconditioned by AMG (dcoo - > dbsr) More...
 

Detailed Description

Wrappers for accessing functions by advanced users.

Definition in file wrapper.c.

Function Documentation

void fasp_fwrapper_amg_ ( INT n,
INT nnz,
INT ia,
INT ja,
REAL a,
REAL b,
REAL u,
REAL tol,
INT maxit,
INT ptrlvl 
)

Solve Ax=b by Ruge and Stuben's classic AMG.

Parameters
nNumber of cols of A
nnzNumber of nonzeros of A
iaIA of A in CSR format
jaJA of A in CSR format
aVAL of A in CSR format
bRHS vector
uSolution vector
tolTolerance for iterative solvers
maxitMax number of iterations
ptrlvlPrint level for iterative solvers
Author
Chensong Zhang
Date
09/16/2010

Definition at line 35 of file wrapper.c.

void fasp_fwrapper_krylov_amg_ ( INT n,
INT nnz,
INT ia,
INT ja,
REAL a,
REAL b,
REAL u,
REAL tol,
INT maxit,
INT ptrlvl 
)

Solve Ax=b by Krylov method preconditioned by classic AMG.

Parameters
nNumber of cols of A
nnzNumber of nonzeros of A
iaIA of A in CSR format
jaJA of A in CSR format
aVAL of A in CSR format
bRHS vector
uSolution vector
tolTolerance for iterative solvers
maxitMax number of iterations
ptrlvlPrint level for iterative solvers
Author
Chensong Zhang
Date
09/16/2010

Definition at line 85 of file wrapper.c.

INT fasp_wrapper_dbsr_krylov_amg ( INT  n,
INT  nnz,
INT  nb,
INT ia,
INT ja,
REAL a,
REAL b,
REAL u,
REAL  tol,
INT  maxit,
INT  ptrlvl 
)

Solve Ax=b by Krylov method preconditioned by AMG (dcsr - > dbsr)

Parameters
nNumber of cols of A
nnzNumber of nonzeros of A
nbSize of each small block
iaIA of A in CSR format
jaJA of A in CSR format
aVAL of A in CSR format
bRHS vector
uSolution vector
tolTolerance for iterative solvers
maxitMax number of iterations
ptrlvlPrint level for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
03/05/2013

Definition at line 143 of file wrapper.c.

INT fasp_wrapper_dcoo_dbsr_krylov_amg ( INT  n,
INT  nnz,
INT  nb,
INT ia,
INT ja,
REAL a,
REAL b,
REAL u,
REAL  tol,
INT  maxit,
INT  ptrlvl 
)

Solve Ax=b by Krylov method preconditioned by AMG (dcoo - > dbsr)

Parameters
nNumber of cols of A
nnzNumber of nonzeros of A
nbSize of each small block
iaIA of A in COO format
jaJA of A in COO format
aVAL of A in COO format
bRHS vector
uSolution vector
tolTolerance for iterative solvers
maxitMax number of iterations
ptrlvlPrint level for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
03/06/2013

Definition at line 229 of file wrapper.c.