14 #ifndef ZOLTAN2_EVALUATEMAPPING_HPP
15 #define ZOLTAN2_EVALUATEMAPPING_HPP
30 template<
typename Adapter,
32 MachineRepresentation<
typename Adapter::scalar_t,
37 const RCP <const MachineRep> machine;
51 const RCP<
const Comm<int> > &ucomm_,
53 const MachineRep *machine_ ,
56 machine(Teuchos::rcp(machine_, false)){
64 const RCP<const Environment> &_env,
65 const RCP<
const Comm<int> > &_problemComm,
67 const ArrayView<const typename Adapter::part_t> &_partArray,
70 ArrayRCP<typename Adapter::scalar_t> &_globalSums) {
71 globalWeightedByPart <Adapter,MachineRep>(_env,
72 _problemComm, _graph, _partArray, _numGlobalParts, _metricsBase,
73 _globalSums,
true, this->machine);
PartitionMapping maps a solution or an input distribution to ranks.
SparseMatrixAdapter_t::part_t part_t
Defines the EvaluatePartition class.
Defines the MappingSolution class.
void sharedConstructor(const Adapter *ia, ParameterList *p, const RCP< const Comm< int > > &problemComm, const PartitioningSolution< Adapter > *soln, const RCP< const GraphModel< typename Adapter::base_adapter_t > > &graphModel)
GraphModel defines the interface required for graph models.
virtual ~EvaluateMapping()
EvaluateMapping(const Adapter *ia, ParameterList *p, const RCP< const Comm< int > > &ucomm_, const MappingSolution< Adapter > *soln, const MachineRep *machine_, const RCP< const GraphModel< typename Adapter::base_adapter_t > > &graphModel=Teuchos::null)
Constructor where communicator is Teuchos default.
A class that computes and returns quality metrics.
virtual void calculate_graph_metrics(const RCP< const Environment > &_env, const RCP< const Comm< int > > &_problemComm, const RCP< const GraphModel< typename Adapter::base_adapter_t > > &_graph, const ArrayView< const typename Adapter::part_t > &_partArray, typename Adapter::part_t &_numGlobalParts, ArrayRCP< RCP< BaseClassMetrics< typename Adapter::scalar_t > > > &_metricsBase, ArrayRCP< typename Adapter::scalar_t > &_globalSums)
A class that computes and returns quality metrics.