From bcfce349f4e4cd28b23bb2408d4c025c30e31888 Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 4 May 1999 10:14:50 +0000 Subject: [PATCH] fix doc git-svn-id: https://svn.dealii.org/trunk@1260 0785d39b-7218-0410-832d-ea1e28bc413d --- .../include/numerics/solution_transfer.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/deal.II/deal.II/include/numerics/solution_transfer.h b/deal.II/deal.II/include/numerics/solution_transfer.h index dad32bbf7c..5d20309d7b 100644 --- a/deal.II/deal.II/include/numerics/solution_transfer.h +++ b/deal.II/deal.II/include/numerics/solution_transfer.h @@ -32,10 +32,10 @@ template class DoFHandler; * tria->refine_and_coarsen_fixed_fraction(error_indicator, 0.3, 0); * tria->execute_coarsening_and_refinement(); * dof_handler->distribute_dofs (fe); - * soltrans.refine_interpolate(solution); + * soltrans.refine_interpolate(solution, interpolated_solution); * // if necessary interpolate some * // more functions - * soltrans.refine_interpolate(sol2); + * soltrans.refine_interpolate(sol2, interpolated_sol2); * ... * \end{verbatim} * \item If the grid will be coarsenend and refined @@ -49,12 +49,14 @@ template class DoFHandler; * soltrans.prepare_for_coarsening_and_refinement(solution); * tria->execute_coarsening_and_refinement (); * dof_handler->distribute_dofs (fe); - * soltrans.interpolate(solution); + * soltrans.interpolate(solution, interpolated_solution); * \end{verbatim} - * Multiple calling of the function #void interpolate (Vector &out) const# + * Multiple calling of the function + * #interpolate (const Vector &in, Vector &out)# * is NOT allowed. Interpolating several functions can be performed in one step - * by using #void interpolate (vector >&all_out) const#, and + * by using #void interpolate (const vector >&all_in, + * vector >&all_out) const#, and * using the respective #prepare_for_coarsening_and_refinement# function taking * several vectors as input before actually refining and coarsening the * triangulation (see there). @@ -63,8 +65,8 @@ template class DoFHandler; * For deleting all stored data in #SolutionTransfer# and reinitializing it * use the #clear()# function. * - * Note that the #user_pointer# of some cells are used. Be sure that you don't need - * them otherwise. + * Note that the #user_pointer# of some cells are used. + * Be sure that you don't need them otherwise. * * The template argument #number# denotes the data type of the vectors you want * to transfer. @@ -108,7 +110,7 @@ template class DoFHandler; * Additionally the DoF indices of the cells * that will not be coarsened need to be stored according to the solution * transfer while pure refinement (cf there). All this is performed by - * #prepare_coarsening_and_refinement(all_in)# where the + * #prepare_for_coarsening_and_refinement(all_in)# where the * #vector >vector all_in# includes * all discrete functions to be interpolated onto the new grid. * @@ -132,9 +134,10 @@ template class DoFHandler; * #Pointerstruct# that is pointed to by the user_pointer of that cell. * It is clear that #interpolate(all_in, all_out)# only can be called with * the #vector > all_in# that previously was the parameter - * of the #prepare_coarsening_and_refinement(all_in)# function. Hence + * of the #prepare_for_coarsening_and_refinement(all_in)# function. Hence * #interpolate(all_in, all_out)# can (in contrast to * #refine_interpolate(in, out)#) only be called once. + * \end{itemize} * * @author Ralf Hartmann, 1999 */ -- 2.39.5