45 #ifndef _ZOLTAN2_ALGSPECTRAL_HPP_ 46 #define _ZOLTAN2_ALGSPECTRAL_HPP_ 61 template <
typename Adapter>
66 typename Adapter::gno_t> > &solution,
67 const RCP<Teuchos::ParameterList> &pl,
68 const RCP<
const Teuchos::Comm<int> > &comm
71 #ifndef INCLUDE_ZOLTAN2_EXPERIMENTAL 74 "experimental software " 75 "while it is being developed and tested.")
77 #else //INCLUDE_ZOLTAN2_EXPERIMENTAL 79 typedef typename Adapter::lno_t lno_t;
80 typedef typename Adapter::gno_t gno_t;
81 typedef typename Adapter::scalar_t scalar_t;
88 bool localOrder =
true;
90 const size_t nVtx = model->getLocalNumVertices();
91 lno_t *perm = solution->getPermutationView();
92 for (lno_t i=0; i<nVtx; i++){
97 ArrayView<const gno_t> edgeIds;
98 ArrayView<const lno_t> offsets;
99 ArrayView<StridedData<lno_t, scalar_t> > wgts;
101 model->getEdgeList(edgeIds, offsets, wgts);
115 solution->setHavePerm(
true);
117 #endif // INCLUDE_ZOLTAN2_EXPERIMENTAL
Defines the OrderingSolution class.
#define Z2_THROW_EXPERIMENTAL(mystr)
Throw an error when experimental code is requested but not compiled.
GraphModel defines the interface required for graph models.
int AlgSpectral(const RCP< GraphModel< Adapter > > &model, const RCP< OrderingSolution< typename Adapter::lno_t, typename Adapter::gno_t > > &solution, const RCP< Teuchos::ParameterList > &pl, const RCP< const Teuchos::Comm< int > > &comm)
Defines the GraphModel interface.
The class containing ordering solutions.