From: Luca Heltai Date: Sun, 26 Jul 2015 10:40:20 +0000 (+0200) Subject: Made get_data return InternalData. X-Git-Tag: v8.4.0-rc2~720^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3d261c5b9ef63aa623f292c556ee030ff467f7;p=dealii.git Made get_data return InternalData. --- diff --git a/include/deal.II/fe/mapping_fe_field.h b/include/deal.II/fe/mapping_fe_field.h index 6a380e0265..34000afbc7 100644 --- a/include/deal.II/fe/mapping_fe_field.h +++ b/include/deal.II/fe/mapping_fe_field.h @@ -571,7 +571,7 @@ private: * detailed information. */ virtual - typename Mapping::InternalDataBase * + InternalData * get_data (const UpdateFlags, const Quadrature &quadrature) const; diff --git a/source/fe/mapping_fe_field.cc b/source/fe/mapping_fe_field.cc index 52f8d50348..703c5eb706 100644 --- a/source/fe/mapping_fe_field.cc +++ b/source/fe/mapping_fe_field.cc @@ -328,7 +328,8 @@ MappingFEField::compute_face_data (const UpdateFlags upd template -typename Mapping::InternalDataBase * +typename +MappingFEField::InternalData * MappingFEField::get_data (const UpdateFlags update_flags, const Quadrature &quadrature) const { @@ -781,8 +782,7 @@ transform_unit_to_real_cell (const typename Triangulation::cell_it // p. const Quadrature point_quadrature(p); std_cxx11::unique_ptr - mdata (dynamic_cast ( - 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::cell_it if (spacedim>dim) update_flags |= update_jacobian_grads; std_cxx11::unique_ptr - mdata (dynamic_cast ( - get_data(update_flags,point_quadrature))); + mdata (get_data(update_flags,point_quadrature)); update_internal_dofs(cell, *mdata);