Version that works solves the cavity problem.
TDM solver implemented.