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

AMG method as an iterative solver. More...

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

Go to the source code of this file.

Functions

INT fasp_solver_amg (dCSRmat *A, dvector *b, dvector *x, AMG_param *param)
 Solve Ax = b by algebraic multigrid methods. More...
 

Detailed Description

AMG method as an iterative solver.

Note
This file contains Level-5 (Sol) functions. It requires: AuxMessage.c, AuxTiming.c, AuxVector.c, BlaSparseCheck.c, BlaSparseCSR.c, KrySPgmres.c, PreAMGSetupRS.c, PreAMGSetupSA.c, PreAMGSetupUA.c, PreDataInit.c, and PreMGSolve.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 SolAMG.c.

Function Documentation

◆ fasp_solver_amg()

INT fasp_solver_amg ( dCSRmat A,
dvector b,
dvector x,
AMG_param param 
)

Solve Ax = b by algebraic multigrid methods.

Parameters
APointer to dCSRmat: the coefficient matrix
bPointer to dvector: the right hand side
xPointer to dvector: the unknowns
paramPointer to AMG_param: AMG parameters
Returns
Iteration number if converges; ERROR otherwise.
Author
Chensong Zhang
Date
04/06/2010
Note
Refer to "Multigrid" by U. Trottenberg, C. W. Oosterlee and A. Schuller Appendix A.7 (by A. Brandt, P. Oswald and K. Stuben) Academic Press Inc., San Diego, CA, 2001.

Modified by Chensong Zhang on 07/26/2014: Add error handling for AMG setup Modified by Chensong Zhang on 02/01/2021: Add return value

Definition at line 49 of file SolAMG.c.