Skip to content
Snippets Groups Projects
Commit ae0c2a62 authored by Baptiste LENIAU's avatar Baptiste LENIAU
Browse files

Add SetBuildFirstGuess function. This function change the initialization value...

Add SetBuildFirstGuess function. This function change the initialization value of the BuildFuel algorithm (in Equivalence.cxx) . Its aim is to accelerate the algorithm convergence

git-svn-id: svn+ssh://svn.in2p3.fr/class@487 0e7d625b-0364-4367-a6be-d5be4a48d228
parent fadd318a
No related branches found
No related tags found
No related merge requests found
......@@ -133,11 +133,11 @@ void EquivalenceModel::GuessLambda(vector<double>& lambda,int FirstStockID, int
LAMBDA_TOT+=lambda[i] ;
if( LAMBDA_TOT == 0 ) //Initialization je cherche les lambda telle que j'ai 5% de HM !!!
if( LAMBDA_TOT == 0 ) //Initialization Looking for lambda such as the fissile content is GetBuildFuelFirstGuess() of HM
{ //cout<<"INITIALIZATION"<<endl;
double MASS = 0 ;
int ID_max = 0;
while( MASS < 0.05*HMMass )
while( MASS < GetBuildFuelFirstGuess()*HMMass )
{
double StockMass = Stocks[ID_max].GetTotalMass() * 1e6;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment