Support for wells and boundary conditions.
