Adds support for any grid coniguration for halo exchange