From 67607b970ee2c3f6f5d8e537289093eabe75c794 Mon Sep 17 00:00:00 2001 From: Robert Carlsen Date: Thu, 21 May 2015 16:12:48 -0500 Subject: [PATCH] fix var name style --- src/reactor.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/reactor.cc b/src/reactor.cc index b6bf1e9c78..e8d30ecb4d 100644 --- a/src/reactor.cc +++ b/src/reactor.cc @@ -191,13 +191,13 @@ std::set::Ptr> Reactor::GetMatlRequests() { if (exit_time() != -1) { // the +1 accounts for the fact that the reactor is alive and gets to // operate during its exit_time time step. - int tleft = exit_time() - context()->time() + 1; - int tleftcycle = cycle_time + refuel_time - cycle_step; - double ncyclesleft = static_cast(tleft - tleftcycle) / + int t_left = exit_time() - context()->time() + 1; + int t_left_cycle = cycle_time + refuel_time - cycle_step; + double n_cycles_left = static_cast(t_left - t_left_cycle) / static_cast(cycle_time + refuel_time); - ncyclesleft = ceil(ncyclesleft); - int nneed = std::max(0.0, ncyclesleft * n_assem_batch - n_assem_fresh); - n_assem_order = std::min(n_assem_order, nneed); + n_cycles_left = ceil(n_cycles_left); + int n_need = std::max(0.0, n_cycles_left * n_assem_batch - n_assem_fresh); + n_assem_order = std::min(n_assem_order, n_need); } if (n_assem_order == 0) {