aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2020-01-30 16:13:23 -0800
committerGravatar GitHub <noreply@github.com> 2020-01-30 16:13:23 -0800
commit5131dd11b09ffcaef5ab3359c9492d56264b663b (patch)
tree01032be675db6c72a5db9485993b3cbd1c3bbcbf /Source/Particles/WarpXParticleContainer.cpp
parent880e9f745a8c3c28edd47dafa11a3d28745e97eb (diff)
parent5faed78bc3ce95b9366ddc94f0ccc6a4acaa853a (diff)
downloadWarpX-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.cpp31
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();