Public Member Functions | Protected Attributes | List of all members
DAColoring Class Reference
Collaboration diagram for DAColoring:
Collaboration graph
[legend]

Public Member Functions

 DAColoring (const fvMesh &mesh, const DAOption &daOption, const DAModel &daModel, const DAIndex &daIndex)
 Constructors. More...
 
virtual ~DAColoring ()
 Destructor. More...
 
void getMatNonZeros (const Mat conMat, label &maxCols, scalar &allNonZeros) const
 number of non-zero elements in a matrix More...
 
label find_index (const label target, const label start, const label size, const label *valArray) const
 find the index of a prescribed value in an array More...
 
void coloringComplete (const Vec colors, label &colorCounter, label &notColored) const
 check if there is non-colored columns More...
 
void parallelD2Coloring (const Mat conMat, Vec colors, label &nColors) const
 a parallel distance-2 graph coloring function More...
 
void validateColoring (Mat conMat, Vec colors) const
 validate if there is coloring conflict More...
 

Protected Attributes

const fvMesh & mesh_
 fvMesh object More...
 
const DAOptiondaOption_
 DAOption object. More...
 
const DAIndexdaIndex_
 DAIndex object. More...
 

Detailed Description

Definition at line 32 of file DAColoring.H.

Constructor & Destructor Documentation

◆ DAColoring()

DAColoring ( const fvMesh &  mesh,
const DAOption daOption,
const DAModel daModel,
const DAIndex daIndex 
)

Constructors.

Definition at line 17 of file DAColoring.C.

◆ ~DAColoring()

virtual ~DAColoring ( )
inlinevirtual

Destructor.

Definition at line 62 of file DAColoring.H.

Member Function Documentation

◆ getMatNonZeros()

void getMatNonZeros ( const Mat  conMat,
label &  maxCols,
scalar &  allNonZeros 
) const

number of non-zero elements in a matrix

Definition at line 786 of file DAColoring.C.

References dafoam_plot3dtransform::vals.

Referenced by DAColoring::parallelD2Coloring().

Here is the caller graph for this function:

◆ find_index()

label find_index ( const label  target,
const label  start,
const label  size,
const label *  valArray 
) const

find the index of a prescribed value in an array

Definition at line 844 of file DAColoring.C.

References k.

Referenced by DAColoring::parallelD2Coloring().

Here is the caller graph for this function:

◆ coloringComplete()

void coloringComplete ( const Vec  colors,
label &  colorCounter,
label &  notColored 
) const

check if there is non-colored columns

Definition at line 881 of file DAColoring.C.

Referenced by DAColoring::parallelD2Coloring().

Here is the caller graph for this function:

◆ parallelD2Coloring()

void parallelD2Coloring ( const Mat  conMat,
Vec  colors,
label &  nColors 
) const

a parallel distance-2 graph coloring function

Definition at line 32 of file DAColoring.C.

References DAColoring::coloringComplete(), DAColoring::daIndex_, DAColoring::daOption_, DAColoring::find_index(), DAColoring::getMatNonZeros(), DAOption::getOption(), DAUtility::isValueCloseToRef(), k, DAColoring::mesh_, DAIndex::nGlobalAdjointStates, DAIndex::nLocalAdjointStates, and dafoam_plot3dtransform::vals.

Referenced by DAJacCon::calcJacConColoring().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateColoring()

void validateColoring ( Mat  conMat,
Vec  colors 
) const

validate if there is coloring conflict

Definition at line 931 of file DAColoring.C.

References DAUtility::isValueCloseToRef(), and dafoam_plot3dtransform::vals.

Referenced by DAJacCon::calcJacConColoring(), and DAJacCon::readJacConColoring().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

fvMesh object

Definition at line 45 of file DAColoring.H.

Referenced by DAColoring::parallelD2Coloring().

◆ daOption_

const DAOption& daOption_
protected

DAOption object.

Definition at line 48 of file DAColoring.H.

Referenced by DAColoring::parallelD2Coloring().

◆ daIndex_

const DAIndex& daIndex_
protected

DAIndex object.

Definition at line 51 of file DAColoring.H.

Referenced by DAColoring::parallelD2Coloring().


The documentation for this class was generated from the following files: