diff options
author | 2020-01-13 15:06:30 -0800 | |
---|---|---|
committer | 2020-01-13 15:06:30 -0800 | |
commit | ed93568fe37da1acaafc6c770607b152e58c2e9b (patch) | |
tree | 76884b5c5b1b5fec1b6993d7645eaff04d9c3424 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 88eba773dd4f56be8e47affdd7c4e78e54e59693 (diff) | |
parent | fc98645e5fe7e1bb6a01ea925d87018e4f518419 (diff) | |
download | WarpX-ed93568fe37da1acaafc6c770607b152e58c2e9b.tar.gz WarpX-ed93568fe37da1acaafc6c770607b152e58c2e9b.tar.zst WarpX-ed93568fe37da1acaafc6c770607b152e58c2e9b.zip |
Merge pull request #615 from atmyers/pragma_fix
wrap openmp pragma in #ifdef _OPENMP
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index f22f94e9b..0d9d4fc1a 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -493,7 +493,9 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) // Update NextID to include particles created in this function int pid; +#ifdef _OPENMP #pragma omp critical (add_plasma_nextid) +#endif { pid = ParticleType::NextID(); ParticleType::NextID(pid+max_new_particles); |