From 266f2a28b80a5aada004a24c72b9de59af15533b Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Thu, 17 Sep 2020 20:09:08 +0200 Subject: Fix few compilation warnings (shift) (#1310) * fix << declaration of galilean_shift shadows a member of WarpX >> * fix << unused mu_stag >> * fix << unused uxp, uyp, uzp >> * renamed galilean_shift (member variable of WarpX class) into m_galilean_shift * renamed v_galilean to m_v_galilean when appropriate * fixed bug introduced in latest commit * fix <> * Update Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp Co-authored-by: Axel Huebl Co-authored-by: Axel Huebl --- Source/Particles/Resampling/LevelingThinning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Particles/Resampling/LevelingThinning.cpp') diff --git a/Source/Particles/Resampling/LevelingThinning.cpp b/Source/Particles/Resampling/LevelingThinning.cpp index d3ffc9530..0fc347241 100644 --- a/Source/Particles/Resampling/LevelingThinning.cpp +++ b/Source/Particles/Resampling/LevelingThinning.cpp @@ -55,7 +55,7 @@ void LevelingThinning::operator() (WarpXParIter& pti, const int lev, // The particles that are in the cell `i_cell` are // given by the `indices[cell_start:cell_stop]` const auto cell_start = cell_offsets[i_cell]; - const auto cell_stop = cell_offsets[i_cell+1]; + const auto cell_stop = static_cast(cell_offsets[i_cell+1]); const int cell_numparts = cell_stop - cell_start; // do nothing for cells without particles -- cgit v1.2.3