Using code in #4801 with addition std::cout<<"data2 "<<data2<<" ijk "<<i<<","<<j<<","<<k<<" c "<<comp<<std::endl; I get data2 (((0,0,0),(1,1,0)),3) ijk 1,1,1 c 0 so does MeshToParticle try to access non-existing z index 1 even though (periodic) grid is only 2x2x1? Am I doing something wrong?