A variational method to avoid locking—independent of the discretization scheme. (6th February 2018)