1 <!--- Test ParMETIS
"feature" that requires (1) no empty processors and
2 (2) more than one processor for AdaptiveRepart -->
4 <ParameterList name="parmetisSubcomm">
6 <ParameterList name="InputParameters">
7 <Parameter name="input path" type="
string" value="."/>
8 <Parameter name="input file" type="
string" value="simple"/>
9 <Parameter name="file type" type="
string" value="Chaco"/>
10 <Parameter name="
distribute input" type="
bool" value="false"/>
13 <ParameterList name="Problem 1">
15 <Parameter name="kind" type="
string" value="partitioning"/>
17 <ParameterList name="InputAdapterParameters">
18 <Parameter name="data type" type="
string" value="xpetra_crs_matrix"/>
19 <Parameter name="input adapter" type="
string" value="XpetraCrsMatrix"/>
22 <ParameterList name="Zoltan2Parameters">
23 <Parameter name="algorithm" type="
string" value="parmetis"/>
24 <Parameter name="partitioning_approach" type="
string" value="repartition"/>
25 <Parameter name="compute_metrics" type="
bool" value="true"/>
void distribute(Teuchos::ArrayRCP< size_t > &myNumEntriesPerRow, Teuchos::ArrayRCP< size_t > &myRowPtr, Teuchos::ArrayRCP< global_ordinal_type > &myColInd, Teuchos::ArrayRCP< scalar_type > &myValues, const Teuchos::RCP< const map_type > &pRowMap, global_ordinal_type *rowPtr, global_ordinal_type *colInd, const bool debug=false)