]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a loop. 1332/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 12 Aug 2015 00:57:57 +0000 (19:57 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 12 Aug 2015 00:57:57 +0000 (19:57 -0500)
The comment in front provides the correct logic, but is not up to date
with the actual code. Bring the code in compliance and update the comment.

source/fe/mapping_q1.cc

index 58cfd8ceb30f60e49507b27df874b8cc33cb9d40..8d61241f3d42ee52c206450bd4192db21a3d9659 100644 (file)
@@ -522,16 +522,16 @@ MappingQ1<dim,spacedim>::update_each (const UpdateFlags in) const
   // add flags if the respective
   // quantities are necessary to
   // compute what we need. note that
-  // some flags appear in both
+  // some flags appear in both the
   // conditions and in subsequent
   // set operations. this leads to
   // some circular logic. the only
   // way to treat this is to
-  // iterate. since there are 4
+  // iterate. since there are 5
   // if-clauses in the loop, it will
-  // take at most 3 iterations to
+  // take at most 5 iterations to
   // converge. do them:
-  for (unsigned int i=0; i<4; ++i)
+  for (unsigned int i=0; i<5; ++i)
     {
       // The following is a little incorrect:
       // If not applied on a face,

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.