ImpactX
Loading...
Searching...
No Matches
Empty.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_EMPTY_H
11#define IMPACTX_DISTRIBUTION_EMPTY_H
12
14
15#include <AMReX_Random.H>
16#include <AMReX_REAL.H>
17
18
20{
21 struct Empty
22 {
26 {
27 }
28
36 void initialize ([[maybe_unused]] amrex::ParticleReal bunch_charge, [[maybe_unused]] RefPart const & ref)
37 {
38 }
39
44 void
46 {
47 }
48
63 amrex::ParticleReal & x,
64 amrex::ParticleReal & y,
65 amrex::ParticleReal & t,
66 amrex::ParticleReal & px,
67 amrex::ParticleReal & py,
68 amrex::ParticleReal & pt,
69 [[maybe_unused]] amrex::RandomEngine const& engine) const
70 {
71 using namespace amrex::literals;
72
73 x = 0_prt;
74 y = 0_prt;
75 t = 0_prt;
76 px = 0_prt;
77 py = 0_prt;
78 pt = 0_prt;
79 }
80 };
81
82} // namespace impactx::distribution
83
84#endif // IMPACTX_DISTRIBUTION_EMPTY_H
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
Definition All.H:27
@ t
fixed t as the independent variable
Definition ImpactXParticleContainer.H:38
Definition ReferenceParticle.H:31
void finalize()
Definition Empty.H:45
Empty()
Definition Empty.H:25
void initialize(amrex::ParticleReal bunch_charge, RefPart const &ref)
Definition Empty.H:36
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, amrex::RandomEngine const &engine) const
Definition Empty.H:62