Commit bdccb780 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

Update and clean the tree builder

parent dcff5b67
......@@ -163,7 +163,7 @@ int main(int argc, char* argv[])
FVector<TestParticle> finalParticles;
FLeafBalance balancer;
FMpiTreeBuilder< TestParticle >::ArrayToTree(app.global(), particles, loader->getMyNumberOfParticles(),
FMpiTreeBuilder< TestParticle >::DistributeArrayToContainer(app.global(), particles, loader->getMyNumberOfParticles(),
tree.getBoxCenter(),
tree.getBoxWidth(),
tree.getHeight(), &finalParticles,&balancer);
......
......@@ -74,6 +74,18 @@ public:
return packToSend;
}
/**
* To know what to recv from who.
* @param myObjectiveInterval Interval I should have
* @param allCurrentIntervals the intevals that each process currently contains
* @return the package that the current worker should recv from others
*/
static std::vector<Package> GetPackToRecv(const std::pair<size_t, size_t> myObjectiveInterval,
const std::vector< std::pair<size_t,size_t> >& allCurrentIntervals){
return GetPackToSend(myObjectiveInterval,allCurrentIntervals);
}
};
#endif // FEQUALIZE_HPP
This diff is collapsed.
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