From 76e10e772b66d5d7f4d5db7fb9399b8b2deffe8d Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Tue, 20 Aug 2024 11:57:30 -0600 Subject: [PATCH] Fix documentation of SolutionTransfer. --- include/deal.II/numerics/solution_transfer.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/deal.II/numerics/solution_transfer.h b/include/deal.II/numerics/solution_transfer.h index 0fb3a5c385..121b3cf7af 100644 --- a/include/deal.II/numerics/solution_transfer.h +++ b/include/deal.II/numerics/solution_transfer.h @@ -74,11 +74,12 @@ DEAL_II_NAMESPACE_OPEN * // redistribute dofs, * dof_handler.distribute_dofs(fe); * - * // and interpolate the solution - * VectorType interpolated_solution; + * // adjust the vector size so that it can hold all dofs + * // (for distributed grids, see instructions below), + * solution.reinit(...); * - * //create VectorType in the right size here - * soltrans.interpolate(interpolated_solution); + * // and interpolate the solution + * soltrans.interpolate(solution); * @endcode * *

Usage on distributed grids

-- 2.39.5