From 4c10bc39f98be8e6eb39e2177332123de2fd3830 Mon Sep 17 00:00:00 2001 From: flanflanagan Date: Thu, 19 Feb 2015 14:20:22 -0600 Subject: [PATCH] more speed --- src/burnupcalc.cpp | 2 +- src/reactor_facility.cc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/burnupcalc.cpp b/src/burnupcalc.cpp index ad31930..f356f5e 100644 --- a/src/burnupcalc.cpp +++ b/src/burnupcalc.cpp @@ -548,7 +548,7 @@ fuelBundle burnupcalc(fuelBundle core, int mode, int DA_mode, double delta) { }*/ } core.CR = CR_finder(core); - cout << "CR: " << core.CR << endl; + //cout << "CR: " << core.CR << endl; //update core fluences and CR diff --git a/src/reactor_facility.cc b/src/reactor_facility.cc index dbc5bf7..1fbcb2e 100644 --- a/src/reactor_facility.cc +++ b/src/reactor_facility.cc @@ -227,8 +227,8 @@ void ReactorFacility::Tock() { // cycle end update cycle_end_ = ctx->time() + floor(fuel_library_.batch[fuel_library_.batch.size()-1].batch_fluence/(86400*fuel_library_.base_flux*28)); - std::cout << "Cycle Months: " << floor(fuel_library_.batch[fuel_library_.batch.size()-1].batch_fluence/(86400*fuel_library_.base_flux*28)) << std::endl; - std::cout << "Cycle Days: " << fuel_library_.batch[fuel_library_.batch.size()-1].batch_fluence/(86400*fuel_library_.base_flux*28) << std::endl; + //std::cout << "Cycle Months: " << floor(fuel_library_.batch[fuel_library_.batch.size()-1].batch_fluence/(86400*fuel_library_.base_flux*28)) << std::endl; + //std::cout << "Cycle Days: " << fuel_library_.batch[fuel_library_.batch.size()-1].batch_fluence/(86400*fuel_library_.base_flux*28) << std::endl; refuels += 1; @@ -261,14 +261,14 @@ void ReactorFacility::Tock() { /************************output file*********************************/ - std::ofstream outfile; + /*std::ofstream outfile; outfile.open("../output_cyclus_recent.txt", std::ios::app); outfile << " Cycle length: " << ceil(fuel_library_.batch[fuel_library_.batch.size()-1].batch_fluence/(86400*fuel_library_.base_flux*28)) << " [months]"; outfile << "\r\n\r\n\r\n"; - outfile.close(); + outfile.close();*/ /************************End of output file**************************/ if(shutdown != true && record == true){ @@ -579,7 +579,7 @@ double ReactorFacility::blend_next(cyclus::toolkit::ResourceBuff fissle, cyclus::Material::Ptr mat_temp = cyclus::Material::CreateUntracked(frac, materials[i][0]->comp()); mat->Absorb(mat_temp); mass_frac -= frac; - std::cout << "Mass Frac " << mass_frac << std::endl; + //std::cout << "Mass Frac " << mass_frac << std::endl; } } }