From 00b36d2c49135a7afb0a30baa5fa705fd0d93ebb Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 20 Jan 2021 13:09:29 +0100 Subject: [PATCH] fixed: we do not want to increase the index here it's done by the for-loop. copy-paste issue --- src/ASM/LR/ASMu2Dmx.C | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ASM/LR/ASMu2Dmx.C b/src/ASM/LR/ASMu2Dmx.C index 71b16fff..eb15c03e 100644 --- a/src/ASM/LR/ASMu2Dmx.C +++ b/src/ASM/LR/ASMu2Dmx.C @@ -528,10 +528,8 @@ bool ASMu2Dmx::integrate (Integrand& integrand, int lIndex, if (skipMe) continue; if (!myElms.empty() && !glInt.threadSafe() && - std::find(myElms.begin(), myElms.end(), iel-1) == myElms.end()) { - ++iel; + std::find(myElms.begin(), myElms.end(), iel-1) == myElms.end()) continue; - } std::vector els; std::vector elem_sizes;