45 #ifndef _ZOLTAN2_ALGNATURAL_HPP_
46 #define _ZOLTAN2_ALGNATURAL_HPP_
60 template <
typename Adapter>
65 const RCP<const typename Adapter::base_adapter_t> adapter;
66 const RCP<Teuchos::ParameterList> pl;
67 const RCP<const Teuchos::Comm<int> > comm;
68 const RCP<const Environment> env;
76 const RCP<const typename Adapter::base_adapter_t> &adapter__,
77 const RCP<Teuchos::ParameterList> &pl__,
78 const RCP<
const Teuchos::Comm<int> > &comm__,
79 const RCP<const Environment> &env__
80 ) : adapter(adapter__), pl(pl__), comm(comm__), env(env__)
85 throw std::logic_error(
"AlgNatural does not yet support global ordering.");
100 const size_t n = model->getLocalNumIdentifiers();
101 lno_t *perm = solution->getPermutationView();
103 for (
size_t i=0; i<n; i++){
111 solution->setHavePerm(
true);
int localOrder(const RCP< LocalOrderingSolution< lno_t > > &solution)
Ordering method.
std::bitset< NUM_MODEL_FLAGS > modelFlag_t
map_t::global_ordinal_type gno_t
Defines the OrderingSolution class.
Defines the IdentifierModel interface.
Algorithm defines the base class for all algorithms.
map_t::local_ordinal_type lno_t
AlgNatural(const RCP< const typename Adapter::base_adapter_t > &adapter__, const RCP< Teuchos::ParameterList > &pl__, const RCP< const Teuchos::Comm< int > > &comm__, const RCP< const Environment > &env__)
IdentifierModel defines the interface for all identifier models.
int globalOrder(const RCP< GlobalOrderingSolution< gno_t > > &)
Ordering method.