17 #ifndef __deal2__sparsity_tools_h
18 #define __deal2__sparsity_tools_h
21 #include <deal.II/base/config.h>
26 #ifdef DEAL_II_WITH_MPI
28 #include <deal.II/base/index_set.h>
31 DEAL_II_NAMESPACE_OPEN
47 namespace SparsityTools
111 const unsigned int n_partitions,
112 std::vector<unsigned int> &partition_indices);
204 std::vector<size_type> &new_indices,
205 const std::vector<size_type> &starting_indices = std::vector<size_type>());
208 #ifdef DEAL_II_WITH_MPI
250 template <
class CSP_t>
252 const std::vector<size_type> &rows_per_cpu,
253 const MPI_Comm &mpi_comm,
262 template <
class CSP_t>
264 const std::vector<IndexSet> &owned_set_per_cpu,
265 const MPI_Comm &mpi_comm,
280 <<
"The number of partitions you gave is " << arg1
281 <<
", but must be greater than zero.");
288 <<
" An error with error number " << arg1
289 <<
" occurred while calling a METIS function");
296 <<
"The array has size " << arg1 <<
" but should have size "
304 DEAL_II_NAMESPACE_CLOSE
unsigned int global_dof_index