From: Wolfgang Bangerth Date: Sat, 14 Aug 2010 02:50:53 +0000 (+0000) Subject: In switch(dim) clauses where only dim=2 and dim=3 are tested, add a X-Git-Tag: v8.0.0~5731 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2792852d7603f3f77d2d50fb5d7d0c9349ca528;p=dealii.git 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 --- 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()); } }