- const float omega = 1.8; // Marginally better than 1.6, it seems.
-
- // From https://en.wikipedia.org/wiki/Successive_over-relaxation.
- float sigma_u = A12 * diff_flow.y;
- diff_flow.x += omega * ((b.x - sigma_u) * inv_A11 - diff_flow.x);
- float sigma_v = A12 * diff_flow.x;
- diff_flow.y += omega * ((b.y - sigma_v) * inv_A22 - diff_flow.y);
+ // From https://en.wikipedia.org/wiki/Successive_over-relaxation.
+ float sigma_u = A12 * diff_flow.y;
+ diff_flow.x += omega * ((b.x - sigma_u) * inv_A11 - diff_flow.x);
+ float sigma_v = A12 * diff_flow.x;
+ diff_flow.y += omega * ((b.y - sigma_v) * inv_A22 - diff_flow.y);
+ }