aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar levinem <14362448+levinem@users.noreply.github.com> 2019-11-21 20:49:47 -0500
committerGravatar levinem <14362448+levinem@users.noreply.github.com> 2019-11-21 20:49:47 -0500
commit1f64e254435723a952ff3296075ca9a52694dce5 (patch)
tree596a75af156f00bbcd89189c1fa8636c3d4d49c9 /Source/Particles/WarpXParticleContainer.cpp
parent1fd18a4ad2da297a69e3eadec5f76e459d9b638a (diff)
downloadWarpX-1f64e254435723a952ff3296075ca9a52694dce5.tar.gz
WarpX-1f64e254435723a952ff3296075ca9a52694dce5.tar.zst
WarpX-1f64e254435723a952ff3296075ca9a52694dce5.zip
Added a line break between the const int declaration and the for loop. Updated the nLevels variable name to CamelCase.
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp5
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