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

Direct and standard interpolations for classical 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...
 

Detailed Description

Direct and standard interpolations for classical AMG.

Note
This file contains Level-4 (Pre) functions. It requires: AuxArray.c, AuxMemory.c, AuxMessage.c, AuxThreads.c, and PreAMGInterpEM.c

Reference: 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.


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 PreAMGInterp.c.

Function Documentation

◆ fasp_amg_interp()

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

Generate interpolation operator P.

Parameters
APointer to dCSRmat 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 64 of file PreAMGInterp.c.