From bb58c764f9f21f8baac5e2fb1d81fed4983d1242 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Mon, 24 Aug 2020 23:14:30 +0200 Subject: Fix some warnings (#1239) This PR fixes the source of several compilation warnings. Co-authored-by: Axel Huebl --- Source/Laser/LaserParticleContainer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/Laser/LaserParticleContainer.cpp') 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 + #include #include #include #include - 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&) { -- cgit v1.2.3