aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/MultiParticleContainer.H
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-08-30 03:36:46 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-29 18:36:46 -0700
commit3f95ac68a1d7cf764f58e360ae9b4c43e5913095 (patch)
tree5da34d67f9fcdf0086d73e077b677ccf9b870541 /Source/Particles/MultiParticleContainer.H
parent71432aac4ef37b0c3476a2af2255140af3188669 (diff)
downloadWarpX-3f95ac68a1d7cf764f58e360ae9b4c43e5913095.tar.gz
WarpX-3f95ac68a1d7cf764f58e360ae9b4c43e5913095.tar.zst
WarpX-3f95ac68a1d7cf764f58e360ae9b4c43e5913095.zip
Clang tidy CI test: add more readability checks to clang tidy CI test (#4146)
* add more readability checks to clang-tidy CI test * reformat check list * starting to address issues found with clang-tidy£ * addressing issues * remove check * address issues * address all issues * address issue found with github code scanning
Diffstat (limited to 'Source/Particles/MultiParticleContainer.H')
-rw-r--r--Source/Particles/MultiParticleContainer.H18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Particles/MultiParticleContainer.H b/Source/Particles/MultiParticleContainer.H
index 86d96fac2..4c3aeca45 100644
--- a/Source/Particles/MultiParticleContainer.H
+++ b/Source/Particles/MultiParticleContainer.H
@@ -132,7 +132,7 @@ public:
*
* @param[in] lev the index of the refinement level.
*/
- std::unique_ptr<amrex::MultiFab> GetZeroChargeDensity(const int lev);
+ std::unique_ptr<amrex::MultiFab> GetZeroChargeDensity(int lev);
/**
* \brief Deposit charge density.
@@ -145,7 +145,7 @@ public:
*/
void
DepositCharge (amrex::Vector<std::unique_ptr<amrex::MultiFab> >& rho,
- const amrex::Real relative_time);
+ amrex::Real relative_time);
/**
* \brief Deposit current density.
@@ -160,7 +160,7 @@ public:
*/
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);
///
/// This deposits the particle charge onto a node-centered MultiFab and returns a unique ptr
@@ -179,7 +179,7 @@ public:
*
* @param[in] timestep the current timestep.
*/
- void doResampling (const int timestep);
+ void doResampling (int timestep);
#ifdef WARPX_QED
/** If Schwinger process is activated, this function is called at every
@@ -212,7 +212,7 @@ public:
void defineAllParticleTiles ();
- void RedistributeLocal (const int num_ghost);
+ void RedistributeLocal (int num_ghost);
/** Apply BC. For now, just discard particles outside the domain, regardless
* of the whole simulation BC. */
@@ -225,7 +225,7 @@ public:
*
* @param[in] lev the index of the refinement level.
*/
- amrex::Vector<amrex::Long> GetZeroParticlesInGrid(const int lev) const;
+ amrex::Vector<amrex::Long> GetZeroParticlesInGrid(int lev) const;
amrex::Vector<amrex::Long> NumberOfParticlesInGrid(int lev) const;
@@ -242,13 +242,13 @@ public:
*
* \param[in] do_back_transformed_particles The parameter to set if back-transformed particles are set to true/false
*/
- void SetDoBackTransformedParticles (const bool do_back_transformed_particles);
+ void SetDoBackTransformedParticles (bool do_back_transformed_particles);
/** Whether back-transformed diagnostics is set for species with species_name.
*
* \param[in] species_name The species for which back-transformed particles is set.
* \param[in] do_back_transformed_particles The parameter to set if back-transformed particles are set to true/false
*/
- void SetDoBackTransformedParticles (std::string species_name, const bool do_back_transformed_particles);
+ void SetDoBackTransformedParticles (std::string species_name, bool do_back_transformed_particles);
int nSpeciesDepositOnMainGrid () const {
bool const onMainGrid = true;
@@ -271,7 +271,7 @@ public:
* \brief Update antenna position for continuous injection of lasers
* in a boosted frame. Empty function for containers other than lasers.
*/
- void UpdateAntennaPosition(const amrex::Real dt) const;
+ void UpdateAntennaPosition(amrex::Real dt) const;
int doContinuousInjection() const;