diff options
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 571de6c4e..a7e5b82da 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -631,8 +631,9 @@ Real WarpXParticleContainer::sumParticleCharge(bool local) { amrex::Real total_charge = 0.0; - const int nlevels = finestLevel(); - for (int lev = 0; lev < nlevels; ++lev) + const int nLevels = finestLevel(); + + for (int lev = 0; lev < nLevels; ++lev) { #ifdef _OPENMP |