From 44d2820498c9708d543facecf39ce82acb7f016f Mon Sep 17 00:00:00 2001
From: Baptiste Mouginot <mouginot.baptiste@gmail.com>
Date: Wed, 19 Mar 2014 09:05:28 +0000
Subject: [PATCH] bug correction in Weighted Distances Method

git-svn-id: svn+ssh://svn.in2p3.fr/class@225 0e7d625b-0364-4367-a6be-d5be4a48d228
---
 source/trunk/src/DataBank.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/trunk/src/DataBank.cxx b/source/trunk/src/DataBank.cxx
index 1e08df958..e1af75548 100755
--- a/source/trunk/src/DataBank.cxx
+++ b/source/trunk/src/DataBank.cxx
@@ -1307,7 +1307,7 @@ EvolutionData DataBank<IsotopicVector>::GetClosest(IsotopicVector isotopicvector
 
 	if(fWeightedDistance)
 	{
-		Distance(isotopicvector.GetActinidesComposition()
+		distance = Distance(isotopicvector.GetActinidesComposition()
 			 * evolutiondb.begin()->second.GetIsotopicVectorAt(t).GetActinidesComposition().GetSumOfAll()
 			 / isotopicvector.GetActinidesComposition().GetSumOfAll(),
 			 evolutiondb.begin()->second);
-- 
GitLab