33#ifndef __H__UG__LIB_GRID__parallelization_util_impl__
34#define __H__UG__LIB_GRID__parallelization_util_impl__
43template <
class TGeomObj>
60 for(GeomObjIter iter = g.
begin<TGeomObj>();
61 iter != g.
end<TGeomObj>(); ++iter, ++count)
Performs communication between interfaces on different processes.
Definition pcl_interface_communicator.h:68
bool communicate(int tag=749345)
sends and receives the collected data.
Definition pcl_interface_communicator_impl.hpp:409
void exchange_data(const TLayoutMap &layoutMap, const typename TLayoutMap::Key &keyFrom, const typename TLayoutMap::Key &keyTo, ICommunicationPolicy< TLayout > &commPol)
internally calls send_data and receive_data with the specified layouts.
Definition pcl_interface_communicator_impl.hpp:213
A generic specialization of IAttachment.
Definition attachment_pipe.h:263
copies values from a specified attachment to a stream and back.
Definition compol_copy_attachment.h:54
the generic attachment-accessor for access to grids attachment pipes.
Definition grid.h:182
Manages the elements of a grid and their interconnection.
Definition grid.h:132
void attach_to(IAttachment &attachment, bool passOnValues)
attach with custom pass-on-behaviour and unspecified default value.
Definition grid_impl.hpp:296
bool has_attachment(IAttachment &attachment)
Definition grid.h:796
geometry_traits< TGeomObj >::iterator begin()
Definition grid_impl.hpp:164
geometry_traits< TGeomObj >::iterator end()
Definition grid_impl.hpp:175
lets you access layouts by type and key
Definition parallel_grid_layout.h:152
Definition grid_base_object_traits.h:68
GeomObjID MakeGeomObjID(int procRank, size_t localGeomObjID)
Can be used to construct a GeomObjID from a proc-rank and a local id.
Definition grid_object_id.h:60
void CreateAndDistributeGlobalIDs(Grid &g, GridLayoutMap &glm, AGeomObjID &aID=aGeomObjID)
Creates and distributes global ids for the given element type.
Definition parallelization_util_impl.hpp:44
int ProcRank()
returns the rank of the process
Definition pcl_base.cpp:83
@ INT_V_MASTER
vertical master node
Definition parallel_grid_layout.h:106
@ INT_H_MASTER
horizontal master node
Definition parallel_grid_layout.h:104
@ INT_H_SLAVE
horizontal slave node
Definition parallel_grid_layout.h:105
@ INT_V_SLAVE
vertical slave node
Definition parallel_grid_layout.h:107
pcl::MultiLevelLayout< Interface > Layout
Definition parallel_grid_layout.h:161