10 #include <stk_mesh/base/Ghosting.hpp> 11 #include <stk_mesh/base/BulkData.hpp> 12 #include <stk_mesh/base/EntityComm.hpp> 19 for ( std::vector<Entity*>::const_iterator
22 Entity *
const entity = *i ;
25 if ( ec->ghost_id == m_ordinal ) {
26 v.push_back(
EntityProc( entity , ec->proc ) );
35 for ( std::vector<Entity*>::const_iterator
38 Entity *
const entity = *i ;
41 if ( ec->ghost_id == m_ordinal ) {
42 v.push_back( entity );
51 out <<
"Ghosting object: name: " <<
name()
52 <<
", ordinal: " <<
ordinal() <<
"\n";
54 out <<
" Locally owned entities ghosted on other processors (send list):\n";
56 for ( std::vector<Entity*>::const_iterator
59 Entity *
const entity = *i ;
62 if ( ec->ghost_id == m_ordinal ) {
64 print_entity_key( out, MetaData::get(m_mesh), entity->key() );
65 out <<
", sending ghost to " << ec->proc <<
", status is: " 66 << entity->log_query() <<
"\n";
72 out <<
" Entities ghosted on this processor from the owner (recv list):\n";
73 for ( std::vector<Entity*>::const_iterator
76 Entity *
const entity = *i ;
79 if ( ec->ghost_id == m_ordinal ) {
81 print_entity_key( out, MetaData::get(m_mesh), entity->key() );
82 out <<
", owner of ghost is " << entity->owner_rank()
83 <<
", status is: " << entity->log_query() <<
"\n";
93 return rhs.operator<<(out);
const std::vector< Entity * > & entity_comm() const
All entities with communication information.
Data for ghosting mesh entities.
std::pair< Entity *, unsigned > EntityProc
Pairing of an entity with a processor rank.
std::ostream & operator<<(std::ostream &s, const Bucket &k)
Print the part names for which this bucket is a subset.
void receive_list(std::vector< Entity * > &) const
Entities ghosted on this processor from the owner.
std::ostream & operator<<(std::ostream &out) const
Print the details of this object for debugging.
A fundamental unit within the discretization of a problem domain, including but not limited to nodes...
const std::string & name() const
Text name for printing purposes only.
unsigned ordinal() const
Ordinal to identify the ghosting subset.
void send_list(std::vector< EntityProc > &) const
Locally owned entities ghosted on other processors.
unsigned parallel_rank() const
Rank of the parallel machine's local processor.