Router.cc (11666:10d59d546ea2) Router.cc (12071:fd0b4bd769dd)
1/*
2 * Copyright (c) 2008 Princeton University
3 * Copyright (c) 2016 Georgia Institute of Technology
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 227 unchanged lines hidden (view full) ---

236void
237Router::resetStats()
238{
239 for (int j = 0; j < m_virtual_networks; j++) {
240 for (int i = 0; i < m_input_unit.size(); i++) {
241 m_input_unit[i]->resetStats();
242 }
243 }
1/*
2 * Copyright (c) 2008 Princeton University
3 * Copyright (c) 2016 Georgia Institute of Technology
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 227 unchanged lines hidden (view full) ---

236void
237Router::resetStats()
238{
239 for (int j = 0; j < m_virtual_networks; j++) {
240 for (int i = 0; i < m_input_unit.size(); i++) {
241 m_input_unit[i]->resetStats();
242 }
243 }
244
245 m_switch->resetStats();
246 m_sw_alloc->resetStats();
244}
245
246void
247Router::printFaultVector(ostream& out)
248{
249 int temperature_celcius = BASELINE_TEMPERATURE_CELCIUS;
250 int num_fault_types = m_network_ptr->fault_model->number_of_fault_types;
251 float fault_vector[num_fault_types];

--- 45 unchanged lines hidden ---
247}
248
249void
250Router::printFaultVector(ostream& out)
251{
252 int temperature_celcius = BASELINE_TEMPERATURE_CELCIUS;
253 int num_fault_types = m_network_ptr->fault_model->number_of_fault_types;
254 float fault_vector[num_fault_types];

--- 45 unchanged lines hidden ---