ImpactX
src
particles
elements
None.H
Go to the documentation of this file.
1
/* Copyright 2022-2023 The Regents of the University of California, through Lawrence
2
* Berkeley National Laboratory (subject to receipt of any required
3
* approvals from the U.S. Dept. of Energy). All rights reserved.
4
*
5
* This file is part of ImpactX.
6
*
7
* Authors: Axel Huebl
8
* License: BSD-3-Clause-LBNL
9
*/
10
#ifndef IMPACTX_NONE_H
11
#define IMPACTX_NONE_H
12
13
#include "
particles/ImpactXParticleContainer.H
"
14
#include "
mixin/thin.H
"
15
16
#include <
AMReX_Extension.H
>
17
#include <
AMReX_REAL.H
>
18
19
20
namespace
impactx
21
{
22
struct
None
23
:
public
elements::Thin
24
{
25
static
constexpr
auto
name
=
"None"
;
26
using
PType
=
ImpactXParticleContainer::ParticleType
;
27
30
None
()
31
{
32
}
33
35
void
operator()
(
36
ImpactXParticleContainer
&
/* pc */
,
37
int
/* step */
38
) {
39
// nothing to do
40
}
41
43
void
operator()
(
44
ImpactXParticleContainer::iterator
&
/* pti */
,
45
RefPart
& AMREX_RESTRICT
/* ref_part */
46
) {
47
// nothing to do
48
}
49
58
AMREX_GPU_HOST_DEVICE
AMREX_FORCE_INLINE
59
void
operator()
(
60
[[maybe_unused]]
PType
& AMREX_RESTRICT p,
61
[[maybe_unused]] amrex::ParticleReal & AMREX_RESTRICT px,
62
[[maybe_unused]] amrex::ParticleReal & AMREX_RESTRICT py,
63
[[maybe_unused]] amrex::ParticleReal & AMREX_RESTRICT pt,
64
[[maybe_unused]]
RefPart
const
& refpart)
const
65
{
66
// nothing to do
67
}
68
70
using
Thin::operator();
71
};
72
73
}
// namespace impactx
74
75
#endif // IMPACTX_NONE_H
thin.H
impactx::ParIter
Definition:
ImpactXParticleContainer.H:95
amrex::Particle
ImpactXParticleContainer.H
impactx
Definition:
ImpactX.cpp:31
AMReX_Extension.H
impactx::None
Definition:
None.H:22
impactx::elements::Thin
Definition:
thin.H:23
AMReX_REAL.H
AMREX_FORCE_INLINE
#define AMREX_FORCE_INLINE
impactx::None::None
None()
Definition:
None.H:30
AMREX_GPU_HOST_DEVICE
#define AMREX_GPU_HOST_DEVICE
amrex::ParticleContainer< 0, 0, RealSoA::nattribs, IntSoA::nattribs >::ParticleType
Particle< NStructReal, NStructInt > ParticleType
impactx::RefPart
Definition:
ReferenceParticle.H:29
impactx::None::operator()
void operator()(ImpactXParticleContainer &, int)
Definition:
None.H:35
impactx::ImpactXParticleContainer
Definition:
ImpactXParticleContainer.H:126
impactx::None::name
static constexpr auto name
Definition:
None.H:25
Generated by
1.8.13