diff options
author | 2019-09-10 16:06:04 -0700 | |
---|---|---|
committer | 2019-09-10 16:06:04 -0700 | |
commit | f79f8b47a6944451e1686242d42542facff1371e (patch) | |
tree | 0a7f2b83a154ecb46faed5d8ca6f9dfe207a77fa /Source/Laser/LaserProfiles.cpp | |
parent | 92ca33e8f280f91b46be678e4a227ab7da7b758d (diff) | |
download | WarpX-f79f8b47a6944451e1686242d42542facff1371e.tar.gz WarpX-f79f8b47a6944451e1686242d42542facff1371e.tar.zst WarpX-f79f8b47a6944451e1686242d42542facff1371e.zip |
add restrict to pointer parameters of laser functions
Diffstat (limited to 'Source/Laser/LaserProfiles.cpp')
-rw-r--r-- | Source/Laser/LaserProfiles.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Laser/LaserProfiles.cpp b/Source/Laser/LaserProfiles.cpp index 80197b54a..704107c2d 100644 --- a/Source/Laser/LaserProfiles.cpp +++ b/Source/Laser/LaserProfiles.cpp @@ -18,8 +18,8 @@ using namespace amrex; */ void LaserParticleContainer::gaussian_laser_profile ( - const int np, Real const * const Xp, Real const * const Yp, - Real t, Real * const amplitude) + const int np, Real const * AMREX_RESTRICT const Xp, Real const * AMREX_RESTRICT const Yp, + Real t, Real * AMREX_RESTRICT const amplitude) { Complex I(0,1); // Calculate a few factors which are independent of the macroparticle @@ -90,8 +90,8 @@ LaserParticleContainer::gaussian_laser_profile ( */ void LaserParticleContainer::harris_laser_profile ( - const int np, Real const * const Xp, Real const * const Yp, - Real t, Real * const amplitude) + const int np, Real const * AMREX_RESTRICT const Xp, Real const * AMREX_RESTRICT const Yp, + Real t, Real * AMREX_RESTRICT const amplitude) { // This function uses the Harris function as the temporal profile of the pulse const Real omega0 = 2.*MathConst::pi*PhysConst::c/wavelength; |