ImpactX
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: Chad Mitchell, Axel Huebl
8  * License: BSD-3-Clause-LBNL
9  */
10 #ifndef IMPACTX_DISTRIBUTION_NONE
11 #define IMPACTX_DISTRIBUTION_NONE
12 
13 #include <AMReX_Random.H>
14 #include <AMReX_REAL.H>
15 
16 
17 namespace impactx::distribution
18 {
19  struct None
20  {
23  None()
24  {
25  }
26 
41  amrex::ParticleReal & x,
42  amrex::ParticleReal & y,
43  amrex::ParticleReal & t,
44  amrex::ParticleReal & px,
45  amrex::ParticleReal & py,
46  amrex::ParticleReal & pt,
47  [[maybe_unused]] amrex::RandomEngine const& engine) const
48  {
49  using namespace amrex::literals;
50 
51  x = 0_prt;
52  y = 0_prt;
53  t = 0_prt;
54  px = 0_prt;
55  py = 0_prt;
56  pt = 0_prt;
57  }
58  };
59 
60 } // namespace impactx::distribution
61 
62 #endif // IMPACTX_DISTRIBUTION_NONE
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
Definition: All.H:26
Definition: None.H:20
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator()(amrex::ParticleReal &x, amrex::ParticleReal &y, amrex::ParticleReal &t, amrex::ParticleReal &px, amrex::ParticleReal &py, amrex::ParticleReal &pt, [[maybe_unused]] amrex::RandomEngine const &engine) const
Definition: None.H:40
None()
Definition: None.H:23