From 855208a3e2345e076c79402e7bfbeb388d73afeb Mon Sep 17 00:00:00 2001 From: Baptiste LENIAU <baptiste.leniau@subatech.in2p3.fr> Date: Mon, 11 May 2015 16:30:55 +0000 Subject: [PATCH] -Add SetLambdaToErrorCode in order to set the lambda vector to an error code ;) -Prevent a segmentation fault when entering in BuildFuel wit an empty fissile array git-svn-id: svn+ssh://svn.in2p3.fr/class@663 0e7d625b-0364-4367-a6be-d5be4a48d228 --- source/trunk/include/EquivalenceModel.hxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/trunk/include/EquivalenceModel.hxx b/source/trunk/include/EquivalenceModel.hxx index 81e1ef904..a047a574f 100644 --- a/source/trunk/include/EquivalenceModel.hxx +++ b/source/trunk/include/EquivalenceModel.hxx @@ -125,8 +125,10 @@ class EquivalenceModel : public CLASSObject */ //@{ void SetLambda(vector<double>& lambda ,int FirstStockID, int LastStockID, double LAMBDA_TOT); //!< Set individual lambda according to the LAMBDA_TOT (lambda of all stocks) + void SetLambdaToErrorCode(vector<double>& lambda); double LAMBDA_TOT_FOR(double MassNeeded, vector<IsotopicVector> StockArray, string FisOrFer);//!< Calculate the proportion of each stocks in StockArray to take in oder to get a mass of MassNeeded (can be Fer(fertile) or Fis(Fissile)) bool Build_Fuel_According_Lambda(vector<double> &lambda,vector<IsotopicVector> FissilArray, vector<IsotopicVector> FertilArray, double HMMass,IsotopicVector &Fissile, IsotopicVector &Fertile); + //@} /*! -- GitLab