]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Made get_data return InternalData.
authorLuca Heltai <luca.heltai@sissa.it>
Sun, 26 Jul 2015 10:40:20 +0000 (12:40 +0200)
committerTimo Heister <timo.heister@gmail.com>
Sun, 26 Jul 2015 21:43:18 +0000 (17:43 -0400)
include/deal.II/fe/mapping_fe_field.h
source/fe/mapping_fe_field.cc

index 31438418dc4060914c33500fef068fd0cafc63ad..c139bfbf947e9962bb63757c776d6775dd40039c 100644 (file)
@@ -570,7 +570,7 @@ private:
    * detailed information.
    */
   virtual
-  typename Mapping<dim,spacedim>::InternalDataBase *
+  InternalData *
   get_data (const UpdateFlags,
             const Quadrature<dim> &quadrature) const;
 
index 90fcbc780c32d720a4e1cf0f3a29fb9138e181a6..d8c78320d92d2d45176648eca6ce37217202769a 100644 (file)
@@ -328,7 +328,8 @@ MappingFEField<dim,spacedim,VECTOR,DH>::compute_face_data (const UpdateFlags upd
 
 
 template<int dim, int spacedim, class VECTOR, class DH>
-typename Mapping<dim,spacedim>::InternalDataBase *
+typename
+MappingFEField<dim,spacedim,VECTOR,DH>::InternalData *
 MappingFEField<dim,spacedim,VECTOR,DH>::get_data (const UpdateFlags update_flags,
                                                   const Quadrature<dim> &quadrature) const
 {
@@ -776,8 +777,7 @@ transform_unit_to_real_cell (const typename Triangulation<dim,spacedim>::cell_it
 //  p.
   const Quadrature<dim> point_quadrature(p);
   std_cxx11::unique_ptr<InternalData>
-  mdata (dynamic_cast<InternalData *> (
-           get_data(update_transformation_values, point_quadrature)));
+  mdata (get_data(update_transformation_values, point_quadrature));
 
   update_internal_dofs(cell, *mdata);
 
@@ -838,8 +838,7 @@ transform_real_to_unit_cell (const typename Triangulation<dim,spacedim>::cell_it
   if (spacedim>dim)
     update_flags |= update_jacobian_grads;
   std_cxx11::unique_ptr<InternalData>
-  mdata (dynamic_cast<InternalData *> (
-           get_data(update_flags,point_quadrature)));
+  mdata (get_data(update_flags,point_quadrature));
 
   update_internal_dofs(cell, *mdata);
 

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.