aboutsummaryrefslogtreecommitdiff
path: root/Source/Laser/LaserParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2020-08-24 23:14:30 +0200
committerGravatar GitHub <noreply@github.com> 2020-08-24 14:14:30 -0700
commitbb58c764f9f21f8baac5e2fb1d81fed4983d1242 (patch)
tree3e1f5914d8f1e2be1168b79509718719745ebb93 /Source/Laser/LaserParticleContainer.cpp
parent78f9be325d894bbae867aa279efdfd2212690825 (diff)
downloadWarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.gz
WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.tar.zst
WarpX-bb58c764f9f21f8baac5e2fb1d81fed4983d1242.zip
Fix some warnings (#1239)
This PR fixes the source of several compilation warnings. Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Laser/LaserParticleContainer.cpp')
-rw-r--r--Source/Laser/LaserParticleContainer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Laser/LaserParticleContainer.cpp b/Source/Laser/LaserParticleContainer.cpp
index c80f64d2e..e7b39905b 100644
--- a/Source/Laser/LaserParticleContainer.cpp
+++ b/Source/Laser/LaserParticleContainer.cpp
@@ -12,12 +12,13 @@
#include "Particles/MultiParticleContainer.H"
#include "Particles/Pusher/GetAndSetPosition.H"
+#include <AMReX.H>
+
#include <limits>
#include <cmath>
#include <algorithm>
#include <numeric>
-
using namespace amrex;
using namespace WarpXLaserProfiles;
@@ -234,6 +235,7 @@ LaserParticleContainer::InitData (int lev)
position[1] + (S_X*(Real(i)+0.5_rt))*u_X[1] + (S_Y*(Real(j)+0.5_rt))*u_Y[1],
position[2] + (S_X*(Real(i)+0.5_rt))*u_X[2] + (S_Y*(Real(j)+0.5_rt))*u_Y[2] };
#else
+ amrex::ignore_unused(j);
# if (defined WARPX_DIM_RZ)
return { position[0] + (S_X*(Real(i)+0.5_rt)),
0.0_rt,
@@ -568,7 +570,7 @@ LaserParticleContainer::ComputeWeightMobility (Real Sx, Real Sy)
}
void
-LaserParticleContainer::PushP (int lev, Real dt,
+LaserParticleContainer::PushP (int /*lev*/, Real /*dt*/,
const MultiFab&, const MultiFab&, const MultiFab&,
const MultiFab&, const MultiFab&, const MultiFab&)
{