Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic topologies #1

Open
apik opened this issue Nov 27, 2013 · 0 comments
Open

Generic topologies #1

apik opened this issue Nov 27, 2013 · 0 comments
Assignees
Labels

Comments

@apik
Copy link
Owner

apik commented Nov 27, 2013

For input file

generictopology T1=
   (-2,2)(-1,1)(1,2)(1,3)(2,4)(4,3)(4,3):
    p1,p2,p3,p4,p5;

generictopology T2=
    (-2,2)(-1,1)(3,1)(3,2)(3,4)(4,1)(2,4):
     p1,p2,p3,p4,p5;

Mapping works with topology T2 only, if i change in

https://github.com/apik/diana/blob/master/src/topology.c#L1193

  /*Checking can topology be changed:*/
   if (first_changed_vertex>last_vertex){
      top_let(i_topology, r_topology);/*Copy original topology to new */
      return(0);
   }/*if (first_changed_vertex>last_vertex)*/

(greater) sign to >= (greate or equal)

  /*Checking can topology be changed:*/
   if (first_changed_vertex>=last_vertex){
      top_let(i_topology, r_topology);/*Copy original topology to new */
      return(0);
   }/*if (first_changed_vertex>last_vertex)*/

But topology T1 does not work in both variants.
I also tried T1 with one of lines (1,3) or (2,4) shrinked.

@ghost ghost assigned mtentukov Nov 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants