Fast Auxiliary Space Preconditioning 2.7.7 Aug/28/2022
Loading...
Searching...
No Matches
SolBSR.c File Reference

Iterative solvers for dBSRmat matrices. More...

#include <time.h>
#include "fasp.h"
#include "fasp_functs.h"
#include "KryUtil.inl"

Go to the source code of this file.

Functions

INT fasp_solver_dbsr_itsolver (dBSRmat *A, dvector *b, dvector *x, precond *pc, ITS_param *itparam)
 Solve Ax=b by preconditioned Krylov methods for BSR matrices. More...
 
INT fasp_solver_dbsr_krylov (dBSRmat *A, dvector *b, dvector *x, ITS_param *itparam)
 Solve Ax=b by standard Krylov methods for BSR matrices. More...
 
INT fasp_solver_dbsr_krylov_diag (dBSRmat *A, dvector *b, dvector *x, ITS_param *itparam)
 Solve Ax=b by diagonal preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_ilu (dBSRmat *A, dvector *b, dvector *x, ITS_param *itparam, ILU_param *iluparam)
 Solve Ax=b by ILUs preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_amg (dBSRmat *A, dvector *b, dvector *x, ITS_param *itparam, AMG_param *amgparam)
 Solve Ax=b by AMG preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_amg_nk (dBSRmat *A, dvector *b, dvector *x, ITS_param *itparam, AMG_param *amgparam, dCSRmat *A_nk, dCSRmat *P_nk, dCSRmat *R_nk)
 Solve Ax=b by AMG with extra near kernel solve preconditioned Krylov methods. More...
 
INT fasp_solver_dbsr_krylov_nk_amg (dBSRmat *A, dvector *b, dvector *x, ITS_param *itparam, AMG_param *amgparam, const INT nk_dim, dvector *nk)
 Solve Ax=b by AMG preconditioned Krylov methods with extra kernal space. More...
 

Detailed Description

Iterative solvers for dBSRmat matrices.

Note
This file contains Level-5 (Sol) functions. It requires: AuxMemory.c, AuxMessage.c, AuxThreads.c, AuxTiming.c, AuxVector.c, BlaSmallMatInv.c, BlaILUSetupBSR.c, BlaSparseBSR.c, BlaSparseCheck.c, KryPbcgs.c, KryPcg.c, KryPgmres.c, KryPvfgmres.c, KryPvgmres.c, PreAMGSetupSA.c, PreAMGSetupUA.c, PreBSR.c, and PreDataInit.c

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 SolBSR.c.

Function Documentation

◆ fasp_solver_dbsr_itsolver()

INT fasp_solver_dbsr_itsolver ( dBSRmat A,
dvector b,
dvector x,
precond pc,
ITS_param itparam 
)

Solve Ax=b by preconditioned Krylov methods for BSR matrices.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
pcPointer to the preconditioning action
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Zhiyang Zhou, Xiaozhe Hu
Date
10/26/2010

Modified by Chunsheng Feng on 03/04/2016: add VBiCGstab solver

Definition at line 55 of file SolBSR.c.

◆ fasp_solver_dbsr_krylov()

INT fasp_solver_dbsr_krylov ( dBSRmat A,
dvector b,
dvector x,
ITS_param itparam 
)

Solve Ax=b by standard Krylov methods for BSR matrices.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Zhiyang Zhou, Xiaozhe Hu
Date
10/26/2010

Definition at line 141 of file SolBSR.c.

◆ fasp_solver_dbsr_krylov_amg()

INT fasp_solver_dbsr_krylov_amg ( dBSRmat A,
dvector b,
dvector x,
ITS_param itparam,
AMG_param amgparam 
)

Solve Ax=b by AMG preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
amgparamPointer to parameters of AMG
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
03/16/2012

parameters of iterative method

Definition at line 349 of file SolBSR.c.

◆ fasp_solver_dbsr_krylov_amg_nk()

INT fasp_solver_dbsr_krylov_amg_nk ( dBSRmat A,
dvector b,
dvector x,
ITS_param itparam,
AMG_param amgparam,
dCSRmat A_nk,
dCSRmat P_nk,
dCSRmat R_nk 
)

Solve Ax=b by AMG with extra near kernel solve preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
amgparamPointer to parameters of AMG
A_nkPointer to the coeff matrix for near kernel space in dBSRmat format
P_nkPointer to the prolongation for near kernel space in dBSRmat format
R_nkPointer to the restriction for near kernel space in dBSRmat format
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
05/26/2012

Definition at line 476 of file SolBSR.c.

◆ fasp_solver_dbsr_krylov_diag()

INT fasp_solver_dbsr_krylov_diag ( dBSRmat A,
dvector b,
dvector x,
ITS_param itparam 
)

Solve Ax=b by diagonal preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
Returns
Iteration number if converges; ERROR otherwise.
Author
Zhiyang Zhou, Xiaozhe Hu
Date
10/26/2010

Modified by Chunsheng Feng, Zheng Li on 10/15/2012

Definition at line 186 of file SolBSR.c.

◆ fasp_solver_dbsr_krylov_ilu()

INT fasp_solver_dbsr_krylov_ilu ( dBSRmat A,
dvector b,
dvector x,
ITS_param itparam,
ILU_param iluparam 
)

Solve Ax=b by ILUs preconditioned Krylov methods.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
iluparamPointer to parameters of ILU
Returns
Iteration number if converges; ERROR otherwise.
Author
Shiquang Zhang, Xiaozhe Hu
Date
10/26/2010

Definition at line 286 of file SolBSR.c.

◆ fasp_solver_dbsr_krylov_nk_amg()

INT fasp_solver_dbsr_krylov_nk_amg ( dBSRmat A,
dvector b,
dvector x,
ITS_param itparam,
AMG_param amgparam,
const INT  nk_dim,
dvector nk 
)

Solve Ax=b by AMG preconditioned Krylov methods with extra kernal space.

Parameters
APointer to the coeff matrix in dBSRmat format
bPointer to the right hand side in dvector format
xPointer to the approx solution in dvector format
itparamPointer to parameters for iterative solvers
amgparamPointer to parameters of AMG
nk_dimDimension of the near kernel spaces
nkPointer to the near kernal spaces
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
05/27/2012

parameters of iterative method

Definition at line 634 of file SolBSR.c.