Skip to content

Commit cfad08d

Browse files
committed
Remove unnecessary typecasts inside lambdas in particle kernels
These casts only removed const, which does not matter in this case, since the result is passed by value to a function.
1 parent 65457a8 commit cfad08d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/pmacc/particles/ParticlesBase.kernel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)