13 #include <stk_mesh/base/FieldBase.hpp> 14 #include <stk_mesh/base/MetaData.hpp> 19 std::ostream & operator << ( std::ostream & s ,
const FieldBase & field )
22 s << field.data_traits().name ;
23 for (
unsigned i = 0 ; i < field.rank() ; ++i ) {
24 s <<
"," << field.dimension_tags()[i]->name();
30 s <<
"\" , #states = " ;
31 s << field.number_of_states();
36 std::ostream &
print( std::ostream & s ,
37 const char *
const b ,
38 const FieldBase & field )
40 const PartVector & all_parts = MetaData::get(field).get_parts();
41 const std::vector<FieldBase::Restriction> & rMap = field.restrictions();
44 for ( std::vector<FieldBase::Restriction>::const_iterator
45 i = rMap.begin() ; i != rMap.end() ; ++i ) {
46 s << std::endl << b <<
" " ;
47 i->print( s, i->entity_rank(), * all_parts[ i->part_ordinal() ], field.rank() );
49 s << std::endl << b <<
"}" ;
std::ostream & print(std::ostream &os, const std::string &indent, const Bucket &bucket)
Print the parts and entities of this bucket.
std::vector< Part *> PartVector
Collections of parts are frequently maintained as a vector of Part pointers.