Simplify the Riemann invariant boundary condition.