All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 8c5e2867 authored by Christopher Alfeld's avatar Christopher Alfeld

Improved the OPTIMAL_SCORE routine. It wasn't taking into account all the

direct_link scores that pop up.
parent 37071d23
......@@ -21,7 +21,8 @@
// Purely heuristic
#define OPTIMAL_SCORE(edges,nodes) (nodes*SCORE_PNODE + \
nodes/5.0*SCORE_SWITCH + \
edges*(SCORE_INTRASWITCH_LINK*4+\
edges*((SCORE_INTRASWITCH_LINK+ \
SCORE_DIRECT_LINK*2)*4+\
SCORE_INTERSWITCH_LINK)/5.0)
tb_pgraph PG(1,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