Set sebastian mode in mesh distributor to handle dirichlet and periodic boundaries in a proper way. Must be generalized.