From 881ba5e225b379c6cb62dc8141212bc3382638a8 Mon Sep 17 00:00:00 2001 From: Baptiste LENIAU <baptiste.leniau@subatech.in2p3.fr> Date: Mon, 31 Aug 2015 11:58:46 +0000 Subject: [PATCH] Solve a round error leading not to load the reactor ... git-svn-id: svn+ssh://svn.in2p3.fr/class@721 0e7d625b-0364-4367-a6be-d5be4a48d228 --- source/branches/BaM_Dev/src/FabricationPlant.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/branches/BaM_Dev/src/FabricationPlant.cxx b/source/branches/BaM_Dev/src/FabricationPlant.cxx index 9ac3f825a..40918aa77 100644 --- a/source/branches/BaM_Dev/src/FabricationPlant.cxx +++ b/source/branches/BaM_Dev/src/FabricationPlant.cxx @@ -123,7 +123,9 @@ DBGL double R_BU = R_Fuel.second; double R_Power = GetParc()->GetReactor()[ReactorId]->GetPower(); double R_HMMass = GetParc()->GetReactor()[ReactorId]->GetHeavyMetalMass(); - cSecond R_CycleTime = cSecond (R_BU / R_Power * R_HMMass * 1e9 *3600*24); + cSecond R_CycleTime = (cSecond) (R_BU*1e9 / (R_Power) * R_HMMass * 3600 * 24); + + if( R_CycleTime < GetCycleTime()) { ERROR << "Reactor Cycle Time is shorter than Fabrication Time of the fuel, we cannot deal it upto now!!!" << endl; -- GitLab