aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/Deposition
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/Deposition')
-rwxr-xr-xSource/Particles/Deposition/ChargeDeposition.H8
-rw-r--r--Source/Particles/Deposition/CurrentDeposition.H34
2 files changed, 21 insertions, 21 deletions
diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H
index b9210e67c..eec407a2b 100755
--- a/Source/Particles/Deposition/ChargeDeposition.H
+++ b/Source/Particles/Deposition/ChargeDeposition.H
@@ -18,10 +18,10 @@
* /param q : species charge.
*/
template <int depos_order>
-void doChargeDepositionShapeN(const amrex::Real * const xp,
- const amrex::Real * const yp,
- const amrex::Real * const zp,
- const amrex::Real * const wp,
+void doChargeDepositionShapeN(const amrex::ParticleReal * const xp,
+ const amrex::ParticleReal * const yp,
+ const amrex::ParticleReal * const zp,
+ const amrex::ParticleReal * const wp,
const int * const ion_lev,
const amrex::Array4<amrex::Real>& rho_arr,
const long np_to_depose,
diff --git a/Source/Particles/Deposition/CurrentDeposition.H b/Source/Particles/Deposition/CurrentDeposition.H
index 7a96dab9a..6da0f1155 100644
--- a/Source/Particles/Deposition/CurrentDeposition.H
+++ b/Source/Particles/Deposition/CurrentDeposition.H
@@ -24,13 +24,13 @@
* /param q : species charge.
*/
template <int depos_order>
-void doDepositionShapeN(const amrex::Real * const xp,
- const amrex::Real * const yp,
- const amrex::Real * const zp,
- const amrex::Real * const wp,
- const amrex::Real * const uxp,
- const amrex::Real * const uyp,
- const amrex::Real * const uzp,
+void doDepositionShapeN(const amrex::ParticleReal * const xp,
+ const amrex::ParticleReal * const yp,
+ const amrex::ParticleReal * const zp,
+ const amrex::ParticleReal * const wp,
+ const amrex::ParticleReal * const uxp,
+ const amrex::ParticleReal * const uyp,
+ const amrex::ParticleReal * const uzp,
const int * const ion_lev,
const amrex::Array4<amrex::Real>& jx_arr,
const amrex::Array4<amrex::Real>& jy_arr,
@@ -189,13 +189,13 @@ void doDepositionShapeN(const amrex::Real * const xp,
* \param n_rz_azimuthal_modes: Number of azimuthal modes when using RZ geometry
*/
template <int depos_order>
-void doEsirkepovDepositionShapeN (const amrex::Real * const xp,
- const amrex::Real * const yp,
- const amrex::Real * const zp,
- const amrex::Real * const wp,
- const amrex::Real * const uxp,
- const amrex::Real * const uyp,
- const amrex::Real * const uzp,
+void doEsirkepovDepositionShapeN (const amrex::ParticleReal * const xp,
+ const amrex::ParticleReal * const yp,
+ const amrex::ParticleReal * const zp,
+ const amrex::ParticleReal * const wp,
+ const amrex::ParticleReal * const uxp,
+ const amrex::ParticleReal * const uyp,
+ const amrex::ParticleReal * const uzp,
const int * ion_lev,
const amrex::Array4<amrex::Real>& Jx_arr,
const amrex::Array4<amrex::Real>& Jy_arr,
@@ -397,7 +397,7 @@ void doEsirkepovDepositionShapeN (const amrex::Real * const xp,
Complex xy_mid = xy_mid0; // Throughout the following loop, xy_mid takes the value e^{i m theta}
for (int imode=1 ; imode < n_rz_azimuthal_modes ; imode++) {
// The factor 2 comes from the normalization of the modes
- const Complex djr_cmplx = 2.*sdxi*xy_mid;
+ const Complex djr_cmplx = amrex::Real(2.)*sdxi*xy_mid;
amrex::Gpu::Atomic::Add( &Jx_arr(lo.x+i_new-1+i, lo.y+k_new-1+k, 0, 2*imode-1), djr_cmplx.real());
amrex::Gpu::Atomic::Add( &Jx_arr(lo.x+i_new-1+i, lo.y+k_new-1+k, 0, 2*imode), djr_cmplx.imag());
xy_mid = xy_mid*xy_mid0;
@@ -418,7 +418,7 @@ void doEsirkepovDepositionShapeN (const amrex::Real * const xp,
for (int imode=1 ; imode < n_rz_azimuthal_modes ; imode++) {
// The factor 2 comes from the normalization of the modes
// The minus sign comes from the different convention with respect to Davidson et al.
- const Complex djt_cmplx = -2.*I*(i_new-1 + i + xmin*dxi)*wq*invdtdx/(double)imode*
+ const Complex djt_cmplx = -amrex::Real(2.)*I*(i_new-1 + i + xmin*dxi)*wq*invdtdx/(amrex::Real)imode*
(sx_new[i]*sz_new[k]*(xy_new - xy_mid) + sx_old[i]*sz_old[k]*(xy_mid - xy_old));
amrex::Gpu::Atomic::Add( &Jy_arr(lo.x+i_new-1+i, lo.y+k_new-1+k, 0, 2*imode-1), djt_cmplx.real());
amrex::Gpu::Atomic::Add( &Jy_arr(lo.x+i_new-1+i, lo.y+k_new-1+k, 0, 2*imode), djt_cmplx.imag());
@@ -438,7 +438,7 @@ void doEsirkepovDepositionShapeN (const amrex::Real * const xp,
Complex xy_mid = xy_mid0; // Throughout the following loop, xy_mid takes the value e^{i m theta}
for (int imode=1 ; imode < n_rz_azimuthal_modes ; imode++) {
// The factor 2 comes from the normalization of the modes
- const Complex djz_cmplx = 2.*sdzk*xy_mid;
+ const Complex djz_cmplx = amrex::Real(2.)*sdzk*xy_mid;
amrex::Gpu::Atomic::Add( &Jz_arr(lo.x+i_new-1+i, lo.y+k_new-1+k, 0, 2*imode-1), djz_cmplx.real());
amrex::Gpu::Atomic::Add( &Jz_arr(lo.x+i_new-1+i, lo.y+k_new-1+k, 0, 2*imode), djz_cmplx.imag());
xy_mid = xy_mid*xy_mid0;