Fast Auxiliary Space Preconditioning  1.8.4 Feb/15/2016
amg.c File Reference

AMG method as an iterative solver (main file) More...

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

Go to the source code of this file.

Functions

void 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 (main file)

Definition in file amg.c.

Function Documentation

void 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
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 01/10/2012 Modified by Chensong Zhang on 07/26/2014: Add error handling for AMG setup

Definition at line 37 of file amg.c.