* Dereferencing operator. The returned value is the index of the element
* inside the IndexSet.
*/
- const size_type &operator*() const;
+ size_type operator*() const;
/**
* Does this iterator point to an existing element?
-inline const IndexSet::size_type &IndexSet::ElementIterator::operator*() const
+inline IndexSet::size_type IndexSet::ElementIterator::operator*() const
{
Assert(
is_valid(),
{
// find all lines to send to @p owner
IndexSet indices_to_send = non_owned & locally_owned_dofs[owner];
- for (const auto &row_idx : indices_to_send)
+ for (const auto row_idx : indices_to_send)
{
to_send[owner].push_back(get_line(row_idx));
}
stored_elements.print(out);
out << std::endl;
unsigned int i = 0;
- for (const auto &idx : this->stored_elements)
+ for (const auto idx : this->stored_elements)
out << "[" << idx << "]: " << values[i++] << '\n';
out << std::flush;
active_but_not_owned_dofs.subtract_set(locally_owned_dofs);
std::set<types::global_dof_index> erase_these_indices;
- for (const auto &p : active_but_not_owned_dofs)
+ for (const auto p : active_but_not_owned_dofs)
{
const auto index = index_set_to_use.index_within_set(p);
Assert(index < index_set_to_use.n_elements(),
ExcDimensionMismatch(selected_dofs.size(), dof_handler.n_dofs()));
// preset all values by false
std::fill(selected_dofs.begin(), selected_dofs.end(), false);
- for (const auto &index : selected_dofs_as_index_set)
+ for (const auto index : selected_dofs_as_index_set)
selected_dofs[index] = true;
}
// Creating a bounding box for all active cell on coarser level
for (unsigned int i = 0; i < refinement_level; ++i)
- for (typename MeshType::cell_iterator cell :
+ for (const typename MeshType::cell_iterator &cell :
mesh.active_cell_iterators_on_level(i))
{
bool has_predicate = false;
// Try to copy all the rows of the matrix one by one. In case of error
// (i.e., the column indices are different), we need to abort and blow
// away the matrix.
- for (const auto &row : locally_owned_range_indices())
+ for (const auto row : locally_owned_range_indices())
{
const int row_local = matrix->RowMap().LID(
static_cast<TrilinosWrappers::types::int_type>(row));
const bool same_col_map = matrix->ColMap().SameAs(rhs.matrix->ColMap());
- for (const auto &row : locally_owned_range_indices())
+ for (const auto row : locally_owned_range_indices())
{
const int row_local = matrix->RowMap().LID(
static_cast<TrilinosWrappers::types::int_type>(row));