Skip to content

Commit

Permalink
Fix ParticleMesh test after AMReX-Codes#2475 (AMReX-Codes#2520)
Browse files Browse the repository at this point in the history
Remove some inadvertent changes to the ParticleMesh test.
  • Loading branch information
atmyers authored Dec 8, 2021
1 parent 6780dbf commit acf8694
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Tests/Particles/ParticleMesh/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,6 @@ void testParticleMesh (TestParams& parms)
});
});

amrex::ParticleToMesh(myPC, partMF, 0,
[=] AMREX_GPU_DEVICE (const MyParticleContainer::ParticleType& p,
amrex::Array4<amrex::Real> const& rho)
{
ParticleInterpolator::Nearest interp(p, plo, dxi);

interp.ParticleToMesh(p, rho, 0, 0, 1,
[=] AMREX_GPU_DEVICE (const MyParticleContainer::ParticleType& /*p*/,
int /*comp*/)
{
return 1.0; // no weighting
});
});

MultiFab acceleration(ba, dmap, AMREX_SPACEDIM, 1);
acceleration.setVal(5.0);

Expand All @@ -113,7 +99,7 @@ void testParticleMesh (TestParams& parms)
{
ParticleInterpolator::Linear interp(p, plo, dxi);

interp.MeshToParticle(p, acc, 0, 0, nc,
interp.MeshToParticle(p, acc, 0, 1+AMREX_SPACEDIM, nc,
[=] AMREX_GPU_DEVICE (amrex::Array4<const amrex::Real> const& arr,
int i, int j, int k, int comp)
{
Expand Down

0 comments on commit acf8694

Please sign in to comment.