EpetraExt Development
Static Public Member Functions
EpetraExt::BlockUtility Class Reference

#include <EpetraExt_BlockUtility.h>

List of all members.

Static Public Member Functions

static Epetra_MapGenerateBlockMap (const Epetra_BlockMap &BaseMap, const int *RowIndices, int num_indices, const Epetra_Comm &GlobalComm, int Offset=0)
static Epetra_MapGenerateBlockMap (const Epetra_BlockMap &BaseMap, const std::vector< int > &RowIndices, const Epetra_Comm &GlobalComm, int Offset=0)
static Epetra_MapGenerateBlockMap (const Epetra_BlockMap &BaseMap, const Epetra_BlockMap &BlockMap, const Epetra_Comm &GlobalComm, int Offset=0)
static Epetra_CrsGraphGenerateBlockGraph (const Epetra_CrsGraph &BaseGraph, const std::vector< std::vector< int > > &RowStencil, const std::vector< int > &RowIndices, const Epetra_Comm &GlobalComm)
 BlockCrsMatrix constuctor.
static Epetra_CrsGraphGenerateBlockGraph (const Epetra_RowMatrix &BaseMatrix, const std::vector< std::vector< int > > &RowStencil, const std::vector< int > &RowIndices, const Epetra_Comm &GlobalComm)
static Epetra_CrsGraphGenerateBlockGraph (const Epetra_CrsGraph &BaseGraph, const Epetra_CrsGraph &LocalBlockGraph, const Epetra_Comm &GlobalComm)
 Generate global block graph using base graph and local block graph.
static void GenerateRowStencil (const Epetra_CrsGraph &LocalBlockGraph, std::vector< int > RowIndices, std::vector< std::vector< int > > &RowStencil)
 Generate stencil arrays from a local block graph.
static int CalculateOffset (const Epetra_BlockMap &BaseMap)
 Routine for calculating Offset for creating unique global IDs for Block representation.

Detailed Description

Definition at line 54 of file EpetraExt_BlockUtility.h.


Member Function Documentation

Epetra_Map * EpetraExt::BlockUtility::GenerateBlockMap ( const Epetra_BlockMap BaseMap,
const int *  RowIndices,
int  num_indices,
const Epetra_Comm GlobalComm,
int  Offset = 0 
) [static]

Creates a BlockMap object

Parameters:
InBaseMap - Map determining individual block structure, can be distrib. over subset of proc.'s
InRowIndices - Defines the indices for local block rows

Definition at line 51 of file EpetraExt_BlockUtility.cpp.

Epetra_Map * EpetraExt::BlockUtility::GenerateBlockMap ( const Epetra_BlockMap BaseMap,
const std::vector< int > &  RowIndices,
const Epetra_Comm GlobalComm,
int  Offset = 0 
) [static]

Creates a BlockMap object

Parameters:
InBaseMap - Map determining individual block structure, can be distrib. over subset of proc.'s
InRowIndices - Defines the indices for local block rows

Definition at line 86 of file EpetraExt_BlockUtility.cpp.

Epetra_Map * EpetraExt::BlockUtility::GenerateBlockMap ( const Epetra_BlockMap BaseMap,
const Epetra_BlockMap BlockMap,
const Epetra_Comm GlobalComm,
int  Offset = 0 
) [static]

Creates a BlockMap object

Parameters:
InBaseMap - Map determining individual block structure, can be distrib. over subset of proc.'s
InRowIndices - Defines the indices for local block rows

Definition at line 97 of file EpetraExt_BlockUtility.cpp.

static Epetra_CrsGraph* EpetraExt::BlockUtility::GenerateBlockGraph ( const Epetra_CrsGraph BaseGraph,
const std::vector< std::vector< int > > &  RowStencil,
const std::vector< int > &  RowIndices,
const Epetra_Comm GlobalComm 
) [static]

BlockCrsMatrix constuctor.

Creates a BlockGraph object

Parameters:
InBaseGraph - Graph determining individual block structure, can be distrib. over subset of proc.'s
InRowStencil - Describes the stencil for block rows on this processor (i.e. (-1 0 1) centered difference)
InRowIndices - Defines the indices for local block rows
static Epetra_CrsGraph* EpetraExt::BlockUtility::GenerateBlockGraph ( const Epetra_RowMatrix BaseMatrix,
const std::vector< std::vector< int > > &  RowStencil,
const std::vector< int > &  RowIndices,
const Epetra_Comm GlobalComm 
) [static]
Epetra_CrsGraph * EpetraExt::BlockUtility::GenerateBlockGraph ( const Epetra_CrsGraph BaseGraph,
const Epetra_CrsGraph LocalBlockGraph,
const Epetra_Comm GlobalComm 
) [static]

Generate global block graph using base graph and local block graph.

Definition at line 246 of file EpetraExt_BlockUtility.cpp.

void EpetraExt::BlockUtility::GenerateRowStencil ( const Epetra_CrsGraph LocalBlockGraph,
std::vector< int >  RowIndices,
std::vector< std::vector< int > > &  RowStencil 
) [static]

Generate stencil arrays from a local block graph.

Definition at line 320 of file EpetraExt_BlockUtility.cpp.

int EpetraExt::BlockUtility::CalculateOffset ( const Epetra_BlockMap BaseMap) [static]

Routine for calculating Offset for creating unique global IDs for Block representation.

Definition at line 357 of file EpetraExt_BlockUtility.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines