94 #ifndef ZOLTAN2_EVALUATEMAPPING_HPP
95 #define ZOLTAN2_EVALUATEMAPPING_HPP
110 template<
typename Adapter,
111 typename MachineRep =
112 MachineRepresentation<
typename Adapter::scalar_t,
117 const RCP <const MachineRep> machine;
131 const RCP<
const Comm<int> > &ucomm_,
133 const MachineRep *machine_ ,
136 machine(Teuchos::rcp(machine_, false)){
144 const RCP<const Environment> &_env,
145 const RCP<
const Comm<int> > &_problemComm,
147 const ArrayView<const typename Adapter::part_t> &_partArray,
150 ArrayRCP<typename Adapter::scalar_t> &_globalSums) {
151 globalWeightedByPart <Adapter,MachineRep>(_env,
152 _problemComm, _graph, _partArray, _numGlobalParts, _metricsBase,
153 _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.