My Project
|
Generate a coloring of a mesh suitable for threaded assembly. More...
#include <meshcolorizer.hpp>
Public Member Functions | |
MeshColorizer (const GridType &grid_) | |
Default constructor. | |
const IntMat & | operator[] (unsigned int i) |
Return a color group. | |
void | calcGroups () |
Calculate the coloring. | |
void | calcGroups () |
Generate a coloring of a mesh suitable for threaded assembly.
The mesh is assumed structured, and is sliced in strips of alternating colors (two colors). The two color groups can then be assembled in parallel since they will never add to the same DOFs in the linear system. Currently it can only be instanced for a CpGrid.
|
inlineexplicit |
Default constructor.
[in] | grid_ | The grid to colorize |
|
inline |
Return a color group.
[in] | i | The color to return, either 0 or 1 |