dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert (parallel_tria != nullptr, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
vector.reinit(locally_owned_dofs, parallel_tria->get_communicator());
}
#endif //DEAL_II_WITH_PETSC
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert (parallel_tria != nullptr, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
vector.reinit(locally_owned_dofs, parallel_tria->get_communicator());
}
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert (parallel_tria !=0, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
vector.reinit(locally_owned_dofs, parallel_tria->get_communicator());
}
#endif
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert (parallel_tria != nullptr, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
vector.reinit(locally_owned_dofs, parallel_tria->get_communicator());
}
const parallel::distributed::Triangulation<dim,spacedim> *parallel_tria =
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert(parallel_tria != nullptr, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
IndexSet locally_relevant_dofs;
DoFTools::extract_locally_relevant_dofs (dh, locally_relevant_dofs);
vector.reinit (locally_owned_dofs, locally_relevant_dofs,
const parallel::distributed::Triangulation<dim,spacedim> *parallel_tria =
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert (parallel_tria != nullptr, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
IndexSet locally_relevant_dofs;
DoFTools::extract_locally_relevant_dofs (dh, locally_relevant_dofs);
vector.reinit (locally_owned_dofs, locally_relevant_dofs,
const parallel::distributed::Triangulation<dim,spacedim> *parallel_tria =
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>(&dh.get_triangulation());
Assert (parallel_tria != nullptr, ExcNotImplemented());
- const IndexSet locally_owned_dofs = dh.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dh.locally_owned_dofs();
IndexSet locally_relevant_dofs;
DoFTools::extract_locally_relevant_dofs (dh, locally_relevant_dofs);
vector.reinit (locally_owned_dofs, locally_relevant_dofs,
// if we work on parallel distributed
// vectors, we have to ensure, that we only
// work on dofs this processor owns.
- IndexSet locally_owned_dofs = dof2.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dof2.locally_owned_dofs();
// when a discontinuous element is
// interpolated to a continuous
// if u1 is a parallel distributed PETSc vector, we create a
// vector u2 with based on the sets of locally owned and relevant
// dofs of dof2
- IndexSet dof2_locally_owned_dofs = dof2.locally_owned_dofs();
+ const IndexSet &dof2_locally_owned_dofs = dof2.locally_owned_dofs();
IndexSet dof2_locally_relevant_dofs;
DoFTools::extract_locally_relevant_dofs (dof2,
dof2_locally_relevant_dofs);
// if u1 is a parallel distributed Trilinos vector, we create a
// vector u2 with based on the sets of locally owned and relevant
// dofs of dof2
- IndexSet dof2_locally_owned_dofs = dof2.locally_owned_dofs();
+ const IndexSet &dof2_locally_owned_dofs = dof2.locally_owned_dofs();
IndexSet dof2_locally_relevant_dofs;
DoFTools::extract_locally_relevant_dofs (dof2,
dof2_locally_relevant_dofs);
const ConstraintMatrix &constraints2,
LinearAlgebra::distributed::Vector<Number> &u1_interpolated)
{
- IndexSet dof2_locally_owned_dofs = dof2.locally_owned_dofs();
+ const IndexSet &dof2_locally_owned_dofs = dof2.locally_owned_dofs();
IndexSet dof2_locally_relevant_dofs;
DoFTools::extract_locally_relevant_dofs (dof2,
dof2_locally_relevant_dofs);
enforce_zero_boundary, q_boundary,
project_to_boundary_first);
- const IndexSet locally_owned_dofs = dof.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dof.locally_owned_dofs();
IndexSet::ElementIterator it = locally_owned_dofs.begin();
for (; it!=locally_owned_dofs.end(); ++it)
::dealii::internal::ElementAccess<VectorType>::set(work_result(*it),
constraints.distribute (vec);
- const IndexSet locally_owned_dofs = dof.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dof.locally_owned_dofs();
IndexSet::ElementIterator it = locally_owned_dofs.begin();
for (; it!=locally_owned_dofs.end(); ++it)
::dealii::internal::ElementAccess<VectorType>::set(vec(*it), *it, vec_result);
constraints.distribute (vec);
- const IndexSet locally_owned_dofs = dof.locally_owned_dofs();
+ const IndexSet &locally_owned_dofs = dof.locally_owned_dofs();
IndexSet::ElementIterator it = locally_owned_dofs.begin();
for (; it!=locally_owned_dofs.end(); ++it)
::dealii::internal::ElementAccess<VectorType>::set(vec(*it), *it, vec_result);