16 #ifndef dealii__sparsity_tools_h 17 #define dealii__sparsity_tools_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/lac/block_sparsity_pattern.h> 23 #include <deal.II/lac/dynamic_sparsity_pattern.h> 24 #include <deal.II/lac/sparsity_pattern.h> 28 #ifdef DEAL_II_WITH_MPI 30 #include <deal.II/base/index_set.h> 33 DEAL_II_NAMESPACE_OPEN
81 const unsigned int n_partitions,
82 std::vector<unsigned int> &partition_indices);
135 std::vector<DynamicSparsityPattern::size_type> &new_indices,
136 const std::vector<DynamicSparsityPattern::size_type> &starting_indices = std::vector<DynamicSparsityPattern::size_type>());
145 std::vector<SparsityPattern::size_type> &new_indices,
146 const std::vector<SparsityPattern::size_type> &starting_indices = std::vector<SparsityPattern::size_type>()) DEAL_II_DEPRECATED;
171 std::vector<DynamicSparsityPattern::size_type> &new_indices);
173 #ifdef DEAL_II_WITH_MPI 200 const std::vector<DynamicSparsityPattern::size_type> &rows_per_cpu,
201 const MPI_Comm &mpi_comm,
218 const std::vector<IndexSet> &owned_set_per_cpu,
219 const MPI_Comm &mpi_comm,
229 "The function you called requires METIS, but you did not " 230 "configure deal.II with METIS.");
237 <<
"The number of partitions you gave is " << arg1
238 <<
", but must be greater than zero.");
245 <<
" An error with error number " << arg1
246 <<
" occurred while calling a METIS function");
253 <<
"The array has size " << arg1 <<
" but should have size " 261 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 & ExcMETISError(int arg1)