PyTrilinos  Development
 All Classes Functions
Public Member Functions | Public Attributes
PyTrilinos.Isorropia.NestedEpetra.Partitioner Class Reference
Inheritance diagram for PyTrilinos.Isorropia.NestedEpetra.Partitioner:
Inheritance graph
[legend]
Collaboration diagram for PyTrilinos.Isorropia.NestedEpetra.Partitioner:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def setPartSizes
def clearPartSizes
def partition
def compute
def numElemsInPart
def elemsInPart
def createNewMap
def printZoltanMetrics

Public Attributes

 this

Detailed Description

Proxy of C++ Isorropia::Epetra::Partitioner class

Constructor & Destructor Documentation

__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_CrsGraph const > inputGraph, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, CrsGraph inputGraph, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_CrsGraph const > inputGraph, Teuchos::RCP< Isorropia::Epetra::CostDescriber > costs, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, CrsGraph inputGraph, CostDescriber costs, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_RowMatrix const > inputMatrix, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, RowMatrix inputMatrix, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_RowMatrix const > inputMatrix, Teuchos::RCP< Isorropia::Epetra::CostDescriber > costs, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, RowMatrix inputMatrix, CostDescriber costs, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_MultiVector const > coords, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Epetra_MultiVector coords, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_MultiVector const > coords, Teuchos::RCP< Epetra_MultiVector const > weights, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Epetra_MultiVector coords, Epetra_MultiVector weights, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_BlockMap const > inputMap, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, BlockMap inputMap, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_CrsGraph const > inputGraph, Teuchos::RCP< Epetra_MultiVector const > coords, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, CrsGraph inputGraph, Epetra_MultiVector coords, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_CrsGraph const > inputGraph, Teuchos::RCP< Isorropia::Epetra::CostDescriber > costs, 
    Teuchos::RCP< Epetra_MultiVector const > coords, Teuchos::RCP< Epetra_MultiVector const > weights, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, CrsGraph inputGraph, CostDescriber costs, Epetra_MultiVector coords, Epetra_MultiVector weights, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_RowMatrix const > inputMatrix, Teuchos::RCP< Epetra_MultiVector const > coords, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, RowMatrix inputMatrix, Epetra_MultiVector coords, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, Teuchos::RCP< Epetra_RowMatrix const > inputMatrix, Teuchos::RCP< Isorropia::Epetra::CostDescriber > costs, 
    Teuchos::RCP< Epetra_MultiVector const > coords, 
    Teuchos::RCP< Epetra_MultiVector const > weights, ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner
__init__(Isorropia::Epetra::Partitioner self, RowMatrix inputMatrix, CostDescriber costs, Epetra_MultiVector coords, Epetra_MultiVector weights, 
    ParameterList paramlist=Teuchos::ParameterList("EmptyParameterList"), 
    bool compute_partitioning_now=True) -> Partitioner

Member Function Documentation

clearPartSizes(Partitioner self)
compute(Partitioner self, bool forceRecomputing=False)

virtual void
Isorropia::Operator::compute(bool forceRecomputing=false)=0

Method which does the work of computing a new
partitioning/coloring/ordering, depending on the child class used.

Parameters:
-----------

forceRecomputing:  Optional argument defaults to false. Depending on
the implementation, compute() should only perform a computation the
first time it is called, and subsequent repeated calls are no-ops. If
the user's intent is to re- compute the results (e.g., if parameters
or other inputs have been changed), then setting this flag to true
will force a new result to be computed. 

Reimplemented from PyTrilinos.Isorropia.NestedEpetra.Operator.

createNewMap(Partitioner self) -> Teuchos::RCP< Epetra_Map >
elemsInPart(Partitioner self, int part, int * elementList)

virtual
void Isorropia::Partitioner::elemsInPart(int part, int *elementList,
int len) const =0

Fill user-allocated list (of length len) with the local element ids to
be located in the given part

Parameters:
-----------

part:  the part ID we consider

elementList:  array of elements that belongs to this part ID, must be
allocated by user with size at least len

len:  maximum number of elements we can put in the array. Usually, may
be the result of Isorropia::Partitioner::numElemsInPart(). .

See:   Isorropia::Operator::elemsWithProperty() 
numElemsInPart(Partitioner self, int part) -> int

virtual int Isorropia::Partitioner::numElemsInPart(int part) const =0

Return the number of LOCAL elements in a given part.

Parameters:
-----------

part:  the part ID we want to know the number of local elements.

number of local elements that belongs to the given part.

See:   Isorropia::Operator::numElemsWithProperty() 
partition(Partitioner self, bool force_repartitioning=False)

virtual
void Isorropia::Partitioner::partition(bool
forceRepartitioning=false)=0

Method which does the work of computing a new partitioning.
Implementations of this interface will typically be constructed with
an object or information describing the existing ('old') partitioning.
This method computes a 'new' rebalanced partitioning for that input
data.

Parameters:
-----------

forceRepartitioning:  Optional argument defaults to false. Depending
on the implementation, partitioning() should only perform a
repartitioning the first time it is called, and subsequent repeated
calls are no-ops. If the user's intent is to re-compute the
partitioning (e.g., if parameters or other inputs have been changed),
then setting this flag to true will force a new partitioning to be
computed.

See:   Isorropia::Operator::compute() 
printZoltanMetrics(Partitioner self) -> int
setPartSizes(Partitioner self, int len, int * global_part_id, float * part_size)

The documentation for this class was generated from the following file:
 All Classes Functions