50 #ifndef _ZOLTAN2_PARTITIONMAPPING_HPP_ 51 #define _ZOLTAN2_PARTITIONMAPPING_HPP_ 54 #include "Teuchos_Comm.hpp" 63 template <
typename Adapter>
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS 69 typedef typename Adapter::gno_t gno_t;
70 typedef typename Adapter::scalar_t scalar_t;
71 typedef typename Adapter::lno_t lno_t;
72 typedef typename Adapter::part_t part_t;
73 typedef typename Adapter::user_t user_t;
76 const Teuchos::Comm<int> *
comm;
89 const Teuchos::Comm<int> *comm_,
121 const Teuchos::Comm<int> *comm_,
148 virtual void getPartsForProc(
int procId, part_t &numParts, part_t *parts)
159 virtual void getProcsForPart(part_t partId, part_t &numProcs, part_t *procs)
const = 0;
const Teuchos::Comm< int > * comm
PartitionMapping(const Environment *envConst_, const Teuchos::Comm< int > *comm_, const MachineRepresentation< scalar_t > *machine_)
Defines the Model interface.
const Zoltan2::PartitioningSolution< Adapter > * soln
Defines the PartitioningSolution class.
PartitionMapping(const Environment *envConst_)
const Zoltan2::MachineRepresentation< scalar_t > * machine
virtual void getPartsForProc(int procId, part_t &numParts, part_t *parts) const =0
Get the parts belonging to a process.
PartitionMapping maps a solution or an input distribution to ranks.
A PartitioningSolution is a solution to a partitioning problem.
The user parameters, debug, timing and memory profiling output objects, and error checking methods...
PartitionMapping(const Teuchos::Comm< int > *comm_, const Zoltan2::MachineRepresentation< scalar_t > *machine_, const Zoltan2::Model< typename Adapter::base_adapter_t > *model_, const Zoltan2::PartitioningSolution< Adapter > *soln_, const Environment *envConst_)
Constructor Constructor builds the map from parts to ranks. KDDKDD WILL NEED THE SOLUTION FOR INTELLI...
Defines the Environment class.
const Zoltan2::Model< typename Adapter::base_adapter_t > * model
virtual ~PartitionMapping()
virtual size_t getLocalNumberOfParts() const =0
Returns the number of parts to be assigned to this process.
virtual void getProcsForPart(part_t partId, part_t &numProcs, part_t *procs) const =0
Get the processes containing a part.