Index out of bounds

Aug 29, 2013 at 11:35 PM
Hello,

Thank you very much for your work on this project.

I am consistently getting an index out of bounds exception. The exception comes from FastExpansionSumZeroElim in Primitives.cs. The following .poly file should reproduce the issue. Any insight you can provide me would be appreciated.

Thank you.

55 2 0 1
0 -3.65466736639159 1.20733694003551 0
1 -3.22908712021438 0.850232712431872 0
2 -2.80350687403717 0.493128484828239 0
3 -2.37792662785996 0.136024257224606 0
4 -1.95234638168275 -0.221079970379027 0
5 -1.52676613550554 -0.57818419798266 0
6 -1.10118588932833 -0.935288425586293 0
7 -0.675605643151119 -1.29239265318993 0
8 -0.250025396973909 -1.64949688079356 0
9 0.175554849203301 -2.00660110839719 0
10 0.532659076806933 -1.58102086221998 0
11 0.889763304410566 -1.15544061604277 0
12 1.2468675320142 -0.729860369865561 0
13 1.60397175961783 -0.304280123688352 0
14 1.96107598722146 0.121300122488858 0
15 2.3181802148251 0.546880368666068 0
16 2.67528444242873 0.972460614843278 0
17 3.03238867003236 1.39804086102049 0
18 3.389492897636 1.8236211071977 0
19 3.19798178685625 1.98431800961933 0
20 3.15133754877291 2.01527485104246 0
21 3.09897423385719 2.03507622039686 0
22 3.04351755736914 2.04272919433979 0
23 2.98774834863477 2.03785002080172 0
24 2.93446310865197 2.02068336191751 0
25 2.88633378185325 1.99209002564532 0
26 2.84577377365487 1.95350380126122 0
27 2.47846656811971 1.51576411947895 0
28 2.11115936258454 1.07802443769668 0
29 1.74385215704938 0.640284755914404 0
30 1.37654495151421 0.20254507413213 0
31 1.00923774597905 -0.235194607650143 0
32 0.641930540443881 -0.672934289432416 0
33 0.274623334908715 -1.11067397121469 0
34 0.23406332671034 -1.14926019559878 0
35 0.185933999911625 -1.17785353187097 0
36 0.132648759928821 -1.19502019075519 0
37 0.0768795511944527 -1.19989936429326 0
38 0.0214228747063983 -1.19224639035032 0
39 -0.0309404402093199 -1.17244502099592 0
40 -0.0775846782926637 -1.1414881795728 0
41 -0.515324360074937 -0.774180974037633 0
42 -0.95306404185721 -0.406873768502468 0
43 -1.39080372363948 -0.0395665629673024 0
44 -1.82854340542176 0.327740642567863 0
45 -2.26628308720403 0.695047848103028 0
46 -2.7040227689863 1.06235505363819 0
47 -3.14176245076858 1.42966225917336 0
48 -3.18840668885192 1.46061910059648 0
49 -3.24077000376764 1.48042046995088 0
50 -3.29622668025569 1.48807344389382 0
51 -3.35199588899006 1.48319427035575 0
52 -3.40528112897286 1.46602761147153 0
53 -3.45341045577158 1.43743427519935 0
54 -3.49397046396996 1.39884805081525 0
55 1
0 0 1 1
1 1 2 1
2 2 3 1
3 3 4 1
4 4 5 1
5 5 6 1
6 6 7 1
7 7 8 1
8 8 9 1
9 9 10 1
10 10 11 1
11 11 12 1
12 12 13 1
13 13 14 1
14 14 15 1
15 15 16 1
16 16 17 1
17 17 18 1
18 18 19 1
19 19 20 1
20 20 21 1
21 21 22 1
22 22 23 1
23 23 24 1
24 24 25 1
25 25 26 1
26 26 27 1
27 27 28 1
28 28 29 1
29 29 30 1
30 30 31 1
31 31 32 1
32 32 33 1
33 33 34 1
34 34 35 1
35 35 36 1
36 36 37 1
37 37 38 1
38 38 39 1
39 39 40 1
40 40 41 1
41 41 42 1
42 42 43 1
43 43 44 1
44 44 45 1
45 45 46 1
46 46 47 1
47 47 48 1
48 48 49 1
49 49 50 1
50 50 51 1
51 51 52 1
52 52 53 1
53 53 54 1
54 54 0 1
0
Coordinator
Aug 30, 2013 at 12:42 AM
You can increase the size of the B and u arrays in CounterClockwiseAdapt from 4 to 5. This will fix the problem. I will update the code tomorrow...
Coordinator
Aug 30, 2013 at 12:44 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.