Flow123d
JS_before_hm-2198-g122e1f2e2
|
Go to the documentation of this file.
18 #ifndef PARTITIONING_HH_
19 #define PARTITIONING_HH_
64 <<
"Number of processors " << EI_NProcs::val <<
" greater then number of elements "
65 << EI_NElems::val <<
". Can not make partitioning of the mesh " << EI_MeshFile::qval <<
".\n" );
Partitioning(Mesh *mesh, Input::Record in)
Input::Record in_
Input Record accessor.
@ METIS
Use direct interface to Metis.
shared_ptr< vector< int > > subdomain_id_field_data()
Mesh * mesh_
The input mesh.
~Partitioning()
Destructor.
LongIdx * loc_part_
Partition numbers for local elements in original distribution of elements given be init_el_ds_.
Class for the mesh partitioning. This should provide:
DECLARE_INPUT_EXCEPTION(ExcDecomposeMesh,<< "Number of processors "<< EI_NProcs::val<< " greater then number of elements "<< EI_NElems::val<< ". Can not make partitioning of the mesh "<< EI_MeshFile::qval<< ".\n")
const LongIdx * get_loc_part() const
static const Input::Type::Selection & get_graph_type_sel()
Input specification objects.
SparseGraph * graph_
Graph used to partitioning the mesh.
Distribution * init_el_ds_
Original distribution of elements. Depends on type of partitioner.
static const Input::Type::Selection & get_tool_sel()
@ any_neighboring
Add edge for any pair of neighboring elements.
TYPEDEF_ERR_INFO(EI_MeshFile, std::string)
@ same_dimension_neighboring
Add edge for any pair of neighboring elements of same dimension (bad for matrix multiply)
static const Input::Type::Record & get_input_type()
int LongIdx
Define type that represents indices of large arrays (elements, nodes, dofs etc.)
const Distribution * get_init_distr() const
shared_ptr< vector< int > > seq_part_
Sequential partitioning for output.
void id_maps(int n_ids, LongIdx *id_4_old, Distribution *&new_ds, LongIdx *&id_4_loc, LongIdx *&new_4_id)
void make_element_connection_graph()
@ PETSc
Use PETSc interface to various partitioing tools.
@ any_weight_lower_dim_cuts
Same as before and assign higher weight to cuts of lower dimension in order to make them stick to one...
Virtual class for construction and partitioning of a distributed sparse graph.