From e2792852d7603f3f77d2d50fb5d7d0c9349ca528 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 14 Aug 2010 02:50:53 +0000 Subject: [PATCH] In switch(dim) clauses where only dim=2 and dim=3 are tested, add a default clause that throws an exception. git-svn-id: https://svn.dealii.org/trunk@21655 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/numerics/vectors.templates.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deal.II/deal.II/include/numerics/vectors.templates.h b/deal.II/deal.II/include/numerics/vectors.templates.h index 6b1504ac55..033ff60afa 100644 --- a/deal.II/deal.II/include/numerics/vectors.templates.h +++ b/deal.II/deal.II/include/numerics/vectors.templates.h @@ -2960,6 +2960,7 @@ namespace internals const unsigned int degree = superdegree - 1; Point shifted_reference_point_1; Point shifted_reference_point_2; + unsigned int edge_coordinate_direction[4]; // Get coordinate directions of @@ -3851,6 +3852,9 @@ project_boundary_values_curl_conforming (const DoFHandler& dof_handler, constraints.set_inhomogeneity (dof, computed_constraints[dof]); } } + + default: + Assert (false, ExcNotImplemented()); } } @@ -4045,6 +4049,9 @@ project_boundary_values_curl_conforming (const hp::DoFHandler& dof_handler, computed_constraints[dof]); } } + + default: + Assert (false, ExcNotImplemented()); } } -- 2.39.5