50#include <Teuchos_DefaultComm.hpp>
51#include <Teuchos_ParameterList.hpp>
55int main(
int narg,
char **arg)
57 Tpetra::ScopeGuard tscope(&narg, &arg);
58 Teuchos::RCP<const Teuchos::Comm<int> > comm = Tpetra::getDefaultComm();
62 int rank = comm->getRank();
64 zlno_t numMyIdentifiers = 0;
69 adapter_t *adapter =
new adapter_t(numMyIdentifiers, NULL);
71 Teuchos::ParameterList params(
"test parameters");
72 params.set(
"num_global_parts", 4);
73 params.set(
"algorithm",
"block");
74 params.set(
"partitioning_approach",
"partition");
89 std::cout <<
"FAIL GlobalNumberOfParts = "
95 std::cout <<
"PASS" << std:: endl;
int globalFail(const Comm< int > &comm, int fail)
Defines the BasicIdentifierAdapter class.
Defines the PartitioningProblem class.
Defines the PartitioningSolution class.
common code used by tests
Tpetra::Map ::local_ordinal_type zlno_t
This class represents a collection of global Identifiers and their associated weights,...
A simple class that can be the User template argument for an InputAdapter.
PartitioningProblem sets up partitioning problems for the user.
const PartitioningSolution< Adapter > & getSolution()
Get the solution to the problem.
void solve(bool updateInputData=true)
Direct the problem to create a solution.
A PartitioningSolution is a solution to a partitioning problem.
size_t getActualGlobalNumberOfParts() const
Returns the actual global number of parts provided in setParts().
static const std::string fail