]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix documentation of SolutionTransfer. 17581/head
authorMarc Fehling <mafehling.git@gmail.com>
Tue, 20 Aug 2024 17:57:30 +0000 (11:57 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Tue, 20 Aug 2024 17:57:30 +0000 (11:57 -0600)
include/deal.II/numerics/solution_transfer.h

index 0fb3a5c385bb3502ab02c4e4811bd6e2d273b6a7..121b3cf7af4b57d38b4f2d88eba9a447b7e2cc92 100644 (file)
@@ -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
  *
  * <h3>Usage on distributed grids</h3>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.