]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make code a bit simpler to read.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Dec 2010 15:23:18 +0000 (15:23 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Dec 2010 15:23:18 +0000 (15:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@22966 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/mapping_q1.cc

index 5f13f7f0ad4d949637c112eb31f63cf11a6d1fa5..d272ec851597155fed8c14df4e7b110ae23fb138 100644 (file)
@@ -1000,17 +1000,12 @@ namespace internal
                             data,
                             mapping_contravariant);
 
-         typename std::vector<Tensor<1,spacedim> >::iterator
-           result = boundary_forms.begin();
-         const typename std::vector<Tensor<1,spacedim> >::iterator
-           end = boundary_forms.end();
-
          switch (dim)
            {
              case 2:
              {
-               for (unsigned int i=0; result != end; ++result, ++i)
-                 cross_product (*result, data.aux[0][i]);
+               for (unsigned int i=0; i<n_q_points; ++i)
+                 cross_product (boundary_forms[i], data.aux[0][i]);
                break;
              }
 
@@ -1026,8 +1021,8 @@ namespace internal
                                   data.aux[1],
                                   data,
                                   mapping_contravariant);
-               for (unsigned int i=0; result != end; ++result, ++i)
-                 cross_product (*result, data.aux[0][i], data.aux[1][i]);
+               for (unsigned int i=0; i<n_q_points; ++i)
+                 cross_product (boundary_forms[i], data.aux[0][i], data.aux[1][i]);
 
                break;
              }

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.