]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor documentation fix in P::D::SolutionTransfer
authorReza Rastak <rastak@stanford.edu>
Thu, 3 Oct 2019 06:15:33 +0000 (23:15 -0700)
committerReza Rastak <rastak@stanford.edu>
Thu, 3 Oct 2019 06:15:33 +0000 (23:15 -0700)
include/deal.II/distributed/solution_transfer.h

index 134d288dd9cf4d91bb630981ae6b3c4d1c373422..fc7a76aec275c350f2340716f86126447f9da5a2 100644 (file)
@@ -113,12 +113,16 @@ namespace parallel
      *                     locally_relevant_dofs,
      *                     mpi_communicator);
      * old_solution = solution;
+     *
+     * // Initialize SolutionTransfer object
+     * SolutionTransfer<dim, VectorType> soltrans(dof_handler);
+     * soltrans.prepare_for_coarsening_and_refinement(old_solution);
      * ...
      * // Refine grid
      * // Recreate locally_owned_dofs and locally_relevant_dofs index sets
      * ...
      * solution.reinit(locally_owned_dofs, mpi_communicator);
-     * soltrans.refine_interpolate(old_solution, solution);
+     * soltrans.interpolate(solution);
      * @endcode
      *
      * <h3>Use for Serialization</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.