@@ -169,11 +169,11 @@ struct port_grp {
/*
* A struct t_switch is used to represent a switch as placed in a torus.
*
- * A t_switch used to build an N-dimensional torus will have N+1 port groups,
+ * A t_switch used to build an N-dimensional torus will have 2N+1 port groups,
* used as follows, assuming 0 <= d < N:
* port_grp[2d] => links leaving in negative direction for coordinate d
* port_grp[2d+1] => links leaving in positive direction for coordinate d
- * port_grp[N] => endpoints local to switch; i.e., hosts on switch
+ * port_grp[2N] => endpoints local to switch; i.e., hosts on switch
*
* struct link objects referenced by a t_switch are assumed to be oriented:
* traversing a link from link.end[0] to link.end[1] is always in the positive