bool in_receive_ghost( const Entity & entity ) { // Ghost communication with owner. PairIterEntityComm ec = entity.comm(); return ! ec.empty() && ec.front().ghost_id != 0 && ec.front().proc == entity.owner_rank(); }
bool in_shared( const Entity & entity ) { PairIterEntityComm ec = entity.comm(); return ! ec.empty() && ec.front().ghost_id == 0 ; }