18 #ifndef Zoltan2TestDriver_Zoltan2_MeshCoordinateTest_h
19 #define Zoltan2TestDriver_Zoltan2_MeshCoordinateTest_h
30 typedef Tpetra::MultiVector<zscalar_t, zlno_t, zgno_t, znode_t>
tMVector_t;
49 void Run(
const ParameterList ¶ms,
const RCP<
const Teuchos::Comm<int> > & comm);
61 this->success =
false;
65 const RCP<
const Teuchos::Comm<int> > & comm)
67 const ParameterList &input = params.sublist(
"TestParameters");
74 size_t localCount = coords->getLocalLength();
77 x = coords->getDataNonConst(0).getRawPtr();
78 y = coords->getDataNonConst(1).getRawPtr();
79 z = coords->getDataNonConst(2).getRawPtr();
81 const zgno_t *globalIds = coords->getMap()->getLocalElementList().getRawPtr();
84 inputAdapter_t ia(localCount, globalIds, x, y, z, 1, 1, 1);
87 const ParameterList &zoltan2params = params.sublist(
"Zoltan2Parameters");
88 #ifdef HAVE_ZOLTAN2_MPI
void Run(const ParameterList ¶ms, const RCP< const Teuchos::Comm< int > > &comm)
~MeshCoordinateTest()
Destructor.
Defines the PartitioningSolution class.
MeshCoordinateTest()
Default Constructor.
Defines the XpetraMultiVectorAdapter.
Zoltan2::BasicUserTypes< zscalar_t, zlno_t, zgno_t > myTypes_t
BasicVectorAdapter represents a vector (plus optional weights) supplied by the user as pointers to st...
PartitioningProblem sets up partitioning problems for the user.
Defines the PartitioningProblem class.
Defines the BasicVectorAdapter class.
Tpetra::MultiVector< zscalar_t, zlno_t, zgno_t, znode_t > tMVector_t
Tpetra::Map::global_ordinal_type zgno_t
void solve(bool updateInputData=true)
Direct the problem to create a solution.