Skip to content
Snippets Groups Projects
Commit cd53dc3f authored by Jose Agustin Arguedas Leiva's avatar Jose Agustin Arguedas Leiva
Browse files

moved variables into protected to use in derived classes

parent 24993778
No related branches found
No related tags found
1 merge request!30Feature/write vector
Pipeline #94725 passed
......@@ -45,17 +45,12 @@ class p2p_ghost_collisions
const double pi = atan(1.0)*4;
const double pi2 = atan(1.0)*8;
// depending on the particle shape, we will be deciding whether particles intersect in different ways
enum particle_shape {CYLINDER, SPHERE, DISK};
particle_shape current_particle_shape;
// description for cylinders:
double cylinder_width;
double cylinder_length;
// description for disks:
double disk_width;
bool isActive;
protected:
enum particle_shape {CYLINDER, SPHERE, DISK};
particle_shape current_particle_shape;
void add_colliding_pair(partsize_t idx_part1, partsize_t idx_part2)
{
// store colliding particle ids in order, to be able to identify pairs more easily
......@@ -70,6 +65,12 @@ class p2p_ghost_collisions
this->collision_pairs_local.push_back(idx_part_small);
this->collision_pairs_local.push_back(idx_part_big);
}
// description for cylinders:
double cylinder_width;
double cylinder_length;
bool isActive;
bool synchronisation;
std::vector <partsize_t> collision_pairs_local;
std::vector <partsize_t> collision_pairs_global;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment