44#ifndef EPETRA_MAPCOLORING_H
45#define EPETRA_MAPCOLORING_H
196 int MaxNumColors()
const;
209 int NumElementsWithColor(
int Color)
const;
216 int * ColorLIDList(
int Color)
const;
251 virtual void Print(std::ostream & os)
const;
255 int Allocate(
int * ElementColors,
int Increment);
256 int GenerateLists()
const;
257 int DeleteLists()
const;
258 bool InItemList(
int ColorValue)
const;
267 int * PermuteFromLIDs,
318 template<
typename int_type>
321 template<
typename int_type>
Epetra_BlockMap: A class for partitioning block element vectors and matrices.
int LID(int GID) const
Returns local ID of global ID, return -1 if not found on this processor.
const Epetra_BlockMap & Map() const
Returns the address of the Epetra_BlockMap for this multi-vector.
virtual int CheckSizes(const Epetra_SrcDistObject &Source)=0
Allows the source and target (this) objects to be compared for compatibility, return nonzero if not.
virtual int UnpackAndCombine(const Epetra_SrcDistObject &Source, int NumImportIDs, int *ImportLIDs, int LenImports, char *Imports, int &SizeOfPacket, Epetra_Distributor &Distor, Epetra_CombineMode CombineMode, const Epetra_OffsetIndex *Indexor)=0
Perform any unpacking and combining after call to DoTransfer().
virtual int PackAndPrepare(const Epetra_SrcDistObject &Source, int NumExportIDs, int *ExportLIDs, int &LenExports, char *&Exports, int &SizeOfPacket, int *Sizes, bool &VarSizes, Epetra_Distributor &Distor)=0
Perform any packing or preparation required for call to DoTransfer().
virtual int CopyAndPermute(const Epetra_SrcDistObject &Source, int NumSameIDs, int NumPermuteIDs, int *PermuteToLIDs, int *PermuteFromLIDs, const Epetra_OffsetIndex *Indexor, Epetra_CombineMode CombineMode=Zero)=0
Perform ID copies and permutations that are on processor.
Epetra_DistObject(const Epetra_BlockMap &Map)
Basic Epetra_DistObject constuctor.
virtual void Print(std::ostream &os) const
Print method.
Epetra_Distributor: The Epetra Gather/Scatter Setup Base Class.
int NumColors() const
Returns number of colors on the calling processor.
Epetra_MapColoring & operator=(const Epetra_MapColoring &Coloring)
Epetra_Map * TGenerateMap(int Color) const
int * ListOfColors() const
Array of length NumColors() containing List of color values used in this coloring.
int GenerateLists() const
int DefaultColor() const
Returns default color.
Epetra_BlockMap * TGenerateBlockMap(int Color) const
Epetra_HashTable< int > * ColorIDs_
Epetra_MapColoring(const Epetra_BlockMap &Map, const int DefaultColor=0)
Epetra_MapColoring basic constructor.
int * ElementColors() const
Returns pointer to array of the colors associated with the LIDs on the calling processor.
Epetra_Map: A class for partitioning vectors and matrices.
Epetra_OffsetIndex: This class builds index for efficient mapping of data from one Epetra_CrsGraph ba...
Epetra_SrcDistObject: A class for supporting flexible source distributed objects for import/export op...
ListItem(const int itemValue=0, ListItem *nextItem=0)