]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
has_support_on_face returns true by default
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Jul 2003 07:45:32 +0000 (07:45 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 1 Jul 2003 07:45:32 +0000 (07:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@7825 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/fe/fe_raviart_thomas.h
deal.II/deal.II/source/fe/fe_raviart_thomas.cc

index ba2a09c954bc81adf08053be50472b797d0c9376..9d88b11fb040d0e8a5c2eb2a9e4f26b617796308 100644 (file)
@@ -255,16 +255,13 @@ class FE_RaviartThomas : public FiniteElement<dim>
     virtual unsigned int element_multiplicity (const unsigned int index) const;
     
                                     /**
-                                     * This function returns
-                                     * @p{true}, if the shape
-                                     * function @p{shape_index} has
-                                     * non-zero values on the face
-                                     * @p{face_index}. For the lowest
-                                     * order Nedelec elements, this
-                                     * is actually the case for the
-                                     * one on which the shape
-                                     * function is defined and all
-                                     * neighboring ones.
+                                     * Check whether a shape function
+                                     * is non-zero on a face.
+                                     *
+                                     * Right now, this is only
+                                     * implemented for RT0 in
+                                     * 1D. Otherwise, returns always
+                                     * @p{true}.
                                      *
                                      * Implementation of the
                                      * interface in
index ccaafa22d3b41248775c8106ffb4eb4e318395b3..51fe053653f2f2f999dad5196f945ccd5a8db850 100644 (file)
@@ -1928,6 +1928,9 @@ FE_RaviartThomas<dim>::has_support_on_face (const unsigned int shape_index,
   Assert (face_index < GeometryInfo<dim>::faces_per_cell,
          ExcIndexRange (face_index, 0, GeometryInfo<dim>::faces_per_cell));
 
+                                  // Return computed values if we
+                                  // know them easily. Otherwise, it
+                                  // is always safe to return true.
   switch (degree)
     {
       case 0:
@@ -1946,14 +1949,15 @@ FE_RaviartThomas<dim>::has_support_on_face (const unsigned int shape_index,
                 = { 2, 3, 0, 1};
               
               return (face_index != opposite_faces[shape_index]);
-            };
+            }
             
-            default: Assert (false, ExcNotImplemented());
+            default:
+             return true;
           };
       };
       
       default:  // other degree
-            Assert (false, ExcNotImplemented());
+       return true;
     };
   
   return true;

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.