Ghost nodes set correctly at Dirichlet boundaries