45 #ifndef _ZOLTAN2_ALGSPECTRAL_HPP_
46 #define _ZOLTAN2_ALGSPECTRAL_HPP_
60 template <
typename Adapter>
66 const RCP<Teuchos::ParameterList> &pl,
67 const RCP<
const Teuchos::Comm<int> > &comm
70 #ifndef INCLUDE_ZOLTAN2_EXPERIMENTAL
73 "experimental software "
74 "while it is being developed and tested.")
76 #else //INCLUDE_ZOLTAN2_EXPERIMENTAL
80 typedef typename Adapter::gid_t gid_t;
88 bool localOrder =
true;
90 const size_t nVtx = model->getLocalNumVertices();
92 perm = (lno_t *) (solution->getPermutationRCP().getRawPtr());
93 for (lno_t i=0; i<nVtx; i++){
98 ArrayView<const lno_t> edgeIds;
99 ArrayView<const lno_t> offsets;
100 ArrayView<StridedData<lno_t, scalar_t> > wgts;
102 model->getLocalEdgeList(edgeIds, offsets, wgts);
117 #endif // INCLUDE_ZOLTAN2_EXPERIMENTAL
int AlgSpectral(const RCP< GraphModel< Adapter > > &model, const RCP< OrderingSolution< typename Adapter::gid_t, typename Adapter::lno_t > > &solution, const RCP< Teuchos::ParameterList > &pl, const RCP< const Teuchos::Comm< int > > &comm)
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.
Defines the GraphModel interface.
The class containing ordering solutions and metrics.