9 #ifndef stk_mesh_GetBucket_hpp 10 #define stk_mesh_GetBucket_hpp 15 #include <stk_mesh/base/Types.hpp> 16 #include <stk_mesh/base/Selector.hpp> 17 #include <stk_mesh/base/Iterators.hpp> 36 template<
class SELECTOR>
39 const std::vector< Bucket * > & input ,
40 std::vector< Bucket * > &
output )
43 for(
const auto& b : input ) {
44 if ( selector( *b ) ) {
output.push_back( b ); }
51 AllSelectedBucketsRange
get_buckets(
const Selector & selector,
const BulkData& mesh );
56 AllBucketsRange
get_buckets(
const BulkData& mesh );
66 AllSelectedBucketsRange
get_buckets(
const Selector & selector,
const AllBucketsRange& range);
71 void get_involved_parts(
const PartVector & union_parts,
72 const Bucket & candidate,
std::ostream & output()
Function output returns the processor output log stream. This stream is connected via an mpi_filebuf ...
AllSelectedBucketsRange get_buckets(const Selector &selector, const BulkData &mesh)
std::vector< Part *> PartVector
Collections of parts are frequently maintained as a vector of Part pointers.
EntityRank entity_rank(const EntityKey &key)
Given an entity key, return an entity type (rank).