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);