Apply DirichletBCs with the "topological" method if using CG.