aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.H
diff options
context:
space:
mode:
authorGravatar Kevin Z. Zhu <86268612+KZhu-ME@users.noreply.github.com> 2022-05-24 17:57:51 -0700
committerGravatar GitHub <noreply@github.com> 2022-05-24 17:57:51 -0700
commit0344c42e27c61b286e885889028c7f77725e7f74 (patch)
treeec116dbe570b342c7df3da3e6d620cbdd4032db5 /Source/Particles/PhysicalParticleContainer.H
parenta681d1994aa5748d4faceb658199c1a61d418a79 (diff)
downloadWarpX-0344c42e27c61b286e885889028c7f77725e7f74.tar.gz
WarpX-0344c42e27c61b286e885889028c7f77725e7f74.tar.zst
WarpX-0344c42e27c61b286e885889028c7f77725e7f74.zip
Specify particle precision (#3065)
* Add precision to printed PIC parameters * Added WarpX_PARTICLE_PRECISION as a build option * Update types to ParticleReal * Updated libwarpx to inject particles with correct ParticleReal type * Fix syntax error * Add logic to avoid duplicate definitions * Use correct ParticleReal type in add_particles * Cleaned up code, addressed comments * Update Python/pywarpx/_libwarpx.py Co-authored-by: Peter Scherpelz <31747262+peterscherpelz@users.noreply.github.com> * Removed redundant functions, fixed some typing * Modified template functions * Cast d_w to Real * Fixed failing tests * Cast types to be consistent * removed in-tree-build from pip command * Added GPU device macros to PDim3 methods * rerun tests * Removed unecessary casting, update calls to use PDim3 instead of XDim3 * Refactored comments * Added mcc fields double precision, particles single precision test * Updated casting and formatting * Removed cast, updated declaration Co-authored-by: Peter Scherpelz <peter.scherpelz@modernelectron.com> Co-authored-by: Peter Scherpelz <31747262+peterscherpelz@users.noreply.github.com>
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.H')
-rw-r--r--Source/Particles/PhysicalParticleContainer.H10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.H b/Source/Particles/PhysicalParticleContainer.H
index bc0366adc..47ece0d31 100644
--- a/Source/Particles/PhysicalParticleContainer.H
+++ b/Source/Particles/PhysicalParticleContainer.H
@@ -193,8 +193,8 @@ public:
*/
void AddPlasmaFlux (amrex::Real dt);
- void MapParticletoBoostedFrame (amrex::Real& x, amrex::Real& y, amrex::Real& z,
- amrex::Real& ux, amrex::Real& uy, amrex::Real& uz);
+ void MapParticletoBoostedFrame (amrex::ParticleReal& x, amrex::ParticleReal& y, amrex::ParticleReal& z,
+ amrex::ParticleReal& ux, amrex::ParticleReal& uy, amrex::ParticleReal& uz);
void AddGaussianBeam (
const amrex::Real x_m, const amrex::Real y_m, const amrex::Real z_m,
@@ -210,9 +210,9 @@ public:
amrex::ParticleReal z_shift);
void CheckAndAddParticle (
- amrex::Real x, amrex::Real y, amrex::Real z,
- amrex::Real ux, amrex::Real uy, amrex::Real uz,
- amrex::Real weight,
+ amrex::ParticleReal x, amrex::ParticleReal y, amrex::ParticleReal z,
+ amrex::ParticleReal ux, amrex::ParticleReal uy, amrex::ParticleReal uz,
+ amrex::ParticleReal weight,
amrex::Gpu::HostVector<amrex::ParticleReal>& particle_x,
amrex::Gpu::HostVector<amrex::ParticleReal>& particle_y,
amrex::Gpu::HostVector<amrex::ParticleReal>& particle_z,