From 79bf5703d5f9428ed9ddf65a698658d08a31f539 Mon Sep 17 00:00:00 2001
From: Quentin Khan <quentin.khan@inria.fr>
Date: Mon, 8 Jun 2015 14:13:57 +0200
Subject: [PATCH] FChebSymCostKernel: Corrected small mistake in cost
 calcultation of L2L

---
 Src/BalanceTree/FChebSymCostKernel.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/BalanceTree/FChebSymCostKernel.hpp b/Src/BalanceTree/FChebSymCostKernel.hpp
index e106167c6..73a5ba9ea 100644
--- a/Src/BalanceTree/FChebSymCostKernel.hpp
+++ b/Src/BalanceTree/FChebSymCostKernel.hpp
@@ -250,10 +250,10 @@ public:
             if (ChildCells[ChildIndex]) {
                 tmpCost = countFlopsM2MorL2L() + nnodes;
                 flops += tmpCost;
-                ChildCells[ChildIndex]->addCost(flops);
+                ChildCells[ChildIndex]->addCost(tmpCost);
             }
-        flopsL2L += flops;
 
+        flopsL2L += flops;
         countL2L++;
     }
 
-- 
GitLab