]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Formatting and style changes.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Sep 2003 14:28:24 +0000 (14:28 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Sep 2003 14:28:24 +0000 (14:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@8043 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 9c71143df16adcb149df950c612f439e0f124e82..c1c2bc16c0fa32a4b2cd72d19ed5e97432c7115f 100644 (file)
@@ -351,7 +351,7 @@ MappingQ1<dim>::compute_face_data (const UpdateFlags update_flags,
       const unsigned int nfaces = GeometryInfo<dim>::faces_per_cell;
       data.unit_tangentials.reinit(nfaces*(dim-1),
                                   n_original_q_points);
-      for (unsigned int i=0;i<nfaces;++i)
+      for (unsigned int i=0; i<nfaces; ++i)
        {
                                           // Base index of the
                                           // non-zero entry of the
@@ -644,8 +644,8 @@ MappingQ1<dim>::compute_fill_face (const typename DoFHandler<dim>::cell_iterator
                          | update_JxW_values))
        for (unsigned int i=0;i<boundary_forms.size();++i)
          {
-           double f = std::sqrt(contract(boundary_forms[i],
-                                         boundary_forms[i]));
+           const double f = std::sqrt(contract(boundary_forms[i],
+                                                boundary_forms[i]));
            if (update_flags & update_JxW_values)
              {
                JxW_values[i] = f * weights[i];
@@ -653,10 +653,7 @@ MappingQ1<dim>::compute_fill_face (const typename DoFHandler<dim>::cell_iterator
                  JxW_values[i]/=GeometryInfo<dim>::subfaces_per_face;
              }
            if (update_flags & update_normal_vectors)
-             {
-               normal_vectors[i] = boundary_forms[i];
-               normal_vectors[i] /= f;
-             }
+              normal_vectors[i] = boundary_forms[i] / f;
          }
     }
 }

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.