50 #include <Teuchos_DefaultComm.hpp> 
   51 #include <Teuchos_ParameterList.hpp> 
   55 int 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 main(int narg, char *arg[])
 
Defines the PartitioningSolution class. 
 
common code used by tests 
 
This class represents a collection of global Identifiers and their associated weights, if any. 
 
A PartitioningSolution is a solution to a partitioning problem. 
 
static const std::string fail
 
Defines the BasicIdentifierAdapter class. 
 
int globalFail(const Comm< int > &comm, int fail)
 
const PartitioningSolution< Adapter > & getSolution()
Get the solution to the problem. 
 
PartitioningProblem sets up partitioning problems for the user. 
 
Defines the PartitioningProblem class. 
 
size_t getActualGlobalNumberOfParts() const 
Returns the actual global number of parts provided in setParts(). 
 
void solve(bool updateInputData=true)
Direct the problem to create a solution.