std::vector<BoundaryName> SubProblem::getMaterialPropertyBoundaryNames(const std::string & prop_name) { std::set<BoundaryID> boundaries = getMaterialPropertyBoundaryIDs(prop_name); std::vector<BoundaryName> boundary_names; boundary_names.reserve(boundaries.size()); const BoundaryInfo & boundary_info = mesh().getMesh().get_boundary_info(); for (const auto & bnd_id : boundaries) { BoundaryName name; if (bnd_id == Moose::ANY_BOUNDARY_ID) name = "ANY_BOUNDARY_ID"; else { name = boundary_info.get_sideset_name(bnd_id); if (name.empty()) { std::ostringstream oss; oss << bnd_id; name = oss.str(); } } boundary_names.push_back(name); } return boundary_names; }
std::vector<BoundaryName> SubProblem::getMaterialPropertyBoundaryNames(const std::string & prop_name) { std::set<BoundaryID> boundaries = getMaterialPropertyBoundaryIDs(prop_name); std::vector<BoundaryName> boundary_names; boundary_names.reserve(boundaries.size()); const BoundaryInfo & boundary_info = mesh().getMesh().get_boundary_info(); for (std::set<BoundaryID>::iterator it = boundaries.begin(); it != boundaries.end(); ++it) { BoundaryName name; if (*it == Moose::ANY_BOUNDARY_ID) name = "ANY_BOUNDARY_ID"; else { name = boundary_info.get_sideset_name(*it); if (name.empty()) { std::ostringstream oss; oss << *it; name = oss.str(); } } boundary_names.push_back(name); } return boundary_names; }