10#ifndef IMPACTX_TO_FIXED_T_H
11#define IMPACTX_TO_FIXED_T_H
52 amrex::ParticleReal & x,
53 amrex::ParticleReal & y,
54 amrex::ParticleReal &
t,
55 amrex::ParticleReal & px,
56 amrex::ParticleReal & py,
57 amrex::ParticleReal & pt)
const
59 using namespace amrex::literals;
63 constexpr amrex::ParticleReal tol = 1.0e-8_prt;
66 amrex::ParticleReal
const argd = -1.0_prt + powi<2>(
m_ptd);
68 amrex::ParticleReal
const pzdf = argd > 0.0_prt ? std::sqrt(argd) : tol;
77 amrex::ParticleReal
const arg = -1.0_prt + powi<2>(
m_ptd+pt) - powi<2>(px) - powi<2>(py);
79 amrex::ParticleReal
const pzf = arg > 0.0_prt ? std::sqrt(arg) : tol;
87 z = pzf *
t / (
m_ptd + pt);
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
T_ParticleType ParticleType
constexpr T powi(T x) noexcept
@ t
fixed t as the independent variable
Definition ImpactXParticleContainer.H:38