]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor cleanups.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 28 Nov 2017 17:35:19 +0000 (10:35 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 28 Nov 2017 17:35:19 +0000 (10:35 -0700)
source/fe/fe_face.cc

index d31fd4ea87def37e5c947af152ca5c04c6b65324..1a443fb436155ab193b1b60b7c5160d3a5352e1d 100644 (file)
@@ -286,8 +286,10 @@ std::vector<std::pair<unsigned int, unsigned int> >
 FE_FaceQ<dim, spacedim>::
 hp_line_dof_identities (const FiniteElement<dim, spacedim> &fe_other) const
 {
+  Assert (dim >= 2, ExcInternalError());
+
   // this element is continuous only for the highest dimensional bounding object
-  if (dim !=2)
+  if (dim 2)
     return
       std::vector<std::pair<unsigned int, unsigned int> > ();
   else
@@ -353,8 +355,10 @@ std::vector<std::pair<unsigned int, unsigned int> >
 FE_FaceQ<dim, spacedim>::
 hp_quad_dof_identities (const FiniteElement<dim, spacedim> &fe_other) const
 {
+  Assert (dim >= 3, ExcInternalError());
+
   // this element is continuous only for the highest dimensional bounding object
-  if (dim !=3)
+  if (dim 3)
     return
       std::vector<std::pair<unsigned int, unsigned int> > ();
   else

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.