From 3b3d261c5b9ef63aa623f292c556ee030ff467f7 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 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); -- 2.39.5