10 #include <stk_mesh/base/Ghosting.hpp>
11 #include <stk_mesh/base/BulkData.hpp>
12 #include <stk_mesh/base/EntityComm.hpp>
14 namespace stk_classic {
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: "
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);
void receive_list(std::vector< Entity * > &) const
Entities ghosted on this processor from the owner.
unsigned ordinal() const
Ordinal to identify the ghosting subset.
void send_list(std::vector< EntityProc > &) const
Locally owned entities ghosted on other processors.
Data for ghosting mesh entities.
const std::vector< Entity * > & entity_comm() const
All entities with communication information.
EntityModificationLog log_query() const
Query the current state of the entity log.
const std::string & name() const
Text name for printing purposes only.
PairIterEntityComm comm() const
Complete communicaiton list for this entity.
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.
unsigned owner_rank() const
Parallel processor rank of the processor which owns this entity.
A fundamental unit within the discretization of a problem domain, including but not limited to nodes...
std::ostream & operator<<(std::ostream &out) const
Print the details of this object for debugging.
const EntityKey & key() const
The globally unique key ( entity type + identifier ) of this entity.
unsigned parallel_rank() const
Rank of the parallel machine's local processor.