From d5b9b89a7991385d57d1e96b9576d11532227599 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Mon, 28 Mar 2016 13:32:47 +0200 Subject: [PATCH] Removed unused declaration. Added assertions on flags. --- include/deal.II/fe/mapping_manifold.h | 11 ----------- source/fe/mapping_manifold.cc | 12 ++++++++++-- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/include/deal.II/fe/mapping_manifold.h b/include/deal.II/fe/mapping_manifold.h index 93fb1ba8a3..9b81a82951 100644 --- a/include/deal.II/fe/mapping_manifold.h +++ b/include/deal.II/fe/mapping_manifold.h @@ -364,17 +364,6 @@ public: /** * @} */ - -protected: - - /** - * Transforms the point @p p on the real cell to the corresponding point on - * the unit cell @p cell by a Newton iteration. - */ - // Point - // transform_real_to_unit_cell_internal (const typename Triangulation::cell_iterator &cell, - // const Point &p, - // const Point &initial_p_unit) const; }; diff --git a/source/fe/mapping_manifold.cc b/source/fe/mapping_manifold.cc index 590c2ac4a4..eedf1fa43e 100644 --- a/source/fe/mapping_manifold.cc +++ b/source/fe/mapping_manifold.cc @@ -160,8 +160,7 @@ initialize_face (const UpdateFlags update_flags, template MappingManifold::MappingManifold () -{ -} +{} @@ -272,6 +271,15 @@ MappingManifold::requires_update_flags (const UpdateFlags in) cons out |= update_JxW_values; } + // Now throw an exception if we stumble upon something that was not + // implemented yet + Assert(!(out & ( + update_jacobian_grads | + update_jacobian_pushed_forward_grads | + update_jacobian_pushed_forward_2nd_derivatives | + update_jacobian_pushed_forward_3rd_derivatives + )), ExcNotImplemented()); + return out; } -- 2.39.5