aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Pusher/GetAndSetPosition.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/Pusher/GetAndSetPosition.H')
-rw-r--r--Source/Particles/Pusher/GetAndSetPosition.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Particles/Pusher/GetAndSetPosition.H b/Source/Particles/Pusher/GetAndSetPosition.H
index 58dbe02c1..406789579 100644
--- a/Source/Particles/Pusher/GetAndSetPosition.H
+++ b/Source/Particles/Pusher/GetAndSetPosition.H
@@ -155,7 +155,9 @@ struct SetParticlePosition
#if defined(WARPX_DIM_RZ)
RType* AMREX_RESTRICT m_theta;
#endif
- SetParticlePosition (WarpXParIter& a_pti, int a_offset = 0) noexcept
+
+ template <typename ptiType>
+ SetParticlePosition (const ptiType& a_pti, int a_offset = 0) noexcept
{
auto& aos = a_pti.GetArrayOfStructs();
m_structs = aos().dataPtr() + a_offset;