Added function to set occupation gridpoint