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

Smoothed aggregation AMG: SETUP phase. More...

#include <math.h>
#include <time.h>
#include "fasp.h"
#include "fasp_functs.h"
#include "aggregation_csr.inl"
#include "aggregation_bsr.inl"

Go to the source code of this file.

Functions

SHORT fasp_amg_setup_sa (AMG_data *mgl, AMG_param *param)
 Set up phase of smoothed aggregation AMG. More...
 
SHORT fasp_amg_setup_sa_bsr (AMG_data_bsr *mgl, AMG_param *param)
 Set up phase of smoothed aggregation AMG (BSR format) More...
 

Detailed Description

Smoothed aggregation AMG: SETUP phase.

Note
Setup A, P, PT and levels using the unsmoothed aggregation algorithm; Refer to P. Vanek, J. Madel and M. Brezina "Algebraic Multigrid on Unstructured Meshes", 1994

Definition in file amg_setup_sa.c.

Function Documentation

SHORT fasp_amg_setup_sa ( AMG_data mgl,
AMG_param param 
)

Set up phase of smoothed aggregation AMG.

Parameters
mglPointer to AMG data: AMG_data
paramPointer to AMG parameters: AMG_param
Returns
FASP_SUCCESS if successed; otherwise, error information.
Author
Xiaozhe Hu
Date
09/29/2009

Modified by Chensong Zhang on 04/06/2010. Modified by Chensong Zhang on 05/09/2010. Modified by Xiaozhe Hu on 01/23/2011: add AMLI cycle. Modified by Chensong Zhang on 05/10/2013: adjust the structure.

Definition at line 48 of file amg_setup_sa.c.

INT fasp_amg_setup_sa_bsr ( AMG_data_bsr mgl,
AMG_param param 
)

Set up phase of smoothed aggregation AMG (BSR format)

Parameters
mglPointer to AMG data: AMG_data_bsr
paramPointer to AMG parameters: AMG_param
Returns
FASP_SUCCESS if successed; otherwise, error information.
Author
Xiaozhe Hu
Date
05/26/2014

Definition at line 85 of file amg_setup_sa.c.