aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/WarpXParticleContainer.H')
-rw-r--r--Source/Particles/WarpXParticleContainer.H64
1 files changed, 32 insertions, 32 deletions
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H
index 5b9a8f487..c58b51fa6 100644
--- a/Source/Particles/WarpXParticleContainer.H
+++ b/Source/Particles/WarpXParticleContainer.H
@@ -156,8 +156,8 @@ public:
amrex::ParticleTile<amrex::Particle<NStructReal, NStructInt>,
NArrayReal, NArrayInt,
amrex::PinnedArenaAllocator>& pinned_tile,
- const int n_external_attr_real,
- const int n_external_attr_int,
+ int n_external_attr_real,
+ int n_external_attr_int,
const amrex::RandomEngine& engine) = 0;
///
@@ -191,7 +191,7 @@ public:
* the time of the deposition.
*/
void DepositCurrent (amrex::Vector<std::array< std::unique_ptr<amrex::MultiFab>, 3 > >& J,
- const amrex::Real dt, const amrex::Real relative_time);
+ amrex::Real dt, amrex::Real relative_time);
/**
* \brief Deposit charge density.
@@ -204,44 +204,44 @@ public:
* \param[in] icomp component of the MultiFab where rho is deposited (old, new)
*/
void DepositCharge (amrex::Vector<std::unique_ptr<amrex::MultiFab> >& rho,
- const bool local = false, const bool reset = false,
- const bool apply_boundary_and_scale_volume = false,
- const bool interpolate_across_levels = true,
- const int icomp = 0);
- void DepositCharge (std::unique_ptr<amrex::MultiFab>& rho, const int lev,
- const bool local = false, const bool reset = false,
- const bool apply_boundary_and_scale_volume = false,
- const int icomp = 0);
+ bool local = false, bool reset = false,
+ bool apply_boundary_and_scale_volume = false,
+ bool interpolate_across_levels = true,
+ int icomp = 0);
+ void DepositCharge (std::unique_ptr<amrex::MultiFab>& rho, int lev,
+ bool local = false, bool reset = false,
+ bool apply_boundary_and_scale_volume = false,
+ int icomp = 0);
std::unique_ptr<amrex::MultiFab> GetChargeDensity(int lev, bool local = false);
virtual void DepositCharge (WarpXParIter& pti,
RealVector const & wp,
- const int * const ion_lev,
+ const int* ion_lev,
amrex::MultiFab* rho,
- const int icomp,
- const long offset,
- const long np_to_depose,
- const int thread_num,
- const int lev,
- const int depos_lev);
+ int icomp,
+ long offset,
+ long np_to_depose,
+ int thread_num,
+ int lev,
+ int depos_lev);
virtual void DepositCurrent (WarpXParIter& pti,
RealVector const & wp,
RealVector const & uxp,
RealVector const & uyp,
RealVector const & uzp,
- int const * const ion_lev,
- amrex::MultiFab* const jx,
- amrex::MultiFab* const jy,
- amrex::MultiFab* const jz,
- long const offset,
- long const np_to_depose,
- int const thread_num,
- int const lev,
- int const depos_lev,
- amrex::Real const dt,
- amrex::Real const relative_time);
+ int const* ion_lev,
+ amrex::MultiFab* jx,
+ amrex::MultiFab* jy,
+ amrex::MultiFab* jz,
+ long offset,
+ long np_to_depose,
+ int thread_num,
+ int lev,
+ int depos_lev,
+ amrex::Real dt,
+ amrex::Real relative_time);
// If particles start outside of the domain, ContinuousInjection
// makes sure that they are initialized when they enter the domain, and
@@ -306,9 +306,9 @@ public:
amrex::Vector<amrex::ParticleReal> const & ux,
amrex::Vector<amrex::ParticleReal> const & uy,
amrex::Vector<amrex::ParticleReal> const & uz,
- const int nattr_real,
+ int nattr_real,
amrex::Vector<amrex::Vector<amrex::ParticleReal>> const & attr_real,
- const int nattr_int, amrex::Vector<amrex::Vector<int>> const & attr_int,
+ int nattr_int, amrex::Vector<amrex::Vector<int>> const & attr_int,
int uniqueparticles, amrex::Long id=-1);
virtual void ReadHeader (std::istream& is) = 0;
@@ -465,7 +465,7 @@ protected:
private:
virtual void particlePostLocate(ParticleType& p, const amrex::ParticleLocData& pld,
- const int lev) override;
+ int lev) override;
};