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,7 +1278,7 @@ namespace stim {
1278 std::cout << "infeasible connection between inlets!" << std::endl; 1278 std::cout << "infeasible connection between inlets!" << std::endl;
1279 1279
1280 if (upper) 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 else 1282 else
1283 hilbert_curve(i, &tmp_v[0], order, dl, 1, !invert, RIGHT); 1283 hilbert_curve(i, &tmp_v[0], order, dl, 1, !invert, RIGHT);
1284 1284
@@ -1375,7 +1375,7 @@ namespace stim { @@ -1375,7 +1375,7 @@ namespace stim {
1375 if (upper) 1375 if (upper)
1376 hilbert_curve(i, &tmp_v[0], order, dl, 0, !invert, LEFT); 1376 hilbert_curve(i, &tmp_v[0], order, dl, 0, !invert, LEFT);
1377 else 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 if (tmp_v[1] != bus_v[1]) 1380 if (tmp_v[1] != bus_v[1])
1381 outlet[i].V.push_back(bus_v); 1381 outlet[i].V.push_back(bus_v);