From: Peter Munch Date: Thu, 9 Jul 2020 18:37:20 +0000 (+0200) Subject: Implement FEInterfaceValues::get_mapping() and ::get_fe X-Git-Tag: v9.3.0-rc1~1311^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=220cbccf67b5aec43201ce5729c9cb275ba3ad30;p=dealii.git Implement FEInterfaceValues::get_mapping() and ::get_fe --- diff --git a/examples/step-12/step-12.cc b/examples/step-12/step-12.cc index fcec1e2c1f..bb0c680f1d 100644 --- a/examples/step-12/step-12.cc +++ b/examples/step-12/step-12.cc @@ -166,12 +166,10 @@ namespace Step12 scratch_data.fe_values.get_fe(), scratch_data.fe_values.get_quadrature(), scratch_data.fe_values.get_update_flags()) - , fe_interface_values( - scratch_data.fe_values - .get_mapping(), // TODO: implement for fe_interface_values - scratch_data.fe_values.get_fe(), - scratch_data.fe_interface_values.get_quadrature(), - scratch_data.fe_interface_values.get_update_flags()) + , fe_interface_values(scratch_data.fe_interface_values.get_mapping(), + scratch_data.fe_interface_values.get_fe(), + scratch_data.fe_interface_values.get_quadrature(), + scratch_data.fe_interface_values.get_update_flags()) {} FEValues fe_values; diff --git a/include/deal.II/fe/fe_interface_values.h b/include/deal.II/fe/fe_interface_values.h index 7412b0a608..3d1a2b8c98 100644 --- a/include/deal.II/fe/fe_interface_values.h +++ b/include/deal.II/fe/fe_interface_values.h @@ -142,6 +142,18 @@ public: const FEFaceValuesBase & get_fe_face_values(const unsigned int cell_index) const; + /** + * Constant reference to the selected mapping object. + */ + const Mapping & + get_mapping() const; + + /** + * Constant reference to the selected finite element object. + */ + const FiniteElement & + get_fe() const; + /** * Return a reference to the quadrature object in use. */ @@ -644,6 +656,24 @@ FEInterfaceValues::get_normal_vectors() const +template +const Mapping & +FEInterfaceValues::get_mapping() const +{ + return internal_fe_face_values.get_mapping(); +} + + + +template +const FiniteElement & +FEInterfaceValues::get_fe() const +{ + return internal_fe_face_values.get_fe(); +} + + + template const Quadrature & FEInterfaceValues::get_quadrature() const