aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/ParticleBoundaryBuffer.cpp
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2022-08-31 18:58:42 -0700
committerGravatar GitHub <noreply@github.com> 2022-09-01 01:58:42 +0000
commita10d4a27c399b930dc6c9e58030dd0663d42a7ac (patch)
tree9e68d92aab22b4cb2b5452bf6e21db1c727657dd /Source/Particles/ParticleBoundaryBuffer.cpp
parentdba95a94fa47ffdabaf14b1a5c853adbf0695e18 (diff)
downloadWarpX-a10d4a27c399b930dc6c9e58030dd0663d42a7ac.tar.gz
WarpX-a10d4a27c399b930dc6c9e58030dd0663d42a7ac.tar.zst
WarpX-a10d4a27c399b930dc6c9e58030dd0663d42a7ac.zip
ABLASTR: Add Nodal Gather Functions (#3357)
Add nodal field gather functions to ABLASTR for scalar and vector fields. This currently only implements 1st order (CIC) shape. Co-authored-by: Remi Lehe <rlehe@lbl.gov> Co-authored-by: Remi Lehe <rlehe@lbl.gov>
Diffstat (limited to 'Source/Particles/ParticleBoundaryBuffer.cpp')
-rw-r--r--Source/Particles/ParticleBoundaryBuffer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Particles/ParticleBoundaryBuffer.cpp b/Source/Particles/ParticleBoundaryBuffer.cpp
index 0eecbe0d3..7877e33d3 100644
--- a/Source/Particles/ParticleBoundaryBuffer.cpp
+++ b/Source/Particles/ParticleBoundaryBuffer.cpp
@@ -9,10 +9,11 @@
#include "EmbeddedBoundary/DistanceToEB.H"
#include "Particles/ParticleBoundaryBuffer.H"
#include "Particles/MultiParticleContainer.H"
-#include "Particles/Gather/ScalarFieldGather.H"
#include "Utils/TextMsg.H"
#include "Utils/WarpXProfilerWrapper.H"
+#include <ablastr/particles/NodalFieldGather.H>
+
#include <AMReX_Geometry.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Reduce.H>
@@ -296,7 +297,7 @@ void ParticleBoundaryBuffer::gatherParticles (MultiParticleContainer& mypc,
amrex::ParticleReal xp, yp, zp;
getPosition(ip, xp, yp, zp);
- amrex::Real phi_value = doGatherScalarFieldNodal(
+ amrex::Real phi_value = ablastr::particles::doGatherScalarFieldNodal(
xp, yp, zp, phiarr, dxi, plo
);
return phi_value < 0.0 ? 1 : 0;