From dcb57dcae43be3381e532f1244de04e8ee60958b Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Sun, 26 Jul 2015 12:40:20 +0200 Subject: [PATCH] Made get_data return InternalData. --- include/deal.II/fe/mapping_fe_field.h | 2 +- source/fe/mapping_fe_field.cc | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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); -- 2.39.5