From f7b4ddf928e28c8d6a1ceef312ff12bd20d91900 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Wed, 22 Feb 2017 21:40:08 +0100
Subject: [PATCH] Fixing test for medium scale

---
 src/DLB/LB_Model.hpp                | 2 +-
 src/Vector/vector_dist_dlb_test.hpp | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/DLB/LB_Model.hpp b/src/DLB/LB_Model.hpp
index d8f65aaf6..fabfab4a6 100644
--- a/src/DLB/LB_Model.hpp
+++ b/src/DLB/LB_Model.hpp
@@ -50,7 +50,7 @@ struct ModelSquare
 
 	template<typename Decomposition, typename vector> inline void addComputation(Decomposition & dec, const vector & vd, size_t v, size_t p)
 	{
-		dec.addComputationCost(v, 1);
+		dec.addComputationCost(v, factor);
 	}
 
 	template<typename Decomposition> inline void applyModel(Decomposition & dec, size_t v)
diff --git a/src/Vector/vector_dist_dlb_test.hpp b/src/Vector/vector_dist_dlb_test.hpp
index 27c46d9b3..8abed0d80 100644
--- a/src/Vector/vector_dist_dlb_test.hpp
+++ b/src/Vector/vector_dist_dlb_test.hpp
@@ -43,6 +43,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_dlb_test_part )
 	vd.ghost_get<>();
 
 	ModelSquare md;
+	md.factor = 10;
 	vd.addComputationCosts(md);
 	vd.getDecomposition().decompose();
 	vd.map();
-- 
GitLab