]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid compilation warning
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 25 Feb 2014 20:29:46 +0000 (20:29 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 25 Feb 2014 20:29:46 +0000 (20:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@32554 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/matrix_free/fe_evaluation.h

index 3e0b1a1fe331fecc5cf3f6004006feefd714cfcc..05f544e929853bc6af204424d34a159c69a502da 100644 (file)
@@ -6674,14 +6674,14 @@ FEEvaluationDGP<dim,fe_degree,n_q_points_1d,n_components_,Number>
   unsigned int count_p = 0, count_q = 0;
   for (unsigned int i=0; i<(dim>2?fe_degree+1:1); ++i)
     {
-      for (int j=0; j<(dim>1?fe_degree+1-i:1); ++j)
+      for (unsigned int j=0; j<(dim>1?fe_degree+1-i:1); ++j)
         {
-          for (int k=0; k<fe_degree+1-j-i; ++k, ++count_p, ++count_q)
+          for (unsigned int k=0; k<fe_degree+1-j-i; ++k, ++count_p, ++count_q)
             {
               for (unsigned int c=0; c<n_components; ++c)
                 expanded_dof_values[c][count_q] = this->values_dofs[c][count_p];
             }
-          for (int k=fe_degree+1-j-i; k<fe_degree+1; ++k, ++count_q)
+          for (unsigned int k=fe_degree+1-j-i; k<fe_degree+1; ++k, ++count_q)
             for (unsigned int c=0; c<n_components; ++c)
               expanded_dof_values[c][count_q] = VectorizedArray<Number>();
         }
@@ -6736,9 +6736,9 @@ FEEvaluationDGP<dim,fe_degree,n_q_points_1d,n_components_,Number>
   unsigned int count_p = 0, count_q = 0;
   for (unsigned int i=0; i<(dim>2?fe_degree+1:1); ++i)
     {
-      for (int j=0; j<(dim>1?fe_degree+1-i:1); ++j)
+      for (unsigned int j=0; j<(dim>1?fe_degree+1-i:1); ++j)
         {
-          for (int k=0; k<fe_degree+1-j-i; ++k, ++count_p, ++count_q)
+          for (unsigned int k=0; k<fe_degree+1-j-i; ++k, ++count_p, ++count_q)
             {
               for (unsigned int c=0; c<n_components; ++c)
                 this->values_dofs[c][count_p] = expanded_dof_values[c][count_q];

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.