From: Marc Fehling Date: Tue, 20 Aug 2024 17:57:30 +0000 (-0600) Subject: Fix documentation of SolutionTransfer. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17581%2Fhead;p=dealii.git Fix documentation of SolutionTransfer. --- 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