Add a function to locate and create ghost cells