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

Coarsening with Brannick-Falgout strategy. More...

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

Go to the source code of this file.

Functions

INT fasp_amg_coarsening_cr (const INT i_0, const INT i_n, dCSRmat *A, ivector *vertices, AMG_param *param)
 CR coarsening. More...
 

Detailed Description

Coarsening with Brannick-Falgout strategy.

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

Copyright (C) 2010–Present by the FASP team. All rights reserved.

Released under the terms of the GNU Lesser General Public License 3.0 or later.

// TODO: Not completed! –Chensong

Definition in file PreAMGCoarsenCR.c.

Macro Definition Documentation

◆ AMG_COARSEN_CR

#define AMG_COARSEN_CR

Definition at line 25 of file PreAMGCoarsenCR.c.

Function Documentation

◆ fasp_amg_coarsening_cr()

INT fasp_amg_coarsening_cr ( const INT  i_0,
const INT  i_n,
dCSRmat A,
ivector vertices,
AMG_param param 
)

CR coarsening.

Parameters
i_0Starting index
i_nEnding index
APointer to dCSRmat: the coefficient matrix (index starts from 0)
verticesPointer to CF, 0: Fpt (current level) or 1: Cpt
paramPointer to AMG_param: AMG parameters
Returns
Number of coarse level points
Author
James Brannick
Date
04/21/2010
Note
vertices = 0: fine; 1: coarse; 2: isolated or special

Modified by Chunsheng Feng, Zheng Li on 10/14/2012

CR STAGES

Definition at line 62 of file PreAMGCoarsenCR.c.