![]() |
|
Namespace for METIS graph partitioning routines. More...
Typedefs | |
typedef void(* | ErrorToWeightFctPt) (const double &spatial_error, const double &max_error, const double &min_error, int &weight) |
Functions | |
void | default_error_to_weight_fct (const double &spatial_error, const double &max_error, const double &min_error, int &weight) |
void | uniform_partition_mesh (Problem *problem_pt, const unsigned &ndomain, Vector< unsigned > &element_domain) |
void | partition_mesh (Problem *problem_pt, const unsigned &ndomain, const unsigned &objective, Vector< unsigned > &element_domain) |
void | partition_mesh (OomphCommunicator *comm_pt, Mesh *mesh_pt, const unsigned &ndomain, const unsigned &objective, Vector< unsigned > &element_domain) |
Variables | |
ErrorToWeightFctPt | Error_to_weight_fct_pt = &default_error_to_weight_fct |
Namespace for METIS graph partitioning routines.
typedef void(* oomph::METIS::ErrorToWeightFctPt) (const double &spatial_error, const double &max_error, const double &min_error, int &weight) |
Typedef for function pointer to to function that translates spatial error into weight for METIS partitioning.
void oomph::METIS::default_error_to_weight_fct | ( | const double & | spatial_error, |
const double & | max_error, | ||
const double & | min_error, | ||
int & | weight | ||
) |
Default function that translates spatial error into weight for METIS partitioning (unit weight regardless of input).
Default function that translates spatial error into weight for METIS partitioning (unit weight regardless of input)
Referenced by partition_mesh().
void oomph::METIS::partition_mesh | ( | OomphCommunicator * | comm_pt, |
Mesh * | mesh_pt, | ||
const unsigned & | ndomain, | ||
const unsigned & | objective, | ||
Vector< unsigned > & | element_domain | ||
) |
Use METIS to assign each element to a domain. On return, element_domain[ielem] contains the number of the domain [0,1,...,ndomain-1] to which element ielem has been assigned.
Partioning is based on nodal graph of mesh.
void oomph::METIS::partition_mesh | ( | Problem * | problem_pt, |
const unsigned & | ndomain, | ||
const unsigned & | objective, | ||
Vector< unsigned > & | element_domain | ||
) |
Use METIS to assign each element to a domain. On return, element_domain[ielem] contains the number of the domain [0,1,...,ndomain-1] to which element ielem has been assigned.
Partioning is based on nodal graph of mesh.
Use METIS to assign each element to a domain. On return, element_domain[ielem] contains the number of the domain [0,1,...,ndomain-1] to which element ielem has been assigned.
Partioning is based on dual graph of mesh.
References default_error_to_weight_fct(), e(), oomph::Mesh::element_pt(), Eigen::placeholders::end, oomph::GeneralisedElement::eqn_number(), Error_to_weight_fct_pt, oomph::ErrorEstimator::get_element_errors(), j, MeshRefinement::max_error, oomph::Problem::mesh_pt(), oomph::METIS_PartGraphKway(), oomph::METIS_PartGraphVKway(), MeshRefinement::min_error, oomph::GeneralisedElement::ndof(), oomph::Mesh::nelement(), oomph::Problem::nsub_mesh(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, oomph::oomph_info, p, oomph::RefineableMeshBase::spatial_error_estimator_pt(), and oomph::CumulativeTimings::start().
void oomph::METIS::uniform_partition_mesh | ( | Problem * | problem_pt, |
const unsigned & | ndomain, | ||
Vector< unsigned > & | element_domain | ||
) |
Partition mesh uniformly by dividing elements equally over the partitions, in the order in which they are returned by problem. On return, element_domain[ielem] contains the number of the domain [0,1,...,ndomain-1] to which element ielem has been assigned.
References int(), oomph::Problem::mesh_pt(), oomph::Mesh::nelement(), OOMPH_CURRENT_FUNCTION, and OOMPH_EXCEPTION_LOCATION.
ErrorToWeightFctPt oomph::METIS::Error_to_weight_fct_pt = &default_error_to_weight_fct |
Function pointer to to function that translates spatial error into weight for METIS partitioning.
Referenced by partition_mesh().