#include <TracerPC.H>
|
template<typename P > |
AMREX_GPU_HOST_DEVICE amrex::IntVect | operator() (P const &p, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const &plo, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const &dxi, const amrex::Box &domain) const noexcept |
|
◆ operator()()
template<typename P >
AMREX_GPU_HOST_DEVICE amrex::IntVect TracerAssignor::operator() |
( |
P const & |
p, |
|
|
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const & |
plo, |
|
|
amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const & |
dxi, |
|
|
const amrex::Box & |
domain |
|
) |
| const |
|
inlinenoexcept |
34 AMREX_D_DECL(
int(amrex::Math::floor((p.pos(0)-plo[0])*dxi[0])),
35 int(amrex::Math::floor((p.pos(1)-plo[1])*dxi[1])),
37 iv[0] += domain.smallEnd()[0];
38 iv[1] += domain.smallEnd()[1];
The documentation for this struct was generated from the following file:
- /home/runner/work/REMORA/REMORA/Source/Particles/TracerPC.H