Commit 5ce1257f authored by Quentin Khan's avatar Quentin Khan

FAdaptiveSequential: fix - swap targets and sources in P2P call

parent 702cf4a4
......@@ -272,7 +272,7 @@ public:
container_t* const leaf_source_particle_container =
leaf->getParticleContainer();
const container_t* const leaf_target_particle_container =
container_t* const leaf_target_particle_container =
leaf->getParticleContainer();
// Skip empty leaves
......@@ -304,8 +304,8 @@ public:
// Call P2P on vectors data
_kernel.P2P(
FTreeCoordinate(MortonIndex(leaf->getIndex())),
leaf_source_particle_container,
leaf_target_particle_container,
leaf_source_particle_container,
u_item_source_particle_containers.data(),
u_item_indices.data(),
static_cast<int>(u_item_source_particle_containers.size())
......
Markdown is supported
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