From: Luca Heltai Date: Sun, 26 Jul 2015 10:40:20 +0000 (+0200) Subject: Made get_data return InternalData. X-Git-Tag: v8.3.0-rc2~1^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcb57dcae43be3381e532f1244de04e8ee60958b;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 31438418dc..c139bfbf94 100644 --- a/include/deal.II/fe/mapping_fe_field.h +++ b/include/deal.II/fe/mapping_fe_field.h @@ -570,7 +570,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 90fcbc780c..d8c78320d9 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 { @@ -776,8 +777,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); @@ -838,8 +838,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);