Skip to content

Commit

Permalink
static nodes don't get coulomb repulsion, might make things prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Thornton committed May 17, 2012
1 parent 870700d commit eae7d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/reductions.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ var Reduction = Class.extend({
force = [0,0]; force = [0,0];


for (j = 0; j < nodes.length; j++) { for (j = 0; j < nodes.length; j++) {
if (! (nodes[j] === n)) { if ((! (nodes[j] === n)) && (! nodes[j].sourcesink)) {
force = self.vector_sum(force, n.coulomb(nodes[j])); force = self.vector_sum(force, n.coulomb(nodes[j]));
} }
} }
Expand Down

0 comments on commit eae7d13

Please sign in to comment.