From d0a0b8c916ee5be6588b5e33d737e93905edf1b2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 25 Jun 2016 23:56:47 -0500 Subject: [PATCH] Several matching updates in MappingQ{,1}Eulerian. --- doc/news/changes.h | 4 ++-- include/deal.II/fe/mapping_q1_eulerian.h | 11 ++++------- include/deal.II/fe/mapping_q_eulerian.h | 7 ++----- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/doc/news/changes.h b/doc/news/changes.h index f13477b36d..3ca965d868 100644 --- a/doc/news/changes.h +++ b/doc/news/changes.h @@ -139,8 +139,8 @@ inconvenience this causes.

General

    -
  1. Changed: As MappingQEulerian before, MappingQ1Eulerian has gained - a second constructor that reverts the order of the arguments to indicate +
  2. Changed: Similar to MappingQEulerian, MappingQ1Eulerian has gained + a second constructor that reverses the order of the arguments to indicate which DoFHandler a vector is based on. The old constructor is now deprecated and will be removed in a future version.
    diff --git a/include/deal.II/fe/mapping_q1_eulerian.h b/include/deal.II/fe/mapping_q1_eulerian.h index 69f7302f82..9809a40c9c 100644 --- a/include/deal.II/fe/mapping_q1_eulerian.h +++ b/include/deal.II/fe/mapping_q1_eulerian.h @@ -68,8 +68,8 @@ template class Vector; * FESystem fe(FE_Q(1), dim); * DoFHandler flowfield_dof_handler(triangulation); * flowfield_dof_handler.distribute_dofs(fe); - * Vector map_points(flowfield_dof_handler.n_dofs()); - * MappingQ1Eulerian mymapping(map_points, flowfield_dof_handler); + * Vector displacement_field(flowfield_dof_handler.n_dofs()); + * MappingQ1Eulerian mymapping(flowfield_dof_handler, displacement_field); * @endcode * * Note that since the vector of shift values and the dof handler are only @@ -77,11 +77,8 @@ template class Vector; * whenever you use this object, the given objects still represent valid data. * * To enable the use of the MappingQ1Eulerian class also in the context of - * parallel codes using the PETSc wrapper classes, the type of the vector can - * be specified as template parameter EulerVectorType Not specifying - * this template argument in applications using the PETSc vector classes leads - * to the construction of a copy of the vector which is not acccessible - * afterwards! + * parallel codes using the PETSc or Trilinos wrapper classes, the type of + * the vector can be specified as template parameter VectorType. * * For more information about the spacedim template parameter check * the documentation of FiniteElement or the one of Triangulation. diff --git a/include/deal.II/fe/mapping_q_eulerian.h b/include/deal.II/fe/mapping_q_eulerian.h index f046f690b5..c7de1fd904 100644 --- a/include/deal.II/fe/mapping_q_eulerian.h +++ b/include/deal.II/fe/mapping_q_eulerian.h @@ -81,11 +81,8 @@ template class Vector; * data. * * To enable the use of the MappingQ1Eulerian class also in the context of - * parallel codes using the PETSc wrapper classes, the type of the vector can - * be specified as template parameter EulerVectorType Not specifying - * this template argument in applications using the PETSc vector classes leads - * to the construction of a copy of the vector which is not accessible - * afterwards! + * parallel codes using the PETSc or Trilinos wrapper classes, the type + * of the vector can be specified as template parameter VectorType. * * @author Joshua White, 2008 */ -- 2.39.5