 Non uniform gridding can lead to spurious charges at the interface boundary, as the zero divergence conditions are not maintained when the grid is not uniform along an interface boundary.E and H field continuity can be maintained to circumvent this problem by enforcing weak continuity across the interface using basis functions, as is done in FEM.Perfectly matched layer (PML) boundary conditions can also be used to truncate the grid, and avoid meshing empty space.