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

Interpolation operators for AMG. More...

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

Go to the source code of this file.

Functions

void fasp_amg_interp (dCSRmat *A, ivector *vertices, dCSRmat *P, iCSRmat *S, AMG_param *param)
 Generate interpolation operator P. More...
 
void fasp_amg_interp1 (dCSRmat *A, ivector *vertices, dCSRmat *P, AMG_param *param, iCSRmat *S, INT *icor_ysk)
 Generate interpolation operator P. More...
 
void fasp_amg_interp_trunc (dCSRmat *P, AMG_param *param)
 Truncation step for prolongation operators. More...
 

Detailed Description

Interpolation operators for AMG.

Note
Ref U. Trottenberg, C. W. Oosterlee, and A. Schuller "Multigrid (Appendix A: An Intro to Algebraic Multigrid)" Academic Press Inc., San Diego, CA, 2001 With contributions by A. Brandt, P. Oswald and K. Stuben.

Definition in file interpolation.c.

Function Documentation

void fasp_amg_interp ( dCSRmat A,
ivector vertices,
dCSRmat P,
iCSRmat S,
AMG_param param 
)

Generate interpolation operator P.

Parameters
APointer to dCSRmat: the coefficient matrix (index starts from 0)
verticesIndicator vector for the C/F splitting of the variables
PProlongation (input: nonzero pattern, output: prolongation)
SStrong connection matrix
paramAMG parameters
Author
Xuehai Huang, Chensong Zhang
Date
04/04/2010

Modified by Xiaozhe Hu on 05/23/2012: add S as input Modified by Chensong Zhang on 09/12/2012: clean up and debug interp_RS Modified by Chensong Zhang on 05/14/2013: reconstruct the code

Definition at line 48 of file interpolation.c.

void fasp_amg_interp1 ( dCSRmat A,
ivector vertices,
dCSRmat P,
AMG_param param,
iCSRmat S,
INT icor_ysk 
)

Generate interpolation operator P.

Parameters
APointer to dCSRmat: the coefficient matrix (index starts from 0)
verticesIndicator vector for the C/F splitting of the variables
PProlongation (input: nonzero pattern, output: prolongation)
SStrong connection matrix
paramAMG parameters
icor_yskIndices of coarse nodes in fine grid
Returns
FASP_SUCCESS or error message
Author
Chunsheng Feng, Xiaoqiang Yue
Date
03/01/2011

Modified by Chensong Zhang on 05/14/2013: reconstruct the code

Definition at line 105 of file interpolation.c.

void fasp_amg_interp_trunc ( dCSRmat P,
AMG_param param 
)

Truncation step for prolongation operators.

Parameters
PProlongation (input: full, output: truncated)
paramPointer to AMG_param: AMG parameters
Author
Chensong Zhang
Date
05/14/2013

Originally by Xuehai Huang, Chensong Zhang on 01/31/2009 Modified by Chunsheng Feng, Xiaoqiang Yue on 05/23/2012: add OMP support Modified by Chensong Zhang on 05/14/2013: rewritten

Definition at line 159 of file interpolation.c.