10#ifndef IMPACTX_TO_FIXED_S_H
11#define IMPACTX_TO_FIXED_S_H
52 amrex::ParticleReal & x,
53 amrex::ParticleReal & y,
54 amrex::ParticleReal & z,
55 amrex::ParticleReal & px,
56 amrex::ParticleReal & py,
57 amrex::ParticleReal & pz)
const
59 using namespace amrex::literals;
63 amrex::ParticleReal
const argd = 1.0_prt + powi<2>(
m_pzd);
65 amrex::ParticleReal
const ptdf = argd > 0.0_prt ? -std::sqrt(argd) : -1.0_prt;
74 amrex::ParticleReal
const arg = 1.0_prt + powi<2>(
m_pzd + pz) + powi<2>(px) + powi<2>(py);
76 amrex::ParticleReal
const ptf = arg > 0.0_prt ? -std::sqrt(arg) : -1.0_prt;
79 x = x - px * z / (
m_pzd + pz);
81 y = y - py * z / (
m_pzd + pz);
84 t = ptf * z / (
m_pzd + pz);
#define AMREX_ASSERT_WITH_MESSAGE(EX, MSG)
#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