Commit 29de80ad authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

tries to be smarter about memory

parent b542afcb
Pipeline #89715 passed with stages
in 17 minutes and 17 seconds
......@@ -87,6 +87,7 @@ public:
this->disk_width = src.disk_width;
this->isActive = src.isActive;
this->synchronisation = src.synchronisation;
this->collision_pairs_local.reserve(src.collision_pairs_local.capacity());
}
template <int size_particle_rhs>
......@@ -178,8 +179,8 @@ public:
void reset_collision_pairs(){
this->collision_pairs_local.clear();
this->collision_pairs_global.clear();
this->collision_pairs_local.resize(0);
this->collision_pairs_global.resize(0);
this->synchronisation = false;
}
......
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