aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhotonParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2019-10-04 16:02:08 -0700
committerGravatar Weiqun Zhang <weiqunzhang@lbl.gov> 2019-10-04 16:02:08 -0700
commit4371d39fadb9667dc16ef5292691002eddbb7726 (patch)
tree370de433cc148a9ee69cf53ed05f3b4bab59c1ec /Source/Particles/PhotonParticleContainer.cpp
parent4e31df96d3e73ddc8d9e876c84a5bdb3989dceb0 (diff)
parent43c72306e540885d0e089de448fee23687f16504 (diff)
downloadWarpX-4371d39fadb9667dc16ef5292691002eddbb7726.tar.gz
WarpX-4371d39fadb9667dc16ef5292691002eddbb7726.tar.zst
WarpX-4371d39fadb9667dc16ef5292691002eddbb7726.zip
Merge branch 'dev' into nodal_aux_3
Diffstat (limited to 'Source/Particles/PhotonParticleContainer.cpp')
-rw-r--r--Source/Particles/PhotonParticleContainer.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp
index 9de441e5c..4a75ec9f3 100644
--- a/Source/Particles/PhotonParticleContainer.cpp
+++ b/Source/Particles/PhotonParticleContainer.cpp
@@ -34,27 +34,27 @@ void PhotonParticleContainer::InitData()
void
PhotonParticleContainer::PushPX(WarpXParIter& pti,
- Cuda::ManagedDeviceVector<Real>& xp,
- Cuda::ManagedDeviceVector<Real>& yp,
- Cuda::ManagedDeviceVector<Real>& zp,
+ Cuda::ManagedDeviceVector<ParticleReal>& xp,
+ Cuda::ManagedDeviceVector<ParticleReal>& yp,
+ Cuda::ManagedDeviceVector<ParticleReal>& zp,
Real dt, DtType a_dt_type)
{
// This wraps the momentum and position advance so that inheritors can modify the call.
auto& attribs = pti.GetAttribs();
// Extract pointers to the different particle quantities
- Real* const AMREX_RESTRICT x = xp.dataPtr();
- Real* const AMREX_RESTRICT y = yp.dataPtr();
- Real* const AMREX_RESTRICT z = zp.dataPtr();
- Real* const AMREX_RESTRICT ux = attribs[PIdx::ux].dataPtr();
- Real* const AMREX_RESTRICT uy = attribs[PIdx::uy].dataPtr();
- Real* const AMREX_RESTRICT uz = attribs[PIdx::uz].dataPtr();
- const Real* const AMREX_RESTRICT Ex = attribs[PIdx::Ex].dataPtr();
- const Real* const AMREX_RESTRICT Ey = attribs[PIdx::Ey].dataPtr();
- const Real* const AMREX_RESTRICT Ez = attribs[PIdx::Ez].dataPtr();
- const Real* const AMREX_RESTRICT Bx = attribs[PIdx::Bx].dataPtr();
- const Real* const AMREX_RESTRICT By = attribs[PIdx::By].dataPtr();
- const Real* const AMREX_RESTRICT Bz = attribs[PIdx::Bz].dataPtr();
+ ParticleReal* const AMREX_RESTRICT x = xp.dataPtr();
+ ParticleReal* const AMREX_RESTRICT y = yp.dataPtr();
+ ParticleReal* const AMREX_RESTRICT z = zp.dataPtr();
+ ParticleReal* const AMREX_RESTRICT ux = attribs[PIdx::ux].dataPtr();
+ ParticleReal* const AMREX_RESTRICT uy = attribs[PIdx::uy].dataPtr();
+ ParticleReal* const AMREX_RESTRICT uz = attribs[PIdx::uz].dataPtr();
+ const ParticleReal* const AMREX_RESTRICT Ex = attribs[PIdx::Ex].dataPtr();
+ const ParticleReal* const AMREX_RESTRICT Ey = attribs[PIdx::Ey].dataPtr();
+ const ParticleReal* const AMREX_RESTRICT Ez = attribs[PIdx::Ez].dataPtr();
+ const ParticleReal* const AMREX_RESTRICT Bx = attribs[PIdx::Bx].dataPtr();
+ const ParticleReal* const AMREX_RESTRICT By = attribs[PIdx::By].dataPtr();
+ const ParticleReal* const AMREX_RESTRICT Bz = attribs[PIdx::Bz].dataPtr();
if (WarpX::do_boosted_frame_diagnostic && do_boosted_frame_diags)
{