We prove a Harnack inequality for solutions to $L_A u = 0$ where the elliptic matrix $A$ is adapted to a convex function satisfying minimal geometric conditions. An application to Sobolev inequalities is included.