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

Krylov subspace methods – Preconditioned GCR. More...

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

Go to the source code of this file.

Functions

INT fasp_solver_dcsr_pgcr (dCSRmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const REAL abstol, const INT MaxIt, const SHORT restart, const SHORT StopType, const SHORT PrtLvl)
 A preconditioned GCR method for solving Au=b. More...
 
INT fasp_solver_dblc_pgcr (dBLCmat *A, dvector *b, dvector *x, precond *pc, const REAL tol, const REAL abstol, const INT MaxIt, const SHORT restart, const SHORT StopType, const SHORT PrtLvl)
 A preconditioned GCR method for solving Au=b. More...
 

Detailed Description

Krylov subspace methods – Preconditioned GCR.

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

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

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

TODO: abstol not used yet! –Chensong

Definition in file KryPgcr.c.

Function Documentation

◆ fasp_solver_dblc_pgcr()

INT fasp_solver_dblc_pgcr ( dBLCmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const REAL  abstol,
const INT  MaxIt,
const SHORT  restart,
const SHORT  StopType,
const SHORT  PrtLvl 
)

A preconditioned GCR method for solving Au=b.

Parameters
APointer to coefficient matrix
bPointer to dvector of right hand side
xPointer to dvector of dofs
pcPointer to structure of precondition (precond)
tolTolerance for relative residual
abstolTolerance for absolute residual
MaxItMaximal number of iterations
restartRestart number for GCR
StopTypeStopping type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.

Reference: YVAN NOTAY "AN AGGREGATION-BASED ALGEBRAIC MULTIGRID METHOD"

Author
Zheng Li
Date
12/23/2014

Definition at line 254 of file KryPgcr.c.

◆ fasp_solver_dcsr_pgcr()

INT fasp_solver_dcsr_pgcr ( dCSRmat A,
dvector b,
dvector x,
precond pc,
const REAL  tol,
const REAL  abstol,
const INT  MaxIt,
const SHORT  restart,
const SHORT  StopType,
const SHORT  PrtLvl 
)

A preconditioned GCR method for solving Au=b.

Parameters
APointer to coefficient matrix
bPointer to dvector of right hand side
xPointer to dvector of dofs
pcPointer to structure of precondition (precond)
tolTolerance for relative residual
abstolTolerance for absolute residual
MaxItMaximal number of iterations
restartRestart number for GCR
StopTypeStopping type
PrtLvlHow much information to print out
Returns
Iteration number if converges; ERROR otherwise.

Reference: YVAN NOTAY "AN AGGREGATION-BASED ALGEBRAIC MULTIGRID METHOD"

Author
Zheng Li
Date
12/23/2014

Definition at line 55 of file KryPgcr.c.