]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Made get_data return InternalData. 1197/head
authorLuca Heltai <luca.heltai@sissa.it>
Sun, 26 Jul 2015 10:40:20 +0000 (12:40 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Sun, 26 Jul 2015 10:40:20 +0000 (12:40 +0200)
include/deal.II/fe/mapping_fe_field.h
source/fe/mapping_fe_field.cc

index 6a380e0265cf4ee5872428bc3cd98476349b2653..34000afbc764ea4e63c67ed5c9d3c1e5445f67c2 100644 (file)
@@ -571,7 +571,7 @@ private:
    * detailed information.
    */
   virtual
-  typename Mapping<dim,spacedim>::InternalDataBase *
+  InternalData *
   get_data (const UpdateFlags,
             const Quadrature<dim> &quadrature) const;
 
index 52f8d5034814eec9f6b62c8fb819bd31e38b1cb9..703c5eb706ea5d7ed3c40114951bab37f61c5ce9 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
 {
@@ -781,8 +782,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);
 
@@ -843,8 +843,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.