diff options
author | 2020-01-28 13:24:49 -0800 | |
---|---|---|
committer | 2020-01-28 13:24:49 -0800 | |
commit | 80074a19c67a17a9b8169dc64004322bbd0c31b5 (patch) | |
tree | bc5f1c513e58c9fb5e51b43bceaad0c02eda4576 /Source/Particles/RigidInjectedParticleContainer.cpp | |
parent | f5328965e6bcb338e50be09bb9fa6af8ccc6a6e6 (diff) | |
download | WarpX-80074a19c67a17a9b8169dc64004322bbd0c31b5.tar.gz WarpX-80074a19c67a17a9b8169dc64004322bbd0c31b5.tar.zst WarpX-80074a19c67a17a9b8169dc64004322bbd0c31b5.zip |
switch deposition, gather, and pushers to use the get / set position functor
Diffstat (limited to 'Source/Particles/RigidInjectedParticleContainer.cpp')
-rw-r--r-- | Source/Particles/RigidInjectedParticleContainer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/Particles/RigidInjectedParticleContainer.cpp b/Source/Particles/RigidInjectedParticleContainer.cpp index 4d4aedb0e..fc41fd3d2 100644 --- a/Source/Particles/RigidInjectedParticleContainer.cpp +++ b/Source/Particles/RigidInjectedParticleContainer.cpp @@ -366,11 +366,6 @@ RigidInjectedParticleContainer::PushP (int lev, Real dt, #pragma omp parallel #endif { -#ifdef _OPENMP - int thread_num = omp_get_thread_num(); -#else - int thread_num = 0; -#endif for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti) { const Box& box = pti.validbox(); @@ -401,7 +396,7 @@ RigidInjectedParticleContainer::PushP (int lev, Real dt, FieldGather(pti, Exp, Eyp, Ezp, Bxp, Byp, Bzp, &exfab, &eyfab, &ezfab, &bxfab, &byfab, &bzfab, Ex.nGrow(), e_is_nodal, - 0, np, thread_num, lev, lev); + 0, np, lev, lev); // Save the position and momenta, making copies auto uxp_save = uxp; |