From: Wolfgang Bangerth Date: Fri, 27 Oct 2017 13:50:05 +0000 (-0600) Subject: Add an assertion to provide a nicer error message. X-Git-Tag: v9.0.0-rc1~863^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871c8e6c4c2993b0e33b51103a5dad783d743e13;p=dealii.git Add an assertion to provide a nicer error message. --- diff --git a/source/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index 2788416f46..71faad5b40 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -1512,6 +1512,11 @@ namespace DoFRenumbering const Tensor<1,DoFHandlerType::space_dimension> &direction, const bool dof_wise_renumbering) { + Assert ((dynamic_cast*> + (&dof.get_triangulation()) + == nullptr), + ExcNotImplemented()); + if (dof_wise_renumbering == false) { std::vector ordered_cells;