]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fixed some "for" loops with bad conditionals
authorbrian <brian@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Feb 2003 20:37:49 +0000 (20:37 +0000)
committerbrian <brian@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Feb 2003 20:37:49 +0000 (20:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@7016 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_q_hierarchical.cc

index 27ed7efb719325c26a514964964fd57b04705e6b..8783bf4c9cdb0827089a370676d322bf8527ed43 100644 (file)
@@ -154,7 +154,7 @@ FE_Q_Hierarchical<dim>::FE_Q_Hierarchical (const unsigned int degree)
            dofs_subcell[0](1, (i - (i % dofs_1d)) / dofs_1d);
          
          // interior edges
-         for (unsigned int j=0; j<degree-1; j++)
+         for (unsigned int j=0; j<(degree-1); j++)
          {
            this->interface_constraints(5 + j,face_renumber[i]) = 
              dofs_subcell[0](1, i % dofs_1d) * 
@@ -171,7 +171,7 @@ FE_Q_Hierarchical<dim>::FE_Q_Hierarchical (const unsigned int degree)
          }
 
          // boundary edges
-         for (unsigned int j=0; j<degree-1; j++)
+         for (unsigned int j=0; j<(degree-1); j++)
          {
            // bottom edge 
            this->interface_constraints(5 + 4*(degree-1) + j,face_renumber[i]) =
@@ -204,8 +204,8 @@ FE_Q_Hierarchical<dim>::FE_Q_Hierarchical (const unsigned int degree)
          }
 
          // interior faces
-         for (unsigned int j=0; j<degree-1; j++)
-           for (unsigned int k=0; k<degree-1; k++)
+         for (unsigned int j=0; j<(degree-1); j++)
+           for (unsigned int k=0; k<(degree-1); k++)
            {
              // subcell 0
              this->interface_constraints(5 + 12*(degree-1) + j + k*(degree-1),face_renumber[i]) =

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.