diff options
author | 2022-07-27 12:32:41 -0700 | |
---|---|---|
committer | 2022-07-27 12:32:41 -0700 | |
commit | c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c (patch) | |
tree | 9d29c22eaf68cfdfbe2402b6612c3e11f0c495f3 /Source/Particles/WarpXParticleContainer.H | |
parent | c3015247f9d2d82b444084d55fbcbe8e45f8c211 (diff) | |
download | WarpX-c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c.tar.gz WarpX-c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c.tar.zst WarpX-c7eff60a29dc5e17b5afa1b8c0c1ef5dc452749c.zip |
Starting with the pusher, consistently use ParticleReal (#3259)
* Starting with the pusher, consistently use ParticleReal
* Update benchmarks for background_mcc_dp_psp
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r-- | Source/Particles/WarpXParticleContainer.H | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H index e735927e9..f194255bf 100644 --- a/Source/Particles/WarpXParticleContainer.H +++ b/Source/Particles/WarpXParticleContainer.H @@ -253,11 +253,11 @@ public: /// This returns the total charge for all the particles in this ParticleContainer. /// This is needed when solving Poisson's equation with periodic boundary conditions. /// - amrex::Real sumParticleCharge(bool local = false); + amrex::ParticleReal sumParticleCharge(bool local = false); - std::array<amrex::Real, 3> meanParticleVelocity(bool local = false); + std::array<amrex::ParticleReal, 3> meanParticleVelocity(bool local = false); - amrex::Real maxParticleVelocity(bool local = false); + amrex::ParticleReal maxParticleVelocity(bool local = false); void AddNParticles (int lev, int n, const amrex::ParticleReal* x, const amrex::ParticleReal* y, const amrex::ParticleReal* z, @@ -349,8 +349,8 @@ public: protected: int species_id; - amrex::Real charge; - amrex::Real mass; + amrex::ParticleReal charge; + amrex::ParticleReal mass; PhysicalSpecies physical_species; // Controls boundaries for particles exiting the domain |