33 #ifndef __H__LIB_GRID__DISTRIBUTED_GRID_IMPL__
34 #define __H__LIB_GRID__DISTRIBUTED_GRID_IMPL__
42 template <
class TElem>
77 template <
class TElem>
80 std::vector<std::pair<int, size_t> >& vEntriesOut,
81 TElem* elem,
byte statusType,
bool clearContainer)
91 for(
typename ElemInfo::EntryIterator iter = info.entries_begin();
92 iter != info.entries_end(); ++iter)
94 if((info.get_interface_type(iter) & statusType) == statusType){
95 vEntriesOut.push_back(std::make_pair(info.get_target_proc(iter),
96 info.get_local_id(iter)));
Be careful when creating copies of ElementInfo.
Definition: distributed_grid.h:298
byte get_status() const
Definition: distributed_grid.h:373
void collect_interface_entries(std::vector< std::pair< int, size_t > > &vEntriesOut, TElem *elem, byte statusType, bool clearContainer=true)
Definition: distributed_grid_impl.hpp:79
bool is_in_horizontal_interface(TElem *elem) const
returns true if the element is contained in a horizontal interface
Definition: distributed_grid_impl.hpp:51
byte get_status(GridObject *go) const
returns the status of the given object.
Definition: distributed_grid.cpp:379
ElemInfoVrt & elem_info(Vertex *ele)
Definition: distributed_grid.h:437
bool is_interface_element(TElem *elem)
returns true if an element is in one or more interfaces
Definition: distributed_grid_impl.hpp:44
bool is_ghost(TElem *elem) const
returns true if the element is a ghost
Definition: distributed_grid_impl.hpp:67
bool is_in_vertical_interface(TElem *elem) const
returns true if the element is contained in a vertical interface
Definition: distributed_grid_impl.hpp:59
@ ES_V_SLAVE
Definition: distributed_grid.h:61
@ ES_IN_INTERFACE
Definition: distributed_grid.h:65
@ ES_H_MASTER
Definition: distributed_grid.h:58
@ ES_V_MASTER
Definition: distributed_grid.h:60
@ ES_H_SLAVE
Definition: distributed_grid.h:59