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

Krylov subspace methods – Preconditioned generalized CG. More...

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

Go to the source code of this file.

Functions

INT fasp_solver_dcsr_pgcg (dCSRmat *A, dvector *b, dvector *u, precond *pc, const REAL tol, const REAL abstol, const INT MaxIt, const SHORT StopType, const SHORT PrtLvl)
 Preconditioned generilzed conjugate gradient (GCG) method for solving Au=b. More...
 
INT fasp_solver_pgcg (mxv_matfree *mf, dvector *b, dvector *u, precond *pc, const REAL tol, const REAL abstol, const INT MaxIt, const SHORT StopType, const SHORT PrtLvl)
 Preconditioned generilzed conjugate gradient (GCG) method for solving Au=b. More...
 

Detailed Description

Krylov subspace methods – Preconditioned generalized CG.

Note
This file contains Level-3 (Kry) functions. It requires: AuxArray.c, AuxMemory.c, AuxMessage.c, BlaArray.c, and BlaSpmvCSR.c

Reference: Concus, P. and Golub, G.H. and O'Leary, D.P. A Generalized Conjugate Gradient Method for the Numerical: Solution of Elliptic Partial Differential Equations, Computer Science Department, Stanford University, 1976


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

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

TODO: Not completely implemented yet! –Chensong

Definition in file KryPgcg.c.

Function Documentation

◆ fasp_solver_dcsr_pgcg()

INT fasp_solver_dcsr_pgcg ( dCSRmat A,
dvector b,
dvector u,
precond pc,
const REAL  tol,
const REAL  abstol,
const INT  MaxIt,
const SHORT  StopType,
const SHORT  PrtLvl 
)

Preconditioned generilzed conjugate gradient (GCG) method for solving Au=b.

Parameters
APointer to dCSRmat: coefficient matrix
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to precond: structure of precondition
tolTolerance for relative residual
abstolTolerance for absolute residual
MaxItMaximal number of iterations
StopTypeStopping criteria type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
01/01/2012

Modified by Chensong Zhang on 05/01/2012

Definition at line 60 of file KryPgcg.c.

◆ fasp_solver_pgcg()

INT fasp_solver_pgcg ( mxv_matfree mf,
dvector b,
dvector u,
precond pc,
const REAL  tol,
const REAL  abstol,
const INT  MaxIt,
const SHORT  StopType,
const SHORT  PrtLvl 
)

Preconditioned generilzed conjugate gradient (GCG) method for solving Au=b.

Parameters
mfPointer to mxv_matfree: spmv operation
bPointer to dvector: right hand side
uPointer to dvector: unknowns
pcPointer to precond: structure of precondition
tolTolerance for relative residual
abstolTolerance for absolute residual
MaxItMaximal number of iterations
StopTypeStopping criteria type – DOES not support this parameter
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.
Author
Xiaozhe Hu
Date
01/01/2012

Modified by Feiteng Huang on 09/26/2012: matrix free

Definition at line 213 of file KryPgcg.c.