aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Michael E Rowan <38045958+mrowan137@users.noreply.github.com> 2020-04-28 10:58:28 -0700
committerGravatar GitHub <noreply@github.com> 2020-04-28 10:58:28 -0700
commiteed48168c350b9368ae811124883382c0c6cab68 (patch)
treeb8d15dabb5640e01a7e67ba8b3ad607aaef13189 /Source/Particles/WarpXParticleContainer.cpp
parent67aae2d1378e3a6b62cbee04671e399747a77f2b (diff)
downloadWarpX-eed48168c350b9368ae811124883382c0c6cab68.tar.gz
WarpX-eed48168c350b9368ae811124883382c0c6cab68.tar.zst
WarpX-eed48168c350b9368ae811124883382c0c6cab68.zip
Style change to match the standard (#957)
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index e395023f4..4fddee089 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -57,11 +57,11 @@ WarpXParticleContainer::WarpXParticleContainer (AmrCore* amr_core, int ispecies)
// Initialize temporary local arrays for charge/current deposition
int num_threads = 1;
- #ifdef _OPENMP
- #pragma omp parallel
- #pragma omp single
+#ifdef _OPENMP
+#pragma omp parallel
+#pragma omp single
num_threads = omp_get_num_threads();
- #endif
+#endif
local_rho.resize(num_threads);
local_jx.resize(num_threads);
local_jy.resize(num_threads);
@@ -511,7 +511,7 @@ WarpXParticleContainer::DepositCharge (amrex::Vector<std::unique_ptr<amrex::Mult
// Loop over particle tiles and deposit charge on each level
#ifdef _OPENMP
- #pragma omp parallel
+#pragma omp parallel
{
int thread_num = omp_get_thread_num();
#else