]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Comments added
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 27 Mar 2001 18:05:32 +0000 (18:05 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 27 Mar 2001 18:05:32 +0000 (18:05 +0000)
git-svn-id: https://svn.dealii.org/trunk@4313 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/mapping_q1.cc

index d877681a7d2ec3acdc0fa7580e96da394f3f61b6..c4c31183569706d4cf5f2d65713dd117437418b2 100644 (file)
@@ -287,7 +287,18 @@ MappingQ1<dim>::update_each (const UpdateFlags in) const
                                      | update_normal_vectors));
 
   //  cerr << "Mapping-each " << hex << in << ' ' << out;
-  
+
+                                  // The following is a little incorrect:
+                                  // If not applied on a face,
+                                  // update_boundary_forms does not
+                                  // make sense. On the other hand,
+                                  // it is necessary on a
+                                  // face. Currently,
+                                  // update_boundary_forms is simply
+                                  // ignored for the interior of a
+                                  // cell.
+//TODO: Consider giving this function information on whether we are on
+//  a face.
   if (out & (update_JxW_values
            |update_normal_vectors))
     out |= update_boundary_forms;
@@ -353,10 +364,7 @@ MappingQ1<dim>::compute_face_data (UpdateFlags update_flags,
                                   const unsigned int n_original_q_points,
                                   InternalData& data) const
 {
-  if (update_flags & update_JxW_values)
-    update_flags |= update_boundary_forms;
-  
-   compute_data (update_flags, q, n_original_q_points, data);
+  compute_data (update_flags, q, n_original_q_points, data);
 
 #if (deal_II_dimension>1)
   if (data.update_flags & update_boundary_forms)

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.