Module for distributed control using fenics