33 #ifndef __H__UG__partition_map__
34 #define __H__UG__partition_map__
101 template <
class TAPos>
109 UG_LOG(
"WARNING IN SavePartitionMapToFile: a grid has to be assigned "
110 "to the PartitionMap. Aborting.\n");
Definition: smart_pointer.h:108
Base-class for edges.
Definition: grid_base_objects.h:397
Faces are 2-dimensional objects.
Definition: grid_base_objects.h:510
Manages the elements of a grid and their interconnection.
Definition: grid.h:132
Partitions elements of a grid into several subsets.
Definition: subset_handler_grid.h:53
void assign_subset(Vertex *elem, int subsetIndex)
assigns a vertex to a subset.
Definition: subset_handler_grid.cpp:204
geometry_traits< TElem >::iterator end(int subsetIndex)
returns the end-iterator for the elements of type TElem in the given subset.
Definition: subset_handler_grid_impl.hpp:63
geometry_traits< TElem >::iterator begin(int subsetIndex)
returns the begin-iterator for the elements of type TElem in the given subset.
Definition: subset_handler_grid_impl.hpp:44
Grid * grid() const
returns a pointer to the grid on which the subset-handler works.
Definition: subset_handler_interface.cpp:304
int num_subsets() const
returns the number of subset-infos (return value is int, since SubsetIndices are of type int)
Definition: subset_handler_interface.h:317
Used to describe how a domain shall be distributed in a parallel environment.
Definition: partition_map.h:54
SmartPtr< SubsetHandler > m_shPartitions
Definition: partition_map.h:86
bool change_target_proc(size_t index, int newRank)
changes an existing target process. Make sure that index < num_target_procs
Definition: partition_map.cpp:93
int * get_target_procs()
Definition: partition_map.cpp:87
SmartPtr< SubsetHandler > get_partition_handler()
Definition: partition_map.cpp:58
std::vector< int > m_targetProcs
Definition: partition_map.h:87
void shift_target_procs(int offset)
adds the given offset to all target-proc-ranks
Definition: partition_map.cpp:114
void clear()
Definition: partition_map.cpp:46
size_t num_target_procs()
Definition: partition_map.cpp:70
void assign_grid(Grid &grid)
Definition: partition_map.cpp:52
int get_target_proc(size_t index)
Definition: partition_map.cpp:73
std::vector< int > & get_target_proc_vec()
Definition: partition_map.cpp:90
void add_target_proc(int tarProcRank)
Definition: partition_map.cpp:61
int find_target_proc(int procRank)
returns the index at which the given process lies. -1 if it doesn't exist.
Definition: partition_map.cpp:105
PartitionMap()
Definition: partition_map.cpp:41
void add_target_procs(int first, int num)
Definition: partition_map.cpp:64
Base-class for all vertex-types.
Definition: grid_base_objects.h:231
Volumes are 3-dimensional objects.
Definition: grid_base_objects.h:754
#define UG_LOG(msg)
Definition: log.h:367
bool SaveGridToFile(Grid &grid, ISubsetHandler &sh, const char *filename, TAPos &aPos)
Saves a grid to a file. Position data is read from the specified attachment.
Definition: file_io.cpp:468
bool SavePartitionMapToFile(PartitionMap &pm, const char *filename, TAPos &aPos)
Save the partition map to a file.
Definition: partition_map.h:102
SmartPtr< PartitionMap > SPPartitionMap
Save the partition map to a file.
Definition: partition_map.h:90