#include <Epetra_MapColoring.h>
Inheritance diagram for Epetra_MapColoring:
Public Member Functions | |
Constructors/destructors. | |
| Epetra_MapColoring (const Epetra_BlockMap &Map, const int DefaultColor=0) | |
| Epetra_MapColoring basic constructor. | |
| Epetra_MapColoring (const Epetra_BlockMap &Map, int *ElementColors, const int DefaultColor=0) | |
| Epetra_MapColoring constructor. | |
| Epetra_MapColoring (const Epetra_MapColoring &Source) | |
| Epetra_MapColoring copy constructor. | |
| virtual | ~Epetra_MapColoring () |
| Epetra_MapColoring destructor. | |
Set Color methods. | |
| int & | operator[] (int LID) |
| LID element color assignment method. | |
| int & | operator() (int GID) |
| GID element color assignment method, Note: Valid only for GIDs owned by calling processor. | |
Local/Global color accessor methods. | |
| const int & | operator[] (int LID) const |
| LID element color access method. | |
| const int & | operator() (int GID) const |
| GID element color assignment method, Note: Valid only for GIDs owned by calling processor. | |
Color Information Access Methods. | |
| int | NumColors () const |
| Returns number of colors on the calling processor. | |
| int | MaxNumColors () const |
| Returns maximum over all processors of the number of colors. | |
| int * | ListOfColors () const |
| Array of length NumColors() containing List of color values used in this coloring. | |
| int | DefaultColor () const |
| Returns default color. | |
| int | NumElementsWithColor (int Color) const |
| Returns number of map elements on calling processor having specified Color. | |
| int * | ColorLIDList (int Color) const |
| Returns pointer to array of Map LIDs associated with the specified color. | |
| int * | ElementColors () const |
| Returns pointer to array of the colors associated with the LIDs on the calling processor. | |
Epetra_Map and Epetra_BlockMap generators. | |
| Epetra_Map * | GenerateMap (int Color) const |
| Generates an Epetra_Map of the GIDs associated with the specified color. | |
| Epetra_BlockMap * | GenerateBlockMap (int Color) const |
| Generates an Epetra_BlockMap of the GIDs associated with the specified color. | |
I/O methods | |
| virtual void | Print (ostream &os) const |
| Print method. | |
This class allows the user to associate an integer value, i.e., a color, to each element of an existing Epetra_Map or Epetra_BlockMap object. Colors may be assigned at construction, or via set methods. Any elements that are not explicitly assigned a color are assigned the color 0 (integer zero).
This class has the following features:
Any element that is not explicitly colored takes on the default color. The default color is implicitly zero, unless specified differently at the time of construction.
|
||||||||||||
|
Epetra_MapColoring basic constructor.
|
|
||||||||||||||||
|
Epetra_MapColoring constructor.
|
|
|
Returns pointer to array of Map LIDs associated with the specified color. Returns a pointer to a list of Map LIDs associated with the specified color. This is a purely local list with no information about other processors. If there are no LIDs associated with the specified color, the pointer is set to zero. |
|
|
Returns pointer to array of the colors associated with the LIDs on the calling processor. Returns a pointer to the list of colors associated with the elements on this processor such that ElementColor[LID] is the color assigned to that LID. |
|
|
Generates an Epetra_BlockMap of the GIDs associated with the specified color. This method will create an Epetra_BlockMap such that on each processor the GIDs associated with the specified color will be part of the map on that processor. Note that this method will generate an Epetra_BlockMap such that each element as the same element size as the corresponding element of map associated with the map coloring. Once the map is generated, the user is responsible for deleting it. |
|
|
Generates an Epetra_Map of the GIDs associated with the specified color. This method will create an Epetra_Map such that on each processor the GIDs associated with the specified color will be part of the map on that processor. Note that this method always generates an Epetra_Map, not an Epetra_BlockMap, even if the map associated with this map coloring is a block map. Once the map is generated, the user is responsible for deleting it. |
|
|
Array of length NumColors() containing List of color values used in this coloring. Color values can be arbitrary integer values. As a result, a user of a previously constructed MapColoring object may need to know exactly which color values are present. This array contains that information as a sorted list of integer values. |
|
|
GID element color assignment method, Note: Valid only for GIDs owned by calling processor. Allows color assignment of specified GID only if the GID is owned by map on the calling processor. If you are unsure about the ownership, check by using the MyGID() method on the map object.
|
|
|
GID element color assignment method, Note: Valid only for GIDs owned by calling processor. Allows color assignment of specified GID only if the GID is owned by map on the calling processor. If you are unsure about the ownership of a GID, check by using the MyGID() method. MyGID(GID) returns true if the GID is owned by the calling processor.
|
|
|
LID element color access method. Returns color of ith LID: colormap[i] = color
|
|
|
LID element color assignment method. Allows color assignment of ith LID: colormap[i] = color
|
1.3.9.1