Commit c3ea54c8 authored by PIACIBELLO Cyrille's avatar PIACIBELLO Cyrille
Browse files

Changing names and rm warning

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