write ghost nodes just before velocity calculations