Skip to content
Snippets Groups Projects
Commit 73caca63 authored by jstark's avatar jstark
Browse files

Added mapping of the mirror particles. Source and mirror will be

parent 5f4f0c73
No related branches found
No related tags found
No related merge requests found
......@@ -99,9 +99,10 @@ public:
openfpm::vector<size_t> pair = {id_source, id_mirror};
key_map_source_mirror.add(pair);
}
// No vd.map() here, because we want to keep the source and the mirror particles on the same processor!
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
vd.map(); // We redistribute the mirror particles to the processors they belong to. Source and mirror will be
// still seen by the same processor via the ghost layer.
vd.template ghost_get();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Mirror.update();
pid_mirror = Mirror.getIds();
......
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