Commit 5ed40e41 authored by Misbah Mubarak's avatar Misbah Mubarak

Safety check on num_nodes

parent bb71bdc0
......@@ -384,6 +384,8 @@ int main(
num_nodes = num_groups * num_routers_per_grp * (num_routers_per_grp / 2);
num_nodes_per_grp = num_routers_per_grp * (num_routers_per_grp / 2);
assert(num_nodes);
if(lp_io_dir[0])
{
do_lp_io = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment