SimpleNetwork.cc (7055:4e24742201d7) | SimpleNetwork.cc (7056:b66b558578bd) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 61 unchanged lines hidden (view full) --- 70 71 // Allocate to and from queues 72 m_toNetQueues.setSize(m_nodes); 73 m_fromNetQueues.setSize(m_nodes); 74 for (int node = 0; node < m_nodes; node++) { 75 m_toNetQueues[node].setSize(m_virtual_networks); 76 m_fromNetQueues[node].setSize(m_virtual_networks); 77 for (int j = 0; j < m_virtual_networks; j++) { | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 61 unchanged lines hidden (view full) --- 70 71 // Allocate to and from queues 72 m_toNetQueues.setSize(m_nodes); 73 m_fromNetQueues.setSize(m_nodes); 74 for (int node = 0; node < m_nodes; node++) { 75 m_toNetQueues[node].setSize(m_virtual_networks); 76 m_fromNetQueues[node].setSize(m_virtual_networks); 77 for (int j = 0; j < m_virtual_networks; j++) { |
78 m_toNetQueues[node][j] = new MessageBuffer( 79 "toNet node "+int_to_string(node)+" j "+int_to_string(j)); 80 m_fromNetQueues[node][j] = new MessageBuffer( 81 "fromNet node "+int_to_string(node)+" j "+int_to_string(j)); | 78 m_toNetQueues[node][j] = 79 new MessageBuffer(csprintf("toNet node %d j %d", node, j)); 80 m_fromNetQueues[node][j] = 81 new MessageBuffer(csprintf("fromNet node %d j %d", node, j)); |
82 } 83 } 84} 85 86void 87SimpleNetwork::init() 88{ 89 Network::init(); --- 205 unchanged lines hidden --- | 82 } 83 } 84} 85 86void 87SimpleNetwork::init() 88{ 89 Network::init(); --- 205 unchanged lines hidden --- |