14 #ifndef _ZOLTAN2_PARTITIONMAPPING_HPP_
15 #define _ZOLTAN2_PARTITIONMAPPING_HPP_
18 #include "Teuchos_Comm.hpp"
28 template <
typename Adapter>
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef typename Adapter::scalar_t
scalar_t;
36 typedef typename Adapter::scalar_t pcoord_t;
42 const Teuchos::RCP <const Teuchos::Comm<int> >
comm;
43 const Teuchos::RCP <const Zoltan2::MachineRepresentation <pcoord_t,part_t> >
machine;
45 const Teuchos::RCP <const Zoltan2::PartitioningSolution<Adapter> >
soln;
46 const Teuchos::RCP <const Environment >
env;
58 const Teuchos::RCP <
const Teuchos::Comm<int> >comm_,
61 const Teuchos::RCP <const Adapter> input_adapter_,
64 const Teuchos::RCP <const Environment > envConst_
71 env(envConst_),
num_parts(soln_->getActualGlobalNumberOfParts()),
76 const Teuchos::RCP <
const Teuchos::Comm<int> >comm_,
79 const Teuchos::RCP <const Adapter> input_adapter_,
82 const part_t *result_parts,
83 const Teuchos::RCP <const Environment > envConst_
95 const Teuchos::RCP <
const Teuchos::Comm<int> >comm_,
96 const Teuchos::RCP <const Environment > envConst_
124 const Teuchos::RCP <const Environment > envConst_,
125 const Teuchos::RCP <
const Teuchos::Comm<int> >comm_,
const zpart_t * getPartListView(RCP< ProblemFactory > problemFactory)
Defines the Model interface.
PartitionMapping(const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > >machine_, const Teuchos::RCP< const Adapter > input_adapter_, const part_t num_parts_, const part_t *result_parts, const Teuchos::RCP< const Environment > envConst_)
map_t::global_ordinal_type gno_t
const part_t * solution_parts
PartitionMapping(const Teuchos::RCP< const Environment > envConst_, const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const MachineRepresentation< pcoord_t, part_t > >machine_)
Defines the PartitioningSolution class.
PartitionMapping(const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > >machine_, const Teuchos::RCP< const Adapter > input_adapter_, const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > >soln_, const Teuchos::RCP< const Environment > envConst_)
Constructor Constructor builds the map from parts to ranks. KDDKDD WILL NEED THE SOLUTION FOR INTELLI...
const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > > soln
SparseMatrixAdapter_t::part_t part_t
Adapter::scalar_t scalar_t
PartitionMapping maps a solution or an input distribution to ranks.
A PartitioningSolution is a solution to a partitioning problem.
PartitionMapping(const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const Environment > envConst_)
Algorithm defines the base class for all algorithms.
map_t::local_ordinal_type lno_t
MachineRepresentation Class Base class for representing machine coordinates, networks, etc.
virtual void getPartsForProc(int procId, part_t &numParts, part_t *&parts) const =0
Get the parts belonging to a process.
const Teuchos::RCP< const Adapter > input_adapter
const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > > machine
const Teuchos::RCP< const Teuchos::Comm< int > > comm
Defines the Environment class.
PartitionMapping(const Teuchos::RCP< const Environment >envConst_)
virtual ~PartitionMapping()
virtual size_t getLocalNumberOfParts() const =0
Returns the number of parts to be assigned to this process.
const Teuchos::RCP< const Environment > env
virtual void getProcsForPart(part_t partId, part_t &numProcs, part_t *&procs) const =0
Get the processes containing a part.
Zoltan2::BasicUserTypes< zscalar_t, zlno_t, zgno_t > user_t