@@ -135,7 +135,7 @@ struct KernelFillGapsLastFrame
135135 uint32_t const
136136 )
137137 {
138- lastFrame = pb.getLastFrame( DataSpace< dim >( superCellIdx ) );
138+ lastFrame = pb.getLastFrame( superCellIdx );
139139 counterGaps = 0;
140140 counterParticles = 0;
141141 srcGap = 0;
@@ -324,8 +324,8 @@ struct KernelFillGaps
324324 uint32_t const
325325 )
326326 {
327- firstFrame = pb.getFirstFrame( DataSpace< dim >( superCellIdx) );
328- lastFrame = pb.getLastFrame( DataSpace< dim >( superCellIdx) );
327+ firstFrame = pb.getFirstFrame( superCellIdx );
328+ lastFrame = pb.getLastFrame( superCellIdx );
329329 }
330330 );
331331
@@ -512,7 +512,7 @@ struct KernelShiftParticles
512512 using FrameType = typename ParBox::FrameType;
513513 using FramePtr = typename ParBox::FramePtr;
514514
515- constexpr uint32_t dim = Mapping::Dim;
515+ PMACC_CONSTEXPR_CAPTURE uint32_t dim = Mapping::Dim;
516516 constexpr uint32_t frameSize = math::CT::volume< typename FrameType::SuperCellSize >::type::value;
517517 /* number exchanges in 2D=9 and in 3D=27 */
518518 constexpr uint32_t numExchanges = traits::NumberOfExchanges< dim >::value;
@@ -962,7 +962,7 @@ struct KernelCopyGuardToExchange
962962 using namespace particles::operations;
963963 using namespace mappings::threads;
964964
965- constexpr uint32_t dim = T_Mapping::Dim;
965+ PMACC_CONSTEXPR_CAPTURE uint32_t dim = T_Mapping::Dim;
966966 constexpr uint32_t frameSize = math::CT::volume< typename T_ParBox::FrameType::SuperCellSize >::type::value;
967967 constexpr uint32_t numWorkers = T_numWorkers;
968968
@@ -1180,7 +1180,7 @@ struct KernelInsertParticles
11801180 using namespace particles::operations;
11811181 using namespace mappings::threads;
11821182
1183- constexpr uint32_t dim = T_Mapping::Dim;
1183+ PMACC_CONSTEXPR_CAPTURE uint32_t dim = T_Mapping::Dim;
11841184 constexpr uint32_t frameSize = math::CT::volume< typename T_ParBox::FrameType::SuperCellSize >::type::value;
11851185 constexpr uint32_t numWorkers = T_numWorkers;
11861186
0 commit comments