61 #include "Teuchos_RCP.hpp" 
   62 #include "Teuchos_XMLParameterListHelpers.hpp" 
   65 #ifdef HAVE_ZOLTAN2_PARMA 
   75 using Teuchos::ParameterList;
 
   78 int main(
int narg, 
char *arg[]) {
 
   80   Tpetra::ScopeGuard tscope(&narg, &arg);
 
   81   Teuchos::RCP<const Teuchos::Comm<int> > CommT = Tpetra::getDefaultComm();
 
   83 #ifdef HAVE_ZOLTAN2_PARMA 
   89   apf::Mesh2* m = apf::loadMdsMesh(
"../partition/pumiTri14/plate.dmg",
"../partition/pumiTri14/2/");
 
   93   Teuchos::ParameterList params(
"test params");
 
   94   params.set(
"timer_output_stream" , 
"std::cout");
 
   95   params.set(
"debug_level", 
"verbose_detailed_status");
 
   96   params.set(
"hypergraph_model_type",
"ghosting");
 
   98   RCP<Zoltan2::Environment> env;
 
  104   RCP<const Zoltan2::Environment> envConst = Teuchos::rcp_const_cast<
const Zoltan2::Environment>(env);
 
  107   inputAdapter_t* ia = 
new inputAdapter_t(*CommT, m,
"vertex",
"edge",
false);
 
  108   inputAdapter_t::scalar_t* arr = 
new inputAdapter_t::scalar_t[ia->getLocalNumOf(ia->getPrimaryEntityType())];
 
  109   for (
size_t i=0;i<ia->getLocalNumOf(ia->getPrimaryEntityType());i++) {
 
  110     arr[i]=PCU_Comm_Self();
 
  112   const inputAdapter_t::scalar_t* 
weights=arr;
 
  113   ia->setWeights(ia->getPrimaryEntityType(),
weights,1);
 
  115   const baseMeshAdapter_t *base_ia = 
dynamic_cast<const baseMeshAdapter_t*
>(ia);
 
  117   RCP<const baseMeshAdapter_t> baseInputAdapter_(base_ia,
false);
 
#define Z2_FORWARD_EXCEPTIONS
Forward an exception back through call stack. 
 
MeshAdapter defines the interface for mesh input. 
 
std::bitset< NUM_MODEL_FLAGS > modelFlag_t
 
int main(int narg, char *arg[])
 
Defines the APFMeshAdapter class. 
 
The user parameters, debug, timing and memory profiling output objects, and error checking methods...
 
Gathering definitions used in software development. 
 
Defines the HyperGraphModel interface. 
 
Defines the Environment class. 
 
HyperGraphModel defines the interface required for hyper graph models.