diff options
author | 2020-01-30 16:13:23 -0800 | |
---|---|---|
committer | 2020-01-30 16:13:23 -0800 | |
commit | 5131dd11b09ffcaef5ab3359c9492d56264b663b (patch) | |
tree | 01032be675db6c72a5db9485993b3cbd1c3bbcbf /Source/Particles/WarpXParticleContainer.cpp | |
parent | 880e9f745a8c3c28edd47dafa11a3d28745e97eb (diff) | |
parent | 5faed78bc3ce95b9366ddc94f0ccc6a4acaa853a (diff) | |
download | WarpX-5131dd11b09ffcaef5ab3359c9492d56264b663b.tar.gz WarpX-5131dd11b09ffcaef5ab3359c9492d56264b663b.tar.zst WarpX-5131dd11b09ffcaef5ab3359c9492d56264b663b.zip |
Merge pull request #665 from RemiLehe/remove_fortran_push_position
Remove fortran push position in electrostatic code
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.cpp')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp index 9fc69bc73..7628cfd85 100644 --- a/Source/Particles/WarpXParticleContainer.cpp +++ b/Source/Particles/WarpXParticleContainer.cpp @@ -743,37 +743,6 @@ Real WarpXParticleContainer::maxParticleVelocity(bool local) { } void -WarpXParticleContainer::PushXES (Real dt) -{ - BL_PROFILE("WPC::PushXES()"); - - const int num_levels = finestLevel() + 1; - - for (int lev = 0; lev < num_levels; ++lev) { - const auto& gm = m_gdb->Geom(lev); - const RealBox& prob_domain = gm.ProbDomain(); - for (WarpXParIter pti(*this, lev); pti.isValid(); ++pti) { - auto& particles = pti.GetArrayOfStructs(); - int nstride = particles.dataShape().first; - const long np = pti.numParticles(); - - auto& attribs = pti.GetAttribs(); - auto& uxp = attribs[PIdx::ux]; - auto& uyp = attribs[PIdx::uy]; - auto& uzp = attribs[PIdx::uz]; - - WRPX_PUSH_LEAPFROG_POSITIONS(particles.dataPtr(), nstride, np, - uxp.dataPtr(), uyp.dataPtr(), -#if AMREX_SPACEDIM == 3 - uzp.dataPtr(), -#endif - &dt, - prob_domain.lo(), prob_domain.hi()); - } - } -} - -void WarpXParticleContainer::PushX (amrex::Real dt) { const int nLevels = finestLevel(); |