Skip to content

Commit

Permalink
Make sure set is used for set_intersection (idaholab#9390)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwen committed Jun 27, 2017
1 parent 694b7b2 commit e222722
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions framework/src/actions/ActionWarehouse.C
Expand Up @@ -264,12 +264,14 @@ ActionWarehouse::printActionDependencySets() const
std::ostringstream oss;

const auto & ordered_names = _syntax.getSortedTaskSet();
for (const auto & task_set : ordered_names)
for (const auto & task_vector : ordered_names)
{
oss << "[DBG][ACT] (" << COLOR_YELLOW;
std::copy(task_set.begin(), task_set.end(), infix_ostream_iterator<std::string>(oss, ", "));
std::copy(
task_vector.begin(), task_vector.end(), infix_ostream_iterator<std::string>(oss, ", "));
oss << COLOR_DEFAULT << ")\n";

std::set<std::string> task_set(task_vector.begin(), task_vector.end());
for (const auto & task : task_set)
{
if (_action_blocks.find(task) == _action_blocks.end())
Expand Down

0 comments on commit e222722

Please sign in to comment.