Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Zoltan2::AlgBlockMapping< Adapter, MachineRep > Class Template Reference

#include <Zoltan2_AlgBlockMapping.hpp>

Inheritance diagram for Zoltan2::AlgBlockMapping< Adapter, MachineRep >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::AlgBlockMapping< Adapter, MachineRep >:
Collaboration graph
[legend]

Public Member Functions

 AlgBlockMapping (const Teuchos::RCP< const Teuchos::Comm< int > > &comm_, const Teuchos::RCP< const MachineRep > &machine_, const Teuchos::RCP< const Adapter > &adapter_, const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > > &psoln_, const Teuchos::RCP< const Environment > &envConst)
 
 AlgBlockMapping (const Teuchos::RCP< const Teuchos::Comm< int > > comm_, const part_t nparts)
 Constructor that allows this mapping method to be used as a. More...
 
void sharedConstructor ()
 
void map (const Teuchos::RCP< MappingSolution< Adapter > > &msoln)
 
int getRankForPart (part_t p)
 In mapping, returns the rank to which a part is assigned. More...
 
void getMyPartsView (part_t &numParts, part_t *&parts)
 In mapping, returns a view of parts assigned to the current rank. More...
 
- Public Member Functions inherited from Zoltan2::Algorithm< Adapter >
virtual ~Algorithm ()
 
virtual int localOrder (const RCP< LocalOrderingSolution< lno_t > > &)
 Ordering method. More...
 
virtual int globalOrder (const RCP< GlobalOrderingSolution< gno_t > > &)
 Ordering method. More...
 
virtual void color (const RCP< ColoringSolution< Adapter > > &)
 Coloring method. More...
 
virtual void match ()
 Matching method. More...
 
virtual void partition (const RCP< PartitioningSolution< Adapter > > &)
 Partitioning method. More...
 
virtual void partitionMatrix (const RCP< MatrixPartitioningSolution< Adapter > > &)
 Matrix Partitioning method. More...
 
virtual void map (const RCP< MappingSolution< Adapter > > &)
 Mapping method. More...
 
virtual bool isPartitioningTreeBinary () const
 return if algorithm determins tree to be binary More...
 
virtual void getPartitionTree (part_t, part_t &, std::vector< part_t > &, std::vector< part_t > &, std::vector< part_t > &, std::vector< part_t > &) const
 for partitioning methods, fill arrays with partition tree info More...
 
virtual std::vector
< coordinateModelPartBox > & 
getPartBoxesView () const
 for partitioning methods, return bounding boxes of the More...
 
virtual part_t pointAssign (int, scalar_t *) const
 pointAssign method: Available only for some partitioning algorithms More...
 
virtual void boxAssign (int, scalar_t *, scalar_t *, size_t &, part_t **) const
 boxAssign method: Available only for some partitioning algorithms More...
 
virtual void getCommunicationGraph (const PartitioningSolution< Adapter > *, ArrayRCP< part_t > &, ArrayRCP< part_t > &)
 returns serial communication graph of a computed partition More...
 

Additional Inherited Members

- Public Types inherited from Zoltan2::Algorithm< Adapter >
typedef Adapter::lno_t lno_t
 
typedef Adapter::gno_t gno_t
 
typedef Adapter::scalar_t scalar_t
 
typedef Adapter::part_t part_t
 

Detailed Description

template<typename Adapter, typename MachineRep>
class Zoltan2::AlgBlockMapping< Adapter, MachineRep >

Definition at line 68 of file Zoltan2_AlgBlockMapping.hpp.

Constructor & Destructor Documentation

template<typename Adapter , typename MachineRep >
Zoltan2::AlgBlockMapping< Adapter, MachineRep >::AlgBlockMapping ( const Teuchos::RCP< const Teuchos::Comm< int > > &  comm_,
const Teuchos::RCP< const MachineRep > &  machine_,
const Teuchos::RCP< const Adapter > &  adapter_,
const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > > &  psoln_,
const Teuchos::RCP< const Environment > &  envConst 
)
inline

Constructor that can be accessed directly by user through MappingProblem.

Parameters
envparameters for the problem and library configuration
commthe communicator for the problem
adapterthe user's input adapter

Definition at line 87 of file Zoltan2_AlgBlockMapping.hpp.

template<typename Adapter , typename MachineRep >
Zoltan2::AlgBlockMapping< Adapter, MachineRep >::AlgBlockMapping ( const Teuchos::RCP< const Teuchos::Comm< int > >  comm_,
const part_t  nparts 
)
inline

Constructor that allows this mapping method to be used as a.

Definition at line 169 of file Zoltan2_AlgBlockMapping.hpp.

Member Function Documentation

template<typename Adapter , typename MachineRep >
void Zoltan2::AlgBlockMapping< Adapter, MachineRep >::sharedConstructor ( )
inline

Definition at line 181 of file Zoltan2_AlgBlockMapping.hpp.

template<typename Adapter , typename MachineRep >
void Zoltan2::AlgBlockMapping< Adapter, MachineRep >::map ( const Teuchos::RCP< MappingSolution< Adapter > > &  msoln)
inline

Definition at line 188 of file Zoltan2_AlgBlockMapping.hpp.

template<typename Adapter , typename MachineRep >
int Zoltan2::AlgBlockMapping< Adapter, MachineRep >::getRankForPart ( part_t  )
inlinevirtual

In mapping, returns the rank to which a part is assigned.

Reimplemented from Zoltan2::Algorithm< Adapter >.

Definition at line 194 of file Zoltan2_AlgBlockMapping.hpp.

template<typename Adapter , typename MachineRep >
void Zoltan2::AlgBlockMapping< Adapter, MachineRep >::getMyPartsView ( part_t &  ,
part_t *&   
)
inlinevirtual

In mapping, returns a view of parts assigned to the current rank.

Reimplemented from Zoltan2::Algorithm< Adapter >.

Definition at line 204 of file Zoltan2_AlgBlockMapping.hpp.


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