aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles')
-rw-r--r--Source/Particles/Filter/FilterFunctors.H6
-rw-r--r--Source/Particles/PhotonParticleContainer.H4
-rw-r--r--Source/Particles/ShapeFactors.H16
-rw-r--r--Source/Particles/Sorting/SortingUtils.H12
-rw-r--r--Source/Particles/WarpXParticleContainer.H10
5 files changed, 24 insertions, 24 deletions
diff --git a/Source/Particles/Filter/FilterFunctors.H b/Source/Particles/Filter/FilterFunctors.H
index 02a5f14c1..44240f3fc 100644
--- a/Source/Particles/Filter/FilterFunctors.H
+++ b/Source/Particles/Filter/FilterFunctors.H
@@ -26,7 +26,7 @@ struct RandomFilter
* \param a_fraction fraction of particles to select
*/
RandomFilter(bool a_is_active, amrex::Real a_fraction)
- : m_is_active(a_is_active), m_fraction(a_fraction) {};
+ : m_is_active(a_is_active), m_fraction(a_fraction) {}
/**
* \brief draw random number, return 1 if number < m_fraction, 1 otherwise
@@ -55,7 +55,7 @@ struct UniformFilter
* \param a_stride one particle every a_stride is written to file
*/
UniformFilter(bool a_is_active, int a_stride)
- : m_is_active(a_is_active), m_stride(a_stride) {};
+ : m_is_active(a_is_active), m_stride(a_stride) {}
/**
* \brief return 1 if stride divide particle_id, 0 otherwise
@@ -86,7 +86,7 @@ struct ParserFilter
: m_is_active(a_is_active), m_function_partparser(a_filter_parser)
{
m_t = WarpX::GetInstance().gett_new(0);
- };
+ }
/**
* \brief return 1 if the particle is selected by the parser
diff --git a/Source/Particles/PhotonParticleContainer.H b/Source/Particles/PhotonParticleContainer.H
index 0bfe38f42..1291f2cf9 100644
--- a/Source/Particles/PhotonParticleContainer.H
+++ b/Source/Particles/PhotonParticleContainer.H
@@ -82,7 +82,7 @@ public:
const amrex::MultiFab& Ez,
const amrex::MultiFab& Bx,
const amrex::MultiFab& By,
- const amrex::MultiFab& Bz) override {};
+ const amrex::MultiFab& Bz) override {}
// DepositCurrent should do nothing for photons
@@ -100,7 +100,7 @@ public:
int thread_num,
int lev,
int depos_lev,
- amrex::Real dt) override {};
+ amrex::Real dt) override {}
};
#endif // #ifndef WARPX_PhotonParticleContainer_H_
diff --git a/Source/Particles/ShapeFactors.H b/Source/Particles/ShapeFactors.H
index 1455d2888..917f0872d 100644
--- a/Source/Particles/ShapeFactors.H
+++ b/Source/Particles/ShapeFactors.H
@@ -23,7 +23,7 @@ struct Compute_shape_factor
{
template< typename T >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
- int operator()(T* const sx, T xint) const { return 0; };
+ int operator()(T* const sx, T xint) const { return 0; }
};
/**
@@ -41,7 +41,7 @@ struct Compute_shape_factor< 0 >
const auto j = static_cast<int>(xmid + T(0.5));
sx[0] = T(1.0);
return j;
- };
+ }
};
/**
@@ -61,7 +61,7 @@ struct Compute_shape_factor< 1 >
sx[0] = T(1.0) - xint;
sx[1] = xint;
return j;
- };
+ }
};
/**
@@ -83,7 +83,7 @@ struct Compute_shape_factor< 2 >
sx[2] = T(0.5)*(T(0.5) + xint)*(T(0.5) + xint);
// index of the leftmost cell where particle deposits
return j-1;
- };
+ }
};
/**
@@ -106,7 +106,7 @@ struct Compute_shape_factor< 3 >
sx[3] = (T(1.0))/(T(6.0))*xint*xint*xint;
// index of the leftmost cell where particle deposits
return j-1;
- };
+ }
};
/**
@@ -140,7 +140,7 @@ struct Compute_shifted_shape_factor< 1 >
sx[1+i_shift] = T(1.0) - xint;
sx[2+i_shift] = xint;
return i;
- };
+ }
};
/**
@@ -163,7 +163,7 @@ struct Compute_shifted_shape_factor< 2 >
sx[3+i_shift] = T(0.5)*(T(0.5) + xint)*(T(0.5) + xint);
// index of the leftmost cell where particle deposits
return i - 1;
- };
+ }
};
/**
@@ -187,7 +187,7 @@ struct Compute_shifted_shape_factor< 3 >
sx[4+i_shift] = (T(1.0))/(T(6.0))*xint*xint*xint;
// index of the leftmost cell where particle deposits
return i - 1;
- };
+ }
};
#endif // SHAPEFACTORS_H_
diff --git a/Source/Particles/Sorting/SortingUtils.H b/Source/Particles/Sorting/SortingUtils.H
index 73eb76305..f07ac450d 100644
--- a/Source/Particles/Sorting/SortingUtils.H
+++ b/Source/Particles/Sorting/SortingUtils.H
@@ -104,7 +104,7 @@ class fillBufferFlag
m_prob_lo[idim] = geom.ProbLo(idim);
m_inv_cell_size[idim] = geom.InvCellSize(idim);
}
- };
+ }
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
@@ -117,7 +117,7 @@ class fillBufferFlag
// Find the value of the buffer flag in this cell and
// store it at the corresponding particle position in the array `inexflag`
m_inexflag_ptr[i] = m_buffer_mask(iv);
- };
+ }
private:
amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> m_prob_lo;
@@ -164,7 +164,7 @@ class fillBufferFlagRemainingParticles
m_prob_lo[idim] = geom.ProbLo(idim);
m_inv_cell_size[idim] = geom.InvCellSize(idim);
}
- };
+ }
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
@@ -177,7 +177,7 @@ class fillBufferFlagRemainingParticles
// Find the value of the buffer flag in this cell and
// store it at the corresponding particle position in the array `inexflag`
m_inexflag_ptr[m_indices_ptr[i+m_start_index]] = m_buffer_mask(iv);
- };
+ }
private:
amrex::GpuArray<amrex::Real,AMREX_SPACEDIM> m_prob_lo;
@@ -209,12 +209,12 @@ class copyAndReorder
m_src_ptr = src.dataPtr();
m_dst_ptr = dst.dataPtr();
m_indices_ptr = indices.dataPtr();
- };
+ }
AMREX_GPU_DEVICE AMREX_FORCE_INLINE
void operator()( const long ip ) const {
m_dst_ptr[ip] = m_src_ptr[ m_indices_ptr[ip] ];
- };
+ }
private:
T const* m_src_ptr;
diff --git a/Source/Particles/WarpXParticleContainer.H b/Source/Particles/WarpXParticleContainer.H
index 4c493b21f..27ac85a27 100644
--- a/Source/Particles/WarpXParticleContainer.H
+++ b/Source/Particles/WarpXParticleContainer.H
@@ -256,7 +256,7 @@ public:
virtual void WriteHeader (std::ostream& os) const;
- virtual void ConvertUnits (ConvertDirection convert_dir){};
+ virtual void ConvertUnits (ConvertDirection convert_dir){}
static void ReadParameters ();
@@ -302,17 +302,17 @@ public:
//amrex::Real getMass () {return mass;}
amrex::ParticleReal getMass () const {return mass;}
- int DoFieldIonization() const { return do_field_ionization; };
+ int DoFieldIonization() const { return do_field_ionization; }
int DoQED() const {
#ifdef WARPX_QED
return m_do_qed;
#else
return false;
#endif
- };
+ }
//Species for which QED effects are relevant should override these methods
- virtual bool has_quantum_sync() const {return false;};
- virtual bool has_breit_wheeler() const {return false;};
+ virtual bool has_quantum_sync() const {return false;}
+ virtual bool has_breit_wheeler() const {return false;}
// build filter functors
bool m_do_random_filter = false;