diff --git a/examples/alpaka/nbody/nbody.cpp b/examples/alpaka/nbody/nbody.cpp index d8ded82eca..7b76638fdb 100644 --- a/examples/alpaka/nbody/nbody.cpp +++ b/examples/alpaka/nbody/nbody.cpp @@ -204,7 +204,7 @@ struct UpdateKernel for(int blockOffset = 0; blockOffset < problemSize; blockOffset += SharedElementsPerBlock) { for(int j = 0; j < SharedElementsPerBlock; j += ThreadsPerBlock) - sharedView(j) = particles(blockOffset + tbi + j); + sharedView(tbi + j) = particles(blockOffset + tbi + j); alpaka::syncBlockThreads(acc); for(int j = 0; j < SharedElementsPerBlock; ++j) pPInteraction(acc, pis, sharedView(j)); @@ -231,7 +231,8 @@ struct MoveKernel }; template -constexpr auto hasSharedMem = alpaka::accMatchesTags; +constexpr auto hasSharedMem + = alpaka::accMatchesTags; template void run(std::ostream& plotFile)