/home/runner/work/spades/spades/Source/EntityOps.H Source File

SPADES API: /home/runner/work/spades/spades/Source/EntityOps.H Source File
SPADES API
EntityOps.H
Go to the documentation of this file.
1#ifndef ENTITYOPS_H
2#define ENTITYOPS_H
3
4#include <AMReX.H>
5#include <AMReX_Array4.H>
6#include <AMReX_Print.H>
7#include "ParticleOps.H"
8#include "EntityData.H"
9
10namespace spades::particles {
11
14{
20 template <class PArrs>
21 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void
22 operator()(const amrex::Long n, PArrs& parrs) const
23 {
25 parrs.m_rdata[CommonRealData::timestamp][n] = 0.0;
26 }
27};
28
29} // namespace spades::particles
30#endif
SPADES particles.
Definition EntityData.H:7
@ type_id
Definition ParticleData.H:18
@ timestamp
Definition ParticleData.H:12
static constexpr int UNDEFINED
Undefined entity.
Definition EntityData.H:29
Functor for making a entity undefined.
Definition EntityOps.H:14
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator()(const amrex::Long n, PArrs &parrs) const
Mark a entity as undefined.
Definition EntityOps.H:22