From a6847bc792a0a4f248e0b8d9b3140b044477a70b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 11 Aug 2015 19:57:57 -0500 Subject: [PATCH] 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. --- source/fe/mapping_q1.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.39.5