Skip to content
Snippets Groups Projects
Commit d83483bd authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing multiphase complet

parent 050d72a3
No related branches found
No related tags found
No related merge requests found
openfpm_numerics @ ea0b7ad5
Subproject commit dd445d74febaa67c37256178662b205733521031
Subproject commit ea0b7ad531e37b8e0e039d260cbea32de4417c90
......@@ -77,6 +77,24 @@ BOOST_AUTO_TEST_CASE( vector_dist_multiphase_cell_list_test )
for (size_t i = 0 ; i < 4 ; i++)
{
phases.get(i).map();
}
// randomize a little the particles
for (size_t p = 0 ; p < phases.size() ; p++)
{
openfpm::vector<Point<3,float>> vt;
for (size_t j = 0 ; j < phases.get(p).size_local() ; j++)
{
vt.add(phases.get(p).getPos((j + p*133) % phases.get(p).size_local()));
}
phases.get(p).getPosVector().swap(vt);
}
// Sync all phases
for (size_t i = 0 ; i < 4 ; i++)
{
phases.get(i).ghost_get<>();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment