diff options
author | 2020-09-17 20:09:08 +0200 | |
---|---|---|
committer | 2020-09-17 11:09:08 -0700 | |
commit | 266f2a28b80a5aada004a24c72b9de59af15533b (patch) | |
tree | 641b39f1927e5a27944d02551f9a772e83b7c346 /Source/Particles/Resampling | |
parent | 8d9193675b3292571478803fbe55f6831afe454b (diff) | |
download | WarpX-266f2a28b80a5aada004a24c72b9de59af15533b.tar.gz WarpX-266f2a28b80a5aada004a24c72b9de59af15533b.tar.zst WarpX-266f2a28b80a5aada004a24c72b9de59af15533b.zip |
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 <<comparison of integer expressions of different signedness>>
* Update Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/Resampling')
-rw-r--r-- | Source/Particles/Resampling/LevelingThinning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<int>(cell_offsets[i_cell+1]); const int cell_numparts = cell_stop - cell_start; // do nothing for cells without particles |