Applies field boundary conditions