Commit 2923db06 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

removes unused method

parent 129baa7d
Pipeline #94982 failed with stages
in 15 minutes and 59 seconds
......@@ -89,16 +89,6 @@ public:
/// Computation related
////////////////////////////////////////////////////////////////////////
template <int size_particle_rhs>
void init_result_array(real_number particles_current_rhs[],
const partsize_t nb_particles) const {
// Set values to zero initialy
// TODO: openmp
std::fill(particles_current_rhs,
particles_current_rhs+nb_particles*size_particle_rhs,
0);
}
const std::array<real_number, 3> getSpatialBoxWidth() const
{
return this->spatial_box_width;
......
......@@ -53,12 +53,6 @@ class p2p_computer{
public:
p2p_computer() : isActive(true){}
template <int size_particle_rhs>
void init_result_array(real_number rhs[], const partsize_t nbParticles) const{
// TODO: openmp
memset(rhs, 0, sizeof(real_number)*nbParticles*size_particle_rhs);
}
template <int size_particle_rhs>
void reduce_particles_rhs(real_number rhs_dst[], const real_number rhs_src[], const partsize_t nbParticles) const{
static_assert(size_particle_rhs == 6, "This kernel works only with 6 values per particle's rhs");
......
......@@ -31,9 +31,6 @@
template <class real_number, class partsize_t>
class p2p_computer_empty{
public:
template <int size_particle_rhs>
void init_result_array(real_number /*rhs*/[], const partsize_t /*nbParticles*/) const{
}
template <int size_particle_rhs>
void reduce_particles_rhs(real_number /*rhs_dst*/[], const real_number /*rhs_src*/[], const partsize_t /*nbParticles*/) const{
......
......@@ -118,10 +118,6 @@ public:
return min_distance;
}
template <int size_particle_rhs>
void init_result_array(real_number /*rhs*/[], const partsize_t /*nbParticles*/) const{
}
template <int size_particle_rhs>
void reduce_particles_rhs(real_number /*rhs_dst*/[], const real_number /*rhs_src*/[], const partsize_t /*nbParticles*/) const{
}
......
......@@ -37,10 +37,6 @@ public:
// Copy constructor use a counter set to zero
p2p_merge_collisions(const p2p_merge_collisions&){}
template <int size_particle_rhs>
void init_result_array(real_number /*rhs*/[], const partsize_t /*nbParticles*/) const{
}
template <int size_particle_rhs>
void reduce_particles_rhs(real_number /*rhs_dst*/[], const real_number /*rhs_src*/[], const partsize_t /*nbParticles*/) const{
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment