Zoltan2
Public Types | Public Member Functions | List of all members
Zoltan2::AlgBlock< Adapter > Class Template Reference

#include <Zoltan2_AlgBlock.hpp>

Inheritance diagram for Zoltan2::AlgBlock< Adapter >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::AlgBlock< Adapter >:
Collaboration graph
[legend]

Public Types

typedef Adapter::lno_t lno_t
 
typedef Adapter::gno_t gno_t
 
typedef Adapter::scalar_t scalar_t
 
typedef Adapter::part_t part_t
 
- 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
 

Public Member Functions

 AlgBlock (const RCP< const Environment > &env_, const RCP< const Comm< int > > &problemComm_, const RCP< const IdentifierModel< typename Adapter::base_adapter_t > > &ids_)
 
void partition (const RCP< PartitioningSolution< Adapter > > &solution)
 Partitioning method. More...
 
- Public Member Functions inherited from Zoltan2::Algorithm< Adapter >
virtual ~Algorithm ()
 
virtual int localOrder (const RCP< LocalOrderingSolution< lno_t > > &solution)
 Ordering method. More...
 
virtual int globalOrder (const RCP< GlobalOrderingSolution< gno_t > > &solution)
 Ordering method. More...
 
virtual void color (const RCP< ColoringSolution< Adapter > > &solution)
 Coloring method. More...
 
virtual void match ()
 Matching method. More...
 
virtual void partitionMatrix (const RCP< MatrixPartitioningSolution< Adapter > > &solution)
 Matrix Partitioning method. More...
 
virtual void map (const RCP< MappingSolution< Adapter > > &solution)
 Mapping method. More...
 
virtual bool isPartitioningTreeBinary () const
 return if algorithm determins tree to be binary More...
 
virtual void getPartitionTree (part_t numParts, part_t &numTreeVerts, std::vector< part_t > &permPartNums, std::vector< part_t > &splitRangeBeg, std::vector< part_t > &splitRangeEnd, std::vector< part_t > &treeVertParents) const
 for partitioning methods, fill arrays with partition tree info More...
 
virtual std::vector< coordinateModelPartBox< scalar_t, part_t > > & getPartBoxesView () const
 for partitioning methods, return bounding boxes of the More...
 
virtual part_t pointAssign (int dim, scalar_t *point) const
 pointAssign method: Available only for some partitioning algorithms More...
 
virtual void boxAssign (int dim, scalar_t *lower, scalar_t *upper, size_t &nParts, part_t **partsFound) const
 boxAssign method: Available only for some partitioning algorithms More...
 
virtual void getCommunicationGraph (const PartitioningSolution< Adapter > *solution, ArrayRCP< part_t > &comXAdj, ArrayRCP< part_t > &comAdj)
 returns serial communication graph of a computed partition More...
 
virtual int getRankForPart (part_t p)
 In mapping, returns the rank to which a part is assigned. More...
 
virtual void getMyPartsView (part_t &numParts, part_t *&parts)
 In mapping, returns a view of parts assigned to the current rank. More...
 

Detailed Description

template<typename Adapter>
class Zoltan2::AlgBlock< Adapter >

Block partitioning method.

Parameters
envlibrary configuration and problem parameters
problemCommthe communicator for the problem
idsan Identifier model

Preconditions: The parameters in the environment have been processed (committed). No special requirements on the identifiers.

Todo:
Block partitioning uses one weight only
Todo:
check for memory allocation failures
Todo:
The metrics come out really bad. Is it an error in algorithm or in metrics.

Definition at line 91 of file Zoltan2_AlgBlock.hpp.

Member Typedef Documentation

◆ lno_t

template<typename Adapter >
typedef Adapter::lno_t Zoltan2::AlgBlock< Adapter >::lno_t

Definition at line 100 of file Zoltan2_AlgBlock.hpp.

◆ gno_t

template<typename Adapter >
typedef Adapter::gno_t Zoltan2::AlgBlock< Adapter >::gno_t

Definition at line 101 of file Zoltan2_AlgBlock.hpp.

◆ scalar_t

template<typename Adapter >
typedef Adapter::scalar_t Zoltan2::AlgBlock< Adapter >::scalar_t

Definition at line 102 of file Zoltan2_AlgBlock.hpp.

◆ part_t

template<typename Adapter >
typedef Adapter::part_t Zoltan2::AlgBlock< Adapter >::part_t

Definition at line 103 of file Zoltan2_AlgBlock.hpp.

Constructor & Destructor Documentation

◆ AlgBlock()

template<typename Adapter >
Zoltan2::AlgBlock< Adapter >::AlgBlock ( const RCP< const Environment > &  env_,
const RCP< const Comm< int > > &  problemComm_,
const RCP< const IdentifierModel< typename Adapter::base_adapter_t > > &  ids_ 
)
inline

Definition at line 106 of file Zoltan2_AlgBlock.hpp.

Member Function Documentation

◆ partition()

template<typename Adapter >
void Zoltan2::AlgBlock< Adapter >::partition ( const RCP< PartitioningSolution< Adapter > > &  solution)
inlinevirtual

Partitioning method.

Reimplemented from Zoltan2::Algorithm< Adapter >.

Definition at line 115 of file Zoltan2_AlgBlock.hpp.


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