From: Wolfgang Bangerth Date: Wed, 12 Aug 2015 00:57:57 +0000 (-0500) Subject: Fix a loop. X-Git-Tag: v8.4.0-rc2~631^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1332%2Fhead;p=dealii.git Fix a loop. 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. --- diff --git a/source/fe/mapping_q1.cc b/source/fe/mapping_q1.cc index 58cfd8ceb3..8d61241f3d 100644 --- a/source/fe/mapping_q1.cc +++ b/source/fe/mapping_q1.cc @@ -522,16 +522,16 @@ MappingQ1::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,