diff options
author | pants <jaron@kent-dobias.com> | 2016-09-07 20:14:05 -0400 |
---|---|---|
committer | pants <jaron@kent-dobias.com> | 2016-09-07 20:14:05 -0400 |
commit | 3c5671310bdada56f5e087b951ac2e4d6086dfbf (patch) | |
tree | 361c4d0c60cddaf0c286f6d8d4f3e776b990d48a /src/net_notch.c | |
parent | 6590154ae3e4ee97e5e1a2792f9f2ebf716ed251 (diff) | |
download | fuse_networks-3c5671310bdada56f5e087b951ac2e4d6086dfbf.tar.gz fuse_networks-3c5671310bdada56f5e087b951ac2e4d6086dfbf.tar.bz2 fuse_networks-3c5671310bdada56f5e087b951ac2e4d6086dfbf.zip |
got square network embedded working, torus still broken
Diffstat (limited to 'src/net_notch.c')
-rw-r--r-- | src/net_notch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net_notch.c b/src/net_notch.c index c0ab9d7..48dce1e 100644 --- a/src/net_notch.c +++ b/src/net_notch.c @@ -20,7 +20,8 @@ void net_notch(net_t *net, double notch_len, cholmod_common *c) { crosses_center = (v1y >= 0.5 && v2y <= 0.5) || (v1y <= 0.5 && v2y >= 0.5); not_wrapping = fabs(dy) < 0.5; - correct_length = 0 <= v1x + dx / dy * (v1y - 0.5) <= notch_len; + //correct_length = v1x + dx / dy * (v1y - 0.5) <= notch_len; + correct_length = v1x < notch_len && v2x < notch_len; if (crosses_center && not_wrapping && correct_length) { break_edge(net, i, c); |