summaryrefslogtreecommitdiff
path: root/order.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'order.cpp')
-rw-r--r--order.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/order.cpp b/order.cpp
index 64a35a3..6c61d3e 100644
--- a/order.cpp
+++ b/order.cpp
@@ -103,7 +103,7 @@ int main(int argc, char* argv[]) {
for (unsigned i = 0; i < G.edges.size(); i++) {
const AztecDiamond::Edge& e = G.edges[i];
const AztecDiamond::Vertex& vt = *e.tail;
- const AztecDiamond::Vertex& vh = *e.head;
+ const AztecDiamond::Vertex& vh = *e.head;
data_x[vt.index] += avgProbabilities[i] * (vt.coordinate[0] - vh.coordinate[0]);
data_y[vt.index] += avgProbabilities[i] * (vt.coordinate[1] - vh.coordinate[1]);
data_x[vh.index] += avgProbabilities[i] * (vt.coordinate[0] - vh.coordinate[0]);