Skip to content
Snippets Groups Projects
Commit 09645504 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fixes non-const method definitions

parent 78d0d11e
No related branches found
No related tags found
1 merge request!24Feature/collisions
...@@ -269,11 +269,14 @@ set(hpp_for_lib ...@@ -269,11 +269,14 @@ set(hpp_for_lib
${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_input.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_input.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_output.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_output.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_system.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_system.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/abstract_particles_system_with_p2p.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/alltoall_exchanger.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/alltoall_exchanger.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/env_utils.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/env_utils.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/lock_free_bool_array.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/lock_free_bool_array.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/p2p_computer_empty.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/p2p_computer_empty.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/p2p_computer.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/p2p_computer.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/p2p_ghost_collisions.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/p2p_cylinder_collisions.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/p2p_distr_mpi.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/p2p_distr_mpi.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/p2p_tree.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/p2p_tree.hpp
${PROJECT_SOURCE_DIR}/cpp/particles/particles_adams_bashforth.hpp ${PROJECT_SOURCE_DIR}/cpp/particles/particles_adams_bashforth.hpp
......
...@@ -47,7 +47,7 @@ public: ...@@ -47,7 +47,7 @@ public:
void compute_interaction(const real_number /*pos_part1*/[], real_number /*rhs_part1*/[], void compute_interaction(const real_number /*pos_part1*/[], real_number /*rhs_part1*/[],
const real_number /*pos_part2*/[], real_number /*rhs_part2*/[], const real_number /*pos_part2*/[], real_number /*rhs_part2*/[],
const real_number /*dist_pow2*/, const real_number /*cutoff*/, const real_number /*dist_pow2*/, const real_number /*cutoff*/,
const real_number /*xshift_coef*/, const real_number /*yshift_coef*/, const real_number /*zshift_coef*/) const{ const real_number /*xshift_coef*/, const real_number /*yshift_coef*/, const real_number /*zshift_coef*/){
collision_counter += 1; collision_counter += 1;
} }
...@@ -63,7 +63,7 @@ public: ...@@ -63,7 +63,7 @@ public:
return collision_counter; return collision_counter;
} }
void reset_collision_counter() const{ void reset_collision_counter(){
collision_counter = 0; collision_counter = 0;
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment