Commit def553154fb4ba0269dc29112009c408eba93e28

Authored by Jiaming Guo
1 parent 6765b32b

fixed extended hilbert curve bugs

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
... ... @@ -1278,7 +1278,7 @@ namespace stim {
1278 1278 std::cout << "infeasible connection between inlets!" << std::endl;
1279 1279  
1280 1280 if (upper)
1281   - hilbert_curve(i, &tmp_v[0], order, dl, 1, !invert, RIGHT);
  1281 + hilbert_curve(i, &tmp_v[0], order, dl, 1, !invert, LEFT);
1282 1282 else
1283 1283 hilbert_curve(i, &tmp_v[0], order, dl, 1, !invert, RIGHT);
1284 1284  
... ... @@ -1375,7 +1375,7 @@ namespace stim {
1375 1375 if (upper)
1376 1376 hilbert_curve(i, &tmp_v[0], order, dl, 0, !invert, LEFT);
1377 1377 else
1378   - hilbert_curve(i, &tmp_v[0], order, dl, 0, !invert, LEFT);
  1378 + hilbert_curve(i, &tmp_v[0], order, dl, 0, !invert, RIGHT);
1379 1379  
1380 1380 if (tmp_v[1] != bus_v[1])
1381 1381 outlet[i].V.push_back(bus_v);
... ...