cellindex calculation in cell update kernel
links initialization