Skip to content

Commit 17bd7b6

Browse files
committedSep 11, 2024
Revert declaration of SetParticlePosition attributes
1 parent 1f17ca0 commit 17bd7b6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎Source/Particles/Pusher/GetAndSetPosition.H

+7
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,16 @@ struct SetParticlePosition
169169
{
170170
using RType = amrex::ParticleReal;
171171

172+
#if defined(WARPX_DIM_3D)
172173
RType* AMREX_RESTRICT m_x;
173174
RType* AMREX_RESTRICT m_y;
174175
RType* AMREX_RESTRICT m_z;
176+
#elif defined(WARPX_DIM_RZ) || defined(WARPX_DIM_XZ)
177+
RType* AMREX_RESTRICT m_x;
178+
RType* AMREX_RESTRICT m_z;
179+
#elif defined(WARPX_DIM_1D_Z)
180+
RType* AMREX_RESTRICT m_z;
181+
#endif
175182

176183
#if defined(WARPX_DIM_RZ)
177184
RType* AMREX_RESTRICT m_theta;

0 commit comments

Comments
 (0)