]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't rely on obscure language features, since it apparently makes some
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 24 Oct 2005 14:04:19 +0000 (14:04 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 24 Oct 2005 14:04:19 +0000 (14:04 +0000)
compilers go bonkers.

git-svn-id: https://svn.dealii.org/trunk@11653 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_raviart_thomas_nodal.cc

index 60e087fed059e09b7f038b81ba87cf98db87e377..93628517a552f4393c1fa5c4f0e5da569137f771 100644 (file)
@@ -377,18 +377,17 @@ FE_RaviartThomasNodal<dim>::initialize_support_points (const unsigned int deg)
 
   for (unsigned int d=0;d<dim;++d)
     {
+                                       // guard the following statement
+      Assert (dim <= 3, ExcNotImplemented());
       const QAnisotropic<dim>
         quadrature (dim == 1 ?
                     QAnisotropic<dim>(high) :
                     (dim == 2 ?
                      QAnisotropic<dim>(((d==0) ? low : high),
                                        ((d==1) ? low : high)) :
-                     (dim == 3 ?
-                      QAnisotropic<dim>(((d==0) ? low : high),
-                                        ((d==1) ? low : high),
-                                        ((d==2) ? low : high))
-                      :
-                      throw ExcNotImplemented(), /*dummy=*/QAnisotropic<dim>(high))));
+                     QAnisotropic<dim>(((d==0) ? low : high),
+                                       ((d==1) ? low : high),
+                                       ((d==2) ? low : high))));
       
       for (unsigned int k=0;k<quadrature.n_quadrature_points;++k)
        this->generalized_support_points[current++] = quadrature.point(k);

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.