1#ifdef REMORA_USE_PARTICLES
6#include <AMReX_TracerParticle_mod_K.H>
16void REMORAPC::EvolveParticles (
int a_lev,
37void REMORAPC::AdvectWithFlow (
int a_lev,
54 const auto strttime = amrex::second();
56 const auto plo =
geom.ProbLoArray();
57 const auto dxi =
geom.InvCellSizeArray();
62#pragma omp parallel if (Gpu::notInLaunchRegion())
68 auto&
aos =
ptile.GetArrayOfStructs();
69 auto&
soa =
ptile.GetStructOfArrays();
70 const int n =
aos.numParticles();
74 v_ptr[0] =
soa.GetRealData(REMORAParticlesRealIdxSoA::vx).data();
75 v_ptr[1] =
soa.GetRealData(REMORAParticlesRealIdxSoA::vy).data();
76 v_ptr[2] =
soa.GetRealData(REMORAParticlesRealIdxSoA::vz).data();
92 if (
p.id() <= 0) { return; }
127 Lazy::QueueReduction( [=] ()
mutable {
129 ParallelReduce::Max(
stoptime, ParallelContext::IOProcessorNumberSub(),
130 ParallelContext::CommunicatorSub());
132 Print() <<
"REMORAPC::AdvectWithFlow() time: " <<
stoptime <<
'\n';
mf_h setVal(geomdata.ProbHi(2))
type(t_grid), dimension(ngrids) grid
integer, dimension(ngrids) n