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

Coarsening with a modified Ruge-Stuben strategy. More...

#include "fasp.h"
#include "fasp_functs.h"
#include "PreAMGUtil.inl"
#include <math.h>

Go to the source code of this file.

Functions

SHORT fasp_amg_coarsening_rs (dCSRmat *A, ivector *vertices, dCSRmat *P, iCSRmat *S, AMG_param *param)
 Standard and aggressive coarsening schemes. More...
 
REAL rabs (REAL x)
 

Detailed Description

Coarsening with a modified Ruge-Stuben strategy.

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

Reference: Multigrid by U. Trottenberg, C. W. Oosterlee and A. Schuller Appendix P475 A.7 (by A. Brandt, P. Oswald and K. Stuben) Academic Press Inc., San Diego, CA, 2001.


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

Function Documentation

◆ fasp_amg_coarsening_rs()

SHORT fasp_amg_coarsening_rs ( dCSRmat A,
ivector vertices,
dCSRmat P,
iCSRmat S,
AMG_param param 
)

Standard and aggressive coarsening schemes.

Parameters
APointer to dCSRmat: Coefficient matrix (index starts from 0)
verticesIndicator vector for the C/F splitting of the variables
PInterpolation matrix (nonzero pattern only)
SStrong connection matrix
paramPointer to AMG_param: AMG parameters
Returns
FASP_SUCCESS if successed; otherwise, error information.
Author
Xuehai Huang, Chensong Zhang, Xiaozhe Hu, Ludmil Zikatanov
Date
09/06/2010
Note
vertices = 0: fine; 1: coarse; 2: isolated or special

Modified by Xiaozhe Hu on 05/23/2011: add strength matrix as an argument Modified by Xiaozhe Hu on 04/24/2013: modify aggressive coarsening Modified by Chensong Zhang on 04/28/2013: remove linked list Modified by Chensong Zhang on 05/11/2013: restructure the code

Definition at line 76 of file PreAMGCoarsenRS.c.

◆ rabs()

REAL rabs ( REAL  x)

Definition at line 1783 of file PreAMGCoarsenRS.c.