1#ifdef REMORA_USE_PARTICLES
3#include <AMReX_ParticleInterpolators.H>
24 const auto plo =
geom.ProbLoArray();
25 const auto dxi =
geom.InvCellSizeArray();
34 auto p =
ptd.m_aos[
i];
65 pc.copyParticles(*
this,
true);
71 const auto plo =
geom.ProbLoArray();
72 const auto dxi =
geom.InvCellSizeArray();
75#pragma omp parallel if (Gpu::notInLaunchRegion())
77 for (
typename PCType::ParIterType
pti(
pc,
lev);
pti.isValid(); ++
pti)
79 auto&
aos =
pti.GetArrayOfStructs();
80 const int np =
aos.numParticles();
83 const Box&
vbx =
pti.validbox();
84 const int ilo =
vbx.smallEnd(0);
85 const int ihi =
vbx.bigEnd(0);
86 const int jlo =
vbx.smallEnd(1);
87 const int jhi =
vbx.bigEnd(1);
92 if (
p.id() <= 0) { return; }
100 const int i = amrex::max(
ilo, amrex::min(
static_cast<int>(amrex::Math::floor(
lx)),
ihi));
101 const int j = amrex::max(
jlo, amrex::min(
static_cast<int>(amrex::Math::floor(
ly)),
jhi));
105 for (
int d = 0;
d < 2; ++
d) {
constexpr amrex::Real one
constexpr amrex::Real zero
mf_h setVal(geomdata.ProbHi(2))
virtual void massDensity(amrex::MultiFab &a_mf, const int &a_lev, const int &a_comp=0) const
void WritePlotFile(const std::string &a_fname, const std::string &a_name, const amrex::Vector< amrex::MultiFab > &a_xy) const
virtual amrex::Vector< std::string > varNames() const