moving location of initialization of cached coords vector so that ghost data are set up correctly