changed order of halo update to be consistent with fortran