From a10d4a27c399b930dc6c9e58030dd0663d42a7ac Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 31 Aug 2022 18:58:42 -0700 Subject: 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 Co-authored-by: Remi Lehe --- Source/Particles/ParticleBoundaryBuffer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Source/Particles/ParticleBoundaryBuffer.cpp') 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 + #include #include #include @@ -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; -- cgit v1.2.3