COARSEN

This class is used to manage the Coarsening for AMG. More…

#include "COARSEN.h"

Public Functions

Name
COARSEN(const COARSEN_params &restrict input_params)
Creates an empty object.
~COARSEN()
Deletes the object.
void Compute(DSMat &restrict mat_A, const DDMat *restrict TV, iReg nlevel)
Computes the SoC and the Fine/Coarse nodes.
void fPrintAll_ASCII(DSMat &restrict mat_A, const string & filename) const
Prints the SoC Matrix in ASCII format.
const VEC< iReg > * Get_ptr_SoC_ind() const
Retrieves pointer to SoC_ind.
const VEC< iReg > * Get_ptr_fcnodes() const
Retrieves pointer to fcnodes.
iReg Get_ncoarse() const
Retrieves number of coarse nodes.
const iReg * Get_ptr_ncoarse() const
Retrieves pointer to the number of coarse nodes.
iReg Get_nnz_strong() const
Retrieves the number of strong connections.
iReg Get_nnz_jump() const
Retrieves the number of connections with big jumps.
iReg Get_nnz_negSoC() const
Retrieves the number of zero or negative SoC.

Detailed Description

class COARSEN;

This class is used to manage the Coarsening for AMG.

class COARSEN.

Public Functions Documentation

function COARSEN

COARSEN(
    const COARSEN_params &__restrict__ input_params
)

Creates an empty object.

function ~COARSEN

~COARSEN()

Deletes the object.

function Compute

void Compute(
    DSMat &__restrict__ mat_A,
    const DDMat *__restrict__ TV,
    iReg nlevel
)

Computes the SoC and the Fine/Coarse nodes.

Parameters:

  • mat_A system matrix.
  • TV test space.
  • nlevel level index (used only for debug printing).

function fPrintAll_ASCII

void fPrintAll_ASCII(
    DSMat &__restrict__ mat_A,
    const string & filename
) const

Prints the SoC Matrix in ASCII format.

Parameters:

  • mat_A system matrix (used for SoC connectivity).
  • filename output file name.

function Get_ptr_SoC_ind

inline const VEC< iReg > * Get_ptr_SoC_ind() const

Retrieves pointer to SoC_ind.

function Get_ptr_fcnodes

inline const VEC< iReg > * Get_ptr_fcnodes() const

Retrieves pointer to fcnodes.

function Get_ncoarse

inline iReg Get_ncoarse() const

Retrieves number of coarse nodes.

function Get_ptr_ncoarse

inline const iReg * Get_ptr_ncoarse() const

Retrieves pointer to the number of coarse nodes.

function Get_nnz_strong

inline iReg Get_nnz_strong() const

Retrieves the number of strong connections.

function Get_nnz_jump

inline iReg Get_nnz_jump() const

Retrieves the number of connections with big jumps.

function Get_nnz_negSoC

inline iReg Get_nnz_negSoC() const

Retrieves the number of zero or negative SoC.


Updated on 12 February 2021 at 11:59:50 CET