
| 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 ¬Colored) 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 DAOption & | daOption_ | 
| DAOption object.  More... | |
| const DAIndex & | daIndex_ | 
| DAIndex object.  More... | |
Definition at line 32 of file DAColoring.H.
| DAColoring | ( | const fvMesh & | mesh, | 
| const DAOption & | daOption, | ||
| const DAModel & | daModel, | ||
| const DAIndex & | daIndex | ||
| ) | 
Constructors.
Definition at line 17 of file DAColoring.C.
| 
 | inlinevirtual | 
Destructor.
Definition at line 61 of file DAColoring.H.
| 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().

| 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().

| 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().

| 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().


| 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().


| 
 | protected | 
fvMesh object
Definition at line 44 of file DAColoring.H.
Referenced by DAColoring::parallelD2Coloring().
| 
 | protected | 
DAOption object.
Definition at line 47 of file DAColoring.H.
Referenced by DAColoring::parallelD2Coloring().
| 
 | protected | 
DAIndex object.
Definition at line 50 of file DAColoring.H.
Referenced by DAColoring::parallelD2Coloring().