From c2547a4d6ae5d1cad44c1a2fa2a17055dfc599cc Mon Sep 17 00:00:00 2001 From: oliver Date: Tue, 31 May 2005 15:18:56 +0000 Subject: [PATCH] Introduced the type of the Euler vector as a template parameter. git-svn-id: https://svn.dealii.org/trunk@10789 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/mapping_q1_eulerian.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/deal.II/deal.II/include/fe/mapping_q1_eulerian.h b/deal.II/deal.II/include/fe/mapping_q1_eulerian.h index d47fa173fc..4e5b949d2b 100644 --- a/deal.II/deal.II/include/fe/mapping_q1_eulerian.h +++ b/deal.II/deal.II/include/fe/mapping_q1_eulerian.h @@ -70,9 +70,16 @@ * make sure that 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! + * * @author Michael Stadler, 2001 */ -template +template > class MappingQ1Eulerian : public MappingQ1 { public: @@ -98,7 +105,7 @@ class MappingQ1Eulerian : public MappingQ1 * can be initialized by * DoFObjectAccessor::set_dof_values(). */ - MappingQ1Eulerian (const Vector &euler_transform_vectors, + MappingQ1Eulerian (const EulerVectorType &euler_transform_vectors, const DoFHandler &shiftmap_dof_handler); @@ -128,7 +135,7 @@ class MappingQ1Eulerian : public MappingQ1 * Reference to the vector of * shifts. */ - const Vector &euler_transform_vectors; + const EulerVectorType &euler_transform_vectors; /** * Pointer to the DoFHandler to -- 2.39.5