16 #ifndef dealii_sparsity_tools_h 17 #define dealii_sparsity_tools_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/exceptions.h> 24 #include <deal.II/lac/block_sparsity_pattern.h> 25 #include <deal.II/lac/dynamic_sparsity_pattern.h> 26 #include <deal.II/lac/sparsity_pattern.h> 31 #ifdef DEAL_II_WITH_MPI 32 # include <deal.II/base/index_set.h> 37 DEAL_II_NAMESPACE_OPEN
105 const unsigned int n_partitions,
106 std::vector<unsigned int> &partition_indices,
122 const std::vector<unsigned int> &cell_weights,
123 const unsigned int n_partitions,
124 std::vector<unsigned int> & partition_indices,
161 std::vector<unsigned int> &color_indices);
215 std::vector<DynamicSparsityPattern::size_type> & new_indices,
216 const std::vector<DynamicSparsityPattern::size_type> &starting_indices =
217 std::vector<DynamicSparsityPattern::size_type>());
243 std::vector<DynamicSparsityPattern::size_type> &new_indices);
245 #ifdef DEAL_II_WITH_MPI 273 const std::vector<DynamicSparsityPattern::size_type> &rows_per_cpu,
274 const MPI_Comm & mpi_comm,
291 const std::vector<IndexSet> &owned_set_per_cpu,
292 const MPI_Comm & mpi_comm,
319 const std::vector<IndexSet> &owned_rows_per_processor,
320 const MPI_Comm & mpi_comm,
330 "The function you called requires METIS, but you did not " 331 "configure deal.II with METIS.");
338 <<
"The number of partitions you gave is " << arg1
339 <<
", but must be greater than zero.");
346 <<
" An error with error number " << arg1
347 <<
" occurred while calling a METIS function");
355 <<
"The array has size " << arg1 <<
" but should have size " 362 "The function you called requires ZOLTAN, but you did not " 363 "configure deal.II with ZOLTAN or zoltan_cpp.h is not available.");
370 DEAL_II_NAMESPACE_CLOSE
#define DeclException2(Exception2, type1, type2, outsequence)
static ::ExceptionBase & ExcMETISNotInstalled()
static ::ExceptionBase & ExcInvalidNumberOfPartitions(int arg1)
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcInvalidArraySize(int arg1, int arg2)
#define DeclExceptionMsg(Exception, defaulttext)
static ::ExceptionBase & ExcZOLTANNotInstalled()
static ::ExceptionBase & ExcMETISError(int arg1)