aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2019-09-10 16:06:04 -0700
committerGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2019-09-10 16:06:04 -0700
commitf79f8b47a6944451e1686242d42542facff1371e (patch)
tree0a7f2b83a154ecb46faed5d8ca6f9dfe207a77fa /Source/Laser/LaserParticleContainer.cpp
parent92ca33e8f280f91b46be678e4a227ab7da7b758d (diff)
downloadWarpX-f79f8b47a6944451e1686242d42542facff1371e.tar.gz
WarpX-f79f8b47a6944451e1686242d42542facff1371e.tar.zst
WarpX-f79f8b47a6944451e1686242d42542facff1371e.zip
add restrict to pointer parameters of laser functions
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r--Source/Laser/LaserParticleContainer.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp
index d57081957..9699ee06b 100644
--- a/Source/Laser/LaserParticleContainer.cpp
+++ b/Source/Laser/LaserParticleContainer.cpp
@@ -611,8 +611,8 @@ LaserParticleContainer::PushP (int lev, Real dt,
void
LaserParticleContainer::calculate_laser_plane_coordinates (
const int np, const int thread_num,
- Real * const AMREX_RESTRICT pplane_Xp,
- Real * const AMREX_RESTRICT pplane_Yp)
+ Real * AMREX_RESTRICT const pplane_Xp,
+ Real * AMREX_RESTRICT const pplane_Yp)
{
Real const * const AMREX_RESTRICT xp = m_xp[thread_num].dataPtr();
Real const * const AMREX_RESTRICT yp = m_yp[thread_num].dataPtr();
@@ -662,8 +662,9 @@ LaserParticleContainer::calculate_laser_plane_coordinates (
*/
void
LaserParticleContainer::update_laser_particle(
- const int np, Real * const puxp, Real * const puyp, Real * const puzp,
- Real * const pwp, Real const * const amplitude, const Real dt,
+ const int np, Real * AMREX_RESTRICT const puxp, Real * AMREX_RESTRICT const puyp,
+ Real * AMREX_RESTRICT const puzp, Real * AMREX_RESTRICT const pwp,
+ Real const * AMREX_RESTRICT const amplitude, const Real dt,
const int thread_num)
{
Real * const AMREX_RESTRICT xp = m_xp[thread_num].dataPtr();