Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
SolWrapper.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_dcsr_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_dcsr_krylov_ilu_ (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 ILUk. More...
 
void fasp_fwrapper_dcsr_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...
 
void fasp_fwrapper_dbsr_krylov_ilu_ (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 block ILU in BSR format. More...
 
void fasp_fwrapper_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 block AMG in BSR format. More...
 

Detailed Description

Wrappers for accessing functions by advanced users.

Note
This file contains Level-5 (Sol) functions. It requires: AuxParam.c, BlaFormat.c, BlaSparseBSR.c, BlaSparseCSR.c, SolAMG.c, SolBSR.c, and SolCSR.c
IMPORTANT: The wrappers DO NOT change the original matrix data. Users should shift the matrix indices in order to make the IA and JA to start from 0 instead of 1.

Copyright (C) 2009–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

Definition in file SolWrapper.c.

Function Documentation

◆ fasp_fwrapper_dbsr_krylov_amg_()

void fasp_fwrapper_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 block AMG in BSR format.

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
Author
Chensong Zhang
Date
04/05/2018

Definition at line 397 of file SolWrapper.c.

◆ fasp_fwrapper_dbsr_krylov_ilu_()

void fasp_fwrapper_dbsr_krylov_ilu_ ( 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 block ILU in BSR format.

Parameters
nNumber of cols of A
nnzNumber of nonzeros of A
nbSize of each small block
iaIA of A in BSR format
jaJA of A in BSR format
aVAL of A in BSR format
bRHS vector
uSolution vector
tolTolerance for iterative solvers
maxitMax number of iterations
ptrlvlPrint level for iterative solvers
Author
Chensong Zhang
Date
03/25/2018

Definition at line 326 of file SolWrapper.c.

◆ fasp_fwrapper_dcsr_amg_()

void fasp_fwrapper_dcsr_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 136 of file SolWrapper.c.

◆ fasp_fwrapper_dcsr_krylov_amg_()

void fasp_fwrapper_dcsr_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

Step 0. Read input parameters

Definition at line 261 of file SolWrapper.c.

◆ fasp_fwrapper_dcsr_krylov_ilu_()

void fasp_fwrapper_dcsr_krylov_ilu_ ( 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 ILUk.

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
03/24/2018

Definition at line 195 of file SolWrapper.c.