INMOST
A toolkit for distributed mathematical modeling
|
Main class to modify or improve the mesh distribution for better load balancing. More...
#include <inmost_partitioner.h>
Public Types | |
enum | Type { Zoltan_Parmetis , Zoltan_Scotch , Zoltan_PHG , Zoltan_RCB , Zoltan_RIB , Zoltan_HSFC , Parmetis , MetisRec , MetisRecContig , MetisKway , MetisKwayContig , INNER_RCM , INNER_KMEANS } |
Type of the Partitioner can be currently used in this version of INMOST. More... | |
enum | Action { Partition , Repartition , Refine } |
Public Member Functions | |
Partitioner (Mesh *m) | |
The default constructor of the partitioner for the specified mesh. | |
Partitioner (const Partitioner &other) | |
Partitioner & | operator= (Partitioner const &other) |
void | AddSet (std::string set_name) |
Account for sets in the partitioner. | |
bool | RemSet (std::string set_name) |
void | ClearSets () |
void | Evaluate () |
Evaluate the earlier specified partitioner. More... | |
void | SetMethod (enum Type t, enum Action a=Repartition) |
Set the partitioner method to be used. More... | |
void | SetWeight (Tag weight) |
Compute the specific weights for the selected partitioner. | |
void | ResetWeight () |
Reset the computed weights for the partitioner. | |
Mesh * | GetMesh () |
Get the Mesh pointer for the current partitioner. | |
Tag | GetWeight () |
Get the Tag of the computed weights for the current partitioner. | |
Static Public Member Functions | |
static void | Initialize (int *argc, char ***argv) |
Initialize the use of partitioner. More... | |
static void | Finalize () |
Finalize the use of partitioner. More... | |
Main class to modify or improve the mesh distribution for better load balancing.
Definition at line 17 of file inmost_partitioner.h.
Definition at line 39 of file inmost_partitioner.h.
Type of the Partitioner can be currently used in this version of INMOST.
Definition at line 23 of file inmost_partitioner.h.
void INMOST::Partitioner::Evaluate | ( | ) |
Evaluate the earlier specified partitioner.
|
static |
Finalize the use of partitioner.
|
static |
Initialize the use of partitioner.
argc | The number of arguments transmitted to the function main. |
argv | The pointer to arguments transmitted to the function main. The shortest call to this function with the default solver parameters is the following: Initialize(NULL,NULL); |
void INMOST::Partitioner::SetMethod | ( | enum Type | t, |
enum Action | a = Repartition |
||
) |
Set the partitioner method to be used.
t | The concrete Type of the partitioner from the selected package. |
a | The partitioner Action, the default is Repartition. |