Commit c3ea54c8 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille

Changing names and rm warning

parent cbf24206
......@@ -197,7 +197,7 @@ public:
}
// To send and recv
ParticleClass* toReceive = 0;
ParticleClass* toReceive = nullptr;
MPI_Request*const requests = new MPI_Request[comm.processCount()*2];
memset(requests, 0, sizeof(MPI_Request) * comm.processCount() * 2);
long long int*const indexToReceive = new long long int[comm.processCount() + 1];
......
......@@ -118,10 +118,14 @@ int main(int argc, char ** argv){
FVector<TestParticle> finalParticles;
FLeafBalance balancer;
FMpiTreeBuilder< TestParticle >::ArrayToTree(app.global(), particles, NbPart,
FPoint(BoxCenter,BoxCenter,BoxCenter),
BoxWidth, tree.getHeight(), &finalParticles,&balancer);
// FMpiTreeBuilder< TestParticle >::ArrayToTree(app.global(), particles, NbPart,
// FPoint(BoxCenter,BoxCenter,BoxCenter),
// BoxWidth, tree.getHeight(), &finalParticles,&balancer);
FMpiTreeBuilder< TestParticle >::DistributeArrayToContainer(app.global(),particles,
NbPart,
FPoint(BoxCenter,BoxCenter,BoxCenter),
BoxWidth,NbLevels,
&finalParticles, &balancer);
for(int idx = 0 ; idx < finalParticles.getSize(); ++idx){
tree.insert(finalParticles[idx].position);
}
......
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