28 #ifndef OOMPH_PARTITIONING_HEADER
29 #define OOMPH_PARTITIONING_HEADER
33 #include <oomph-lib-config.h>
53 int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*);
55 #ifndef OOMPH_TRANSITION_TO_VERSION_3
62 int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*,
int*);
77 const double& max_error,
78 const double& min_error,
84 const double& max_error,
85 const double& min_error,
99 const unsigned& ndomain,
112 const unsigned& ndomain,
113 const unsigned& objective,
127 const unsigned& ndomain,
128 const unsigned& objective,
171 const unsigned& objective,
173 const bool& bypass_metis =
false);
An oomph-lib wrapper to the MPI_Comm communicator object. Just contains an MPI_Comm object (which is ...
////////////////////////////////////////////////////////////////// //////////////////////////////////...
void 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...
void partition_distributed_mesh(Problem *problem_pt, const unsigned &objective, Vector< unsigned > &element_domain_on_this_proc, const bool &bypass_metis=false)
Use METIS to assign each element in an already-distributed mesh to a domain. On return,...
void 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...
void(* 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 parti...
ErrorToWeightFctPt Error_to_weight_fct_pt
Function pointer to to function that translates spatial error into weight for METIS partitioning.
void 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 regard...
//////////////////////////////////////////////////////////////////// ////////////////////////////////...
void METIS_PartGraphKway(int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *)
Metis graph partitioning function.
void METIS_PartGraphVKway(int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *)
Metis graph partitioning function – decomposes nodal graph based on minimum communication volume.