Zoltan2
Loading...
Searching...
No Matches
partitioningTree.cpp File Reference
#include <Zoltan2_PartitioningProblem.hpp>
#include <Zoltan2_XpetraCrsMatrixAdapter.hpp>
#include <Zoltan2_XpetraMultiVectorAdapter.hpp>
#include <Zoltan2_TestHelpers.hpp>
#include <iostream>
#include <limits>
#include <Teuchos_ParameterList.hpp>
#include <Teuchos_RCP.hpp>
#include <Teuchos_FancyOStream.hpp>
#include <Teuchos_CommandLineProcessor.hpp>
#include <Tpetra_CrsMatrix.hpp>
#include <Tpetra_Vector.hpp>
#include <MatrixMarket_Tpetra.hpp>
Include dependency graph for partitioningTree.cpp:

Go to the source code of this file.

Typedefs

typedef Tpetra::CrsMatrix< z2TestScalar, z2TestLO, z2TestGOSparseMatrix_t
typedef Tpetra::Vector< z2TestScalar, z2TestLO, z2TestGOVector
typedef Tpetra::MultiVector< z2TestScalar, z2TestLO, z2TestGO, znode_ttMVector_t
typedef Zoltan2::XpetraCrsMatrixAdapter< SparseMatrix_t, tMVector_tSparseMatrixAdapter_t
typedef SparseMatrixAdapter_t::part_t part_t
typedef Zoltan2::XpetraMultiVectorAdapter< tMVector_tMultiVectorAdapter_t

Functions

int testForRCB (SparseMatrixAdapter_t &matAdapter, int myrank, part_t numparts, RCP< tMVector_t > coords, RCP< const Teuchos::Comm< int > > comm)
int testForPHG (SparseMatrixAdapter_t &matAdapter, int myrank, part_t numparts, RCP< tMVector_t > coords, RCP< const Teuchos::Comm< int > >)
int testForMJ (SparseMatrixAdapter_t &matAdapter, int myrank, part_t numparts, RCP< tMVector_t > coords, RCP< const Teuchos::Comm< int > >)
int main (int narg, char **arg)
bool validate (part_t numTreeVerts, std::vector< part_t > permPartNums, std::vector< part_t > splitRangeBeg, std::vector< part_t > splitRangeEnd, std::vector< part_t > treeVertParents)
int analyze (Zoltan2::PartitioningProblem< SparseMatrixAdapter_t > &problem, RCP< const Teuchos::Comm< int > > comm)

Typedef Documentation

◆ SparseMatrix_t

typedef Tpetra::CrsMatrix<z2TestScalar, z2TestLO, z2TestGO> SparseMatrix_t

Definition at line 30 of file partitioningTree.cpp.

◆ Vector

typedef Tpetra::Vector<z2TestScalar, z2TestLO, z2TestGO> Vector

Definition at line 31 of file partitioningTree.cpp.

◆ tMVector_t

typedef Tpetra::MultiVector<z2TestScalar, z2TestLO, z2TestGO,znode_t> tMVector_t

Definition at line 34 of file partitioningTree.cpp.

◆ SparseMatrixAdapter_t

◆ part_t

Examples
rcb_C.cpp.

Definition at line 39 of file partitioningTree.cpp.

◆ MultiVectorAdapter_t

Function Documentation

◆ testForRCB()

int testForRCB ( SparseMatrixAdapter_t & matAdapter,
int myrank,
part_t numparts,
RCP< tMVector_t > coords,
RCP< const Teuchos::Comm< int > > comm )

Definition at line 365 of file partitioningTree.cpp.

◆ testForPHG()

int testForPHG ( SparseMatrixAdapter_t & matAdapter,
int myrank,
part_t numparts,
RCP< tMVector_t > coords,
RCP< const Teuchos::Comm< int > > comm )

Definition at line 445 of file partitioningTree.cpp.

◆ testForMJ()

int testForMJ ( SparseMatrixAdapter_t & matAdapter,
int myrank,
part_t numparts,
RCP< tMVector_t > coords,
RCP< const Teuchos::Comm< int > > comm )

Definition at line 528 of file partitioningTree.cpp.

◆ main()

int main ( int narg,
char ** arg )

Definition at line 55 of file partitioningTree.cpp.

◆ validate()

bool validate ( part_t numTreeVerts,
std::vector< part_t > permPartNums,
std::vector< part_t > splitRangeBeg,
std::vector< part_t > splitRangeEnd,
std::vector< part_t > treeVertParents )

Definition at line 204 of file partitioningTree.cpp.

◆ analyze()

int analyze ( Zoltan2::PartitioningProblem< SparseMatrixAdapter_t > & problem,
RCP< const Teuchos::Comm< int > > comm )

Definition at line 283 of file partitioningTree.cpp.