if (!vec_owned_elements.is_element(entry.first))
additional_elements.emplace_back(entry.first);
std::sort(additional_elements.begin(), additional_elements.end());
- additional_elements.erase(std::unique(additional_elements.begin(),
- additional_elements.end()),
- additional_elements.end());
-
needed_elements.add_indices(additional_elements.begin(),
additional_elements.end());
i.end());
std::sort(ghost_indices_vector.begin(), ghost_indices_vector.end());
- ghost_indices_vector.erase(std::unique(ghost_indices_vector.begin(),
- ghost_indices_vector.end()),
- ghost_indices_vector.end());
-
IndexSet locally_active_dofs(std::get<1>(prefix_sum));
locally_active_dofs.add_indices(ghost_indices_vector.begin(),
}
std::sort(ghost_indices.begin(), ghost_indices.end());
- ghost_indices.erase(std::unique(ghost_indices.begin(),
- ghost_indices.end()),
- ghost_indices.end());
this->is_extended_ghosts =
IndexSet(mg_level_fine == numbers::invalid_unsigned_int ?
std::sort(locally_relevant_dofs_temp.begin(),
locally_relevant_dofs_temp.end());
-
- locally_relevant_dofs_temp.erase(
- std::unique(locally_relevant_dofs_temp.begin(),
- locally_relevant_dofs_temp.end()),
- locally_relevant_dofs_temp.end());
-
locally_relevant_dofs.add_indices(locally_relevant_dofs_temp.begin(),
locally_relevant_dofs_temp.end());
dofs_on_ghosts.push_back(dof_index);
}
- // sort, compress out duplicates, fill into index set
+ // sort and put into an index set
std::sort(dofs_on_ghosts.begin(), dofs_on_ghosts.end());
- dof_set.add_indices(dofs_on_ghosts.begin(),
- std::unique(dofs_on_ghosts.begin(),
- dofs_on_ghosts.end()));
+ dof_set.add_indices(dofs_on_ghosts.begin(), dofs_on_ghosts.end());
dof_set.compress();
return dof_set;
dofs_on_ghosts.push_back(dof_index);
}
- // sort, compress out duplicates, fill into index set
+ // sort and fill into an index set
std::sort(dofs_on_ghosts.begin(), dofs_on_ghosts.end());
- dof_set.add_indices(dofs_on_ghosts.begin(),
- std::unique(dofs_on_ghosts.begin(),
- dofs_on_ghosts.end()));
-
+ dof_set.add_indices(dofs_on_ghosts.begin(), dofs_on_ghosts.end());
dof_set.compress();
return dof_set;
local_dof_indices.begin(),
local_dof_indices.end());
}
- // sort indices and remove duplicates
+ // sort indices and put into an index set:
std::sort(subdomain_indices.begin(), subdomain_indices.end());
- subdomain_indices.erase(std::unique(subdomain_indices.begin(),
- subdomain_indices.end()),
- subdomain_indices.end());
-
- // insert into IndexSet
index_set.add_indices(subdomain_indices.begin(), subdomain_indices.end());
index_set.compress();
part.local_to_global(plain_dof_indices[i]));
}
std::sort(ghost_indices.begin(), ghost_indices.end());
- ghost_indices.erase(std::unique(ghost_indices.begin(),
- ghost_indices.end()),
- ghost_indices.end());
IndexSet compressed_set(part.size());
compressed_set.add_indices(ghost_indices.begin(), ghost_indices.end());
compressed_set.subtract_set(part.locally_owned_range());
part.get_mpi_communicator()) != 0;
std::sort(ghost_indices.begin(), ghost_indices.end());
- ghost_indices.erase(std::unique(ghost_indices.begin(),
- ghost_indices.end()),
- ghost_indices.end());
IndexSet compressed_set(part.size());
compressed_set.add_indices(ghost_indices.begin(),
ghost_indices.end());
}
});
std::sort(ghost_indices.begin(), ghost_indices.end());
- ghost_indices.erase(std::unique(ghost_indices.begin(),
- ghost_indices.end()),
- ghost_indices.end());
IndexSet compressed_set(part.size());
compressed_set.add_indices(ghost_indices.begin(),
ghost_indices.end());
++level)
{
std::sort(dofs_by_level[level].begin(), dofs_by_level[level].end());
- boundary_indices[level].add_indices(
- dofs_by_level[level].begin(),
- std::unique(dofs_by_level[level].begin(),
- dofs_by_level[level].end()));
+ boundary_indices[level].add_indices(dofs_by_level[level].begin(),
+ dofs_by_level[level].end());
}
}
interface_dofs[l].clear();
std::sort(tmp_interface_dofs[l].begin(), tmp_interface_dofs[l].end());
interface_dofs[l].add_indices(tmp_interface_dofs[l].begin(),
- std::unique(tmp_interface_dofs[l].begin(),
- tmp_interface_dofs[l].end()));
+ tmp_interface_dofs[l].end());
interface_dofs[l].compress();
}
}
std::sort(ghosted_level_dofs.begin(), ghosted_level_dofs.end());
IndexSet ghosted_dofs(locally_owned.size());
ghosted_dofs.add_indices(ghosted_level_dofs.begin(),
- std::unique(ghosted_level_dofs.begin(),
- ghosted_level_dofs.end()));
+ ghosted_level_dofs.end());
ghosted_dofs.compress();
// Add possible ghosts from the previous content in the vector