Mesh Oriented datABase
(version 5.4.1)
Array-based unstructured mesh datastructure
|
#include <PartitionerBase.hpp>
Public Member Functions | |
PartitionerBase (Interface *impl=NULL, const bool use_coords=false) | |
virtual | ~PartitionerBase () |
virtual ErrorCode | partition_mesh_and_geometry (const double part_geom_mesh_size, const T nparts, const char *zmethod, const char *other_method, double imbal_tol, const int part_dim=3, const bool write_as_sets=true, const bool write_as_tags=false, const int obj_weight=0, const int edge_weight=0, const bool part_surf=false, const bool ghost=false, const int projection_type=0, const bool recompute_rcb_box=false, const bool print_time=false)=0 |
virtual ErrorCode | partition_mesh (const T nparts, const char *method, const int part_dim=3, const bool write_as_sets=true, const bool write_as_tags=false, const bool partition_tagged_sets=false, const bool partition_tagged_ents=false, const char *aggregating_tag=NULL, const bool print_time=false)=0 |
virtual ErrorCode | write_partition (const T nparts, Range &elems, const T *assignment, const bool write_as_sets, const bool write_as_tags)=0 |
virtual ErrorCode | include_closure ()=0 |
Range & | part_sets () |
const Range & | part_sets () const |
void | set_global_id_option (bool id_opt) |
bool | get_global_id_option () |
Protected Attributes | |
Interface * | mbImpl |
bool | useCoords |
bool | newComm |
bool | assign_global_ids |
Range | partSets |
Definition at line 39 of file PartitionerBase.hpp.
PartitionerBase< T >::PartitionerBase | ( | Interface * | impl = NULL , |
const bool | use_coords = false |
||
) | [inline] |
Definition at line 119 of file PartitionerBase.hpp.
References PartitionerBase< T >::mbImpl, and PartitionerBase< T >::newComm.
: mbImpl( impl ), useCoords( use_coords ) #ifdef MOAB_HAVE_MPI , mbpc(parcomm) #endif , newComm( false ), assign_global_ids(false) { #ifdef MOAB_HAVE_MPI if(!mbpc) { mbpc = ParallelComm::get_pcomm( mbImpl, 0 ); if( !mbpc ) { mbpc = new ParallelComm( impl, MPI_COMM_WORLD, 0 ); newComm = true; } } #endif }
PartitionerBase< T >::~PartitionerBase | ( | ) | [inline, virtual] |
Definition at line 145 of file PartitionerBase.hpp.
bool PartitionerBase< T >::get_global_id_option | ( | ) | [inline] |
Definition at line 101 of file PartitionerBase.hpp.
{ return assign_global_ids; }
virtual ErrorCode PartitionerBase< T >::include_closure | ( | ) | [pure virtual] |
Implemented in ZoltanPartitioner, and MetisPartitioner.
Range& PartitionerBase< T >::part_sets | ( | ) | [inline] |
Definition at line 86 of file PartitionerBase.hpp.
{ return partSets; };
const Range& PartitionerBase< T >::part_sets | ( | ) | const [inline] |
Definition at line 91 of file PartitionerBase.hpp.
{ return partSets; };
virtual ErrorCode PartitionerBase< T >::partition_mesh | ( | const T | nparts, |
const char * | method, | ||
const int | part_dim = 3 , |
||
const bool | write_as_sets = true , |
||
const bool | write_as_tags = false , |
||
const bool | partition_tagged_sets = false , |
||
const bool | partition_tagged_ents = false , |
||
const char * | aggregating_tag = NULL , |
||
const bool | print_time = false |
||
) | [pure virtual] |
Implemented in ZoltanPartitioner, and MetisPartitioner.
virtual ErrorCode PartitionerBase< T >::partition_mesh_and_geometry | ( | const double | part_geom_mesh_size, |
const T | nparts, | ||
const char * | zmethod, | ||
const char * | other_method, | ||
double | imbal_tol, | ||
const int | part_dim = 3 , |
||
const bool | write_as_sets = true , |
||
const bool | write_as_tags = false , |
||
const int | obj_weight = 0 , |
||
const int | edge_weight = 0 , |
||
const bool | part_surf = false , |
||
const bool | ghost = false , |
||
const int | projection_type = 0 , |
||
const bool | recompute_rcb_box = false , |
||
const bool | print_time = false |
||
) | [pure virtual] |
Implemented in ZoltanPartitioner, and MetisPartitioner.
void PartitionerBase< T >::set_global_id_option | ( | bool | id_opt | ) | [inline] |
Definition at line 96 of file PartitionerBase.hpp.
Referenced by main().
{ assign_global_ids = id_opt; }
virtual ErrorCode PartitionerBase< T >::write_partition | ( | const T | nparts, |
Range & | elems, | ||
const T * | assignment, | ||
const bool | write_as_sets, | ||
const bool | write_as_tags | ||
) | [pure virtual] |
bool PartitionerBase< T >::assign_global_ids [protected] |
Definition at line 113 of file PartitionerBase.hpp.
Interface* PartitionerBase< T >::mbImpl [protected] |
Definition at line 107 of file PartitionerBase.hpp.
Referenced by PartitionerBase< T >::PartitionerBase().
bool PartitionerBase< T >::newComm [protected] |
Definition at line 112 of file PartitionerBase.hpp.
Referenced by PartitionerBase< T >::PartitionerBase().
Range PartitionerBase< T >::partSets [protected] |
Reimplemented in ZoltanPartitioner.
Definition at line 115 of file PartitionerBase.hpp.
bool PartitionerBase< T >::useCoords [protected] |
Definition at line 111 of file PartitionerBase.hpp.