Prepares and tests functions to echange halo and make some operations on core points only (zero and sum).